| 5759 | } |
| 5760 | |
| 5761 | static int |
| 5762 | ixgbevf_vlan_offload_config(struct rte_eth_dev *dev, int mask) |
| 5763 | { |
| 5764 | struct ixgbe_rx_queue *rxq; |
| 5765 | uint16_t i; |
| 5766 | int on = 0; |
| 5767 | |
| 5768 | /* VF function only support hw strip feature, others are not support */ |
| 5769 | if (mask & RTE_ETH_VLAN_STRIP_MASK) { |
| 5770 | for (i = 0; i < dev->data->nb_rx_queues; i++) { |
| 5771 | rxq = dev->data->rx_queues[i]; |
| 5772 | on = !!(rxq->offloads & RTE_ETH_RX_OFFLOAD_VLAN_STRIP); |
| 5773 | ixgbevf_vlan_strip_queue_set(dev, i, on); |
| 5774 | } |
| 5775 | } |
| 5776 | |
| 5777 | return 0; |
| 5778 | } |
| 5779 | |
| 5780 | static int |
| 5781 | ixgbevf_vlan_offload_set(struct rte_eth_dev *dev, int mask) |
no test coverage detected