MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ngbe_qinq_hw_strip_enable

Function ngbe_qinq_hw_strip_enable

dpdk/drivers/net/ngbe/ngbe_ethdev.c:806–817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

804}
805
806static void
807ngbe_qinq_hw_strip_enable(struct rte_eth_dev *dev)
808{
809 struct ngbe_hw *hw = ngbe_dev_hw(dev);
810 uint32_t ctrl;
811
812 PMD_INIT_FUNC_TRACE();
813
814 ctrl = rd32(hw, NGBE_PORTCTL);
815 ctrl |= NGBE_PORTCTL_QINQ | NGBE_PORTCTL_VLANEXT;
816 wr32(hw, NGBE_PORTCTL, ctrl);
817}
818
819void
820ngbe_vlan_hw_strip_config(struct rte_eth_dev *dev)

Callers 1

ngbe_vlan_offload_configFunction · 0.85

Calls 3

ngbe_dev_hwFunction · 0.85
rd32Function · 0.50
wr32Function · 0.50

Tested by

no test coverage detected