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

Function ngbe_vlan_hw_strip_enable

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

Source from the content-addressed store, hash-verified

748}
749
750static void
751ngbe_vlan_hw_strip_enable(struct rte_eth_dev *dev, uint16_t queue)
752{
753 struct ngbe_hw *hw = ngbe_dev_hw(dev);
754 uint32_t ctrl;
755
756 PMD_INIT_FUNC_TRACE();
757
758 ctrl = rd32(hw, NGBE_RXCFG(queue));
759 ctrl |= NGBE_RXCFG_VLAN;
760 wr32(hw, NGBE_RXCFG(queue), ctrl);
761
762 /* record those setting for HW strip per queue */
763 ngbe_vlan_hw_strip_bitmap_set(dev, queue, 1);
764}
765
766static void
767ngbe_vlan_hw_extend_disable(struct rte_eth_dev *dev)

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