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

Function txgbevf_set_vfta_all

dpdk/drivers/net/txgbe/txgbe_ethdev_vf.c:816–834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

814}
815
816static void txgbevf_set_vfta_all(struct rte_eth_dev *dev, bool on)
817{
818 struct txgbe_hw *hw = TXGBE_DEV_HW(dev);
819 struct txgbe_vfta *shadow_vfta = TXGBE_DEV_VFTA(dev);
820 int i = 0, j = 0, vfta = 0, mask = 1;
821
822 for (i = 0; i < TXGBE_VFTA_SIZE; i++) {
823 vfta = shadow_vfta->vfta[i];
824 if (vfta) {
825 mask = 1;
826 for (j = 0; j < 32; j++) {
827 if (vfta & mask)
828 hw->mac.set_vfta(hw, (i << 5) + j, 0,
829 on, false);
830 mask <<= 1;
831 }
832 }
833 }
834}
835
836static int
837txgbevf_vlan_filter_set(struct rte_eth_dev *dev, uint16_t vlan_id, int on)

Callers 2

txgbevf_dev_startFunction · 0.85
txgbevf_dev_stopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected