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

Function ngbe_vlan_hw_strip_disable

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

Source from the content-addressed store, hash-verified

732}
733
734static void
735ngbe_vlan_hw_strip_disable(struct rte_eth_dev *dev, uint16_t queue)
736{
737 struct ngbe_hw *hw = ngbe_dev_hw(dev);
738 uint32_t ctrl;
739
740 PMD_INIT_FUNC_TRACE();
741
742 ctrl = rd32(hw, NGBE_RXCFG(queue));
743 ctrl &= ~NGBE_RXCFG_VLAN;
744 wr32(hw, NGBE_RXCFG(queue), ctrl);
745
746 /* record those setting for HW strip per queue */
747 ngbe_vlan_hw_strip_bitmap_set(dev, queue, 0);
748}
749
750static void
751ngbe_vlan_hw_strip_enable(struct rte_eth_dev *dev, uint16_t queue)

Callers 1

ngbe_vlan_strip_q_setFunction · 0.85

Calls 4

ngbe_dev_hwFunction · 0.85
rd32Function · 0.50
wr32Function · 0.50

Tested by

no test coverage detected