| 5676 | } |
| 5677 | |
| 5678 | static void ixgbevf_set_vfta_all(struct rte_eth_dev *dev, bool on) |
| 5679 | { |
| 5680 | struct ixgbe_hw *hw = IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private); |
| 5681 | struct ixgbe_vfta *shadow_vfta = |
| 5682 | IXGBE_DEV_PRIVATE_TO_VFTA(dev->data->dev_private); |
| 5683 | int i = 0, j = 0, vfta = 0, mask = 1; |
| 5684 | |
| 5685 | for (i = 0; i < IXGBE_VFTA_SIZE; i++) { |
| 5686 | vfta = shadow_vfta->vfta[i]; |
| 5687 | if (vfta) { |
| 5688 | mask = 1; |
| 5689 | for (j = 0; j < 32; j++) { |
| 5690 | if (vfta & mask) |
| 5691 | ixgbe_set_vfta(hw, (i<<5)+j, 0, |
| 5692 | on, false); |
| 5693 | mask <<= 1; |
| 5694 | } |
| 5695 | } |
| 5696 | } |
| 5697 | |
| 5698 | } |
| 5699 | |
| 5700 | static int |
| 5701 | ixgbevf_vlan_filter_set(struct rte_eth_dev *dev, uint16_t vlan_id, int on) |
no test coverage detected