| 5737 | } |
| 5738 | |
| 5739 | static void |
| 5740 | ixgbevf_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 | |
| 5761 | static int |
| 5762 | ixgbevf_vlan_offload_config(struct rte_eth_dev *dev, int mask) |
no test coverage detected