MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ixgbevf_set_vfta_all

Function ixgbevf_set_vfta_all

dpdk/drivers/net/ixgbe/ixgbe_ethdev.c:5678–5698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5676}
5677
5678static 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
5700static int
5701ixgbevf_vlan_filter_set(struct rte_eth_dev *dev, uint16_t vlan_id, int on)

Callers 2

ixgbevf_dev_startFunction · 0.85
ixgbevf_dev_stopFunction · 0.85

Calls 1

ixgbe_set_vftaFunction · 0.85

Tested by

no test coverage detected