| 748 | } |
| 749 | |
| 750 | static void |
| 751 | ngbe_vlan_hw_strip_enable(struct rte_eth_dev *dev, uint16_t queue) |
| 752 | { |
| 753 | struct ngbe_hw *hw = ngbe_dev_hw(dev); |
| 754 | uint32_t ctrl; |
| 755 | |
| 756 | PMD_INIT_FUNC_TRACE(); |
| 757 | |
| 758 | ctrl = rd32(hw, NGBE_RXCFG(queue)); |
| 759 | ctrl |= NGBE_RXCFG_VLAN; |
| 760 | wr32(hw, NGBE_RXCFG(queue), ctrl); |
| 761 | |
| 762 | /* record those setting for HW strip per queue */ |
| 763 | ngbe_vlan_hw_strip_bitmap_set(dev, queue, 1); |
| 764 | } |
| 765 | |
| 766 | static void |
| 767 | ngbe_vlan_hw_extend_disable(struct rte_eth_dev *dev) |
no test coverage detected