| 817 | } |
| 818 | |
| 819 | void |
| 820 | ngbe_vlan_hw_strip_config(struct rte_eth_dev *dev) |
| 821 | { |
| 822 | struct ngbe_rx_queue *rxq; |
| 823 | uint16_t i; |
| 824 | |
| 825 | PMD_INIT_FUNC_TRACE(); |
| 826 | |
| 827 | for (i = 0; i < dev->data->nb_rx_queues; i++) { |
| 828 | rxq = dev->data->rx_queues[i]; |
| 829 | |
| 830 | if (rxq->offloads & RTE_ETH_RX_OFFLOAD_VLAN_STRIP) |
| 831 | ngbe_vlan_strip_q_set(dev, i, 1); |
| 832 | else |
| 833 | ngbe_vlan_strip_q_set(dev, i, 0); |
| 834 | } |
| 835 | } |
| 836 | |
| 837 | void |
| 838 | ngbe_config_vlan_strip_on_all_queues(struct rte_eth_dev *dev, int mask) |
no test coverage detected