| 897 | } |
| 898 | |
| 899 | static int |
| 900 | txgbevf_vlan_offload_config(struct rte_eth_dev *dev, int mask) |
| 901 | { |
| 902 | struct txgbe_rx_queue *rxq; |
| 903 | uint16_t i; |
| 904 | int on = 0; |
| 905 | |
| 906 | /* VF function only support hw strip feature, others are not support */ |
| 907 | if (mask & RTE_ETH_VLAN_STRIP_MASK) { |
| 908 | for (i = 0; i < dev->data->nb_rx_queues; i++) { |
| 909 | rxq = dev->data->rx_queues[i]; |
| 910 | on = !!(rxq->offloads & RTE_ETH_RX_OFFLOAD_VLAN_STRIP); |
| 911 | txgbevf_vlan_strip_q_set(dev, i, on); |
| 912 | } |
| 913 | } |
| 914 | |
| 915 | return 0; |
| 916 | } |
| 917 | |
| 918 | static int |
| 919 | txgbevf_vlan_offload_set(struct rte_eth_dev *dev, int mask) |
no test coverage detected