| 3635 | } |
| 3636 | |
| 3637 | static void igbvf_set_vfta_all(struct rte_eth_dev *dev, bool on) |
| 3638 | { |
| 3639 | struct e1000_hw *hw = |
| 3640 | E1000_DEV_PRIVATE_TO_HW(dev->data->dev_private); |
| 3641 | struct e1000_vfta * shadow_vfta = |
| 3642 | E1000_DEV_PRIVATE_TO_VFTA(dev->data->dev_private); |
| 3643 | int i = 0, j = 0, vfta = 0, mask = 1; |
| 3644 | |
| 3645 | for (i = 0; i < IGB_VFTA_SIZE; i++){ |
| 3646 | vfta = shadow_vfta->vfta[i]; |
| 3647 | if(vfta){ |
| 3648 | mask = 1; |
| 3649 | for (j = 0; j < 32; j++){ |
| 3650 | if(vfta & mask) |
| 3651 | igbvf_set_vfta(hw, |
| 3652 | (uint16_t)((i<<5)+j), on); |
| 3653 | mask<<=1; |
| 3654 | } |
| 3655 | } |
| 3656 | } |
| 3657 | |
| 3658 | } |
| 3659 | |
| 3660 | static int |
| 3661 | igbvf_vlan_filter_set(struct rte_eth_dev *dev, uint16_t vlan_id, int on) |
no test coverage detected