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

Function ngbe_vlan_hw_extend_enable

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

Source from the content-addressed store, hash-verified

778}
779
780static void
781ngbe_vlan_hw_extend_enable(struct rte_eth_dev *dev)
782{
783 struct ngbe_hw *hw = ngbe_dev_hw(dev);
784 uint32_t ctrl;
785
786 PMD_INIT_FUNC_TRACE();
787
788 ctrl = rd32(hw, NGBE_PORTCTL);
789 ctrl |= NGBE_PORTCTL_VLANEXT | NGBE_PORTCTL_QINQ;
790 wr32(hw, NGBE_PORTCTL, ctrl);
791}
792
793static void
794ngbe_qinq_hw_strip_disable(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