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

Function ixgbevf_vlan_strip_queue_set

dpdk/drivers/net/ixgbe/ixgbe_ethdev.c:5739–5759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5737}
5738
5739static void
5740ixgbevf_vlan_strip_queue_set(struct rte_eth_dev *dev, uint16_t queue, int on)
5741{
5742 struct ixgbe_hw *hw =
5743 IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private);
5744 uint32_t ctrl;
5745
5746 PMD_INIT_FUNC_TRACE();
5747
5748 if (queue >= hw->mac.max_rx_queues)
5749 return;
5750
5751 ctrl = IXGBE_READ_REG(hw, IXGBE_RXDCTL(queue));
5752 if (on)
5753 ctrl |= IXGBE_RXDCTL_VME;
5754 else
5755 ctrl &= ~IXGBE_RXDCTL_VME;
5756 IXGBE_WRITE_REG(hw, IXGBE_RXDCTL(queue), ctrl);
5757
5758 ixgbe_vlan_hw_strip_bitmap_set(dev, queue, on);
5759}
5760
5761static int
5762ixgbevf_vlan_offload_config(struct rte_eth_dev *dev, int mask)

Callers 1

Calls 1

Tested by

no test coverage detected