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

Function ngbe_vlan_hw_extend_disable

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

Source from the content-addressed store, hash-verified

764}
765
766static void
767ngbe_vlan_hw_extend_disable(struct rte_eth_dev *dev)
768{
769 struct ngbe_hw *hw = ngbe_dev_hw(dev);
770 uint32_t ctrl;
771
772 PMD_INIT_FUNC_TRACE();
773
774 ctrl = rd32(hw, NGBE_PORTCTL);
775 ctrl &= ~NGBE_PORTCTL_VLANEXT;
776 ctrl &= ~NGBE_PORTCTL_QINQ;
777 wr32(hw, NGBE_PORTCTL, ctrl);
778}
779
780static void
781ngbe_vlan_hw_extend_enable(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