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

Function igbvf_set_vfta_all

dpdk/drivers/net/e1000/igb_ethdev.c:3637–3658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3635}
3636
3637static 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
3660static int
3661igbvf_vlan_filter_set(struct rte_eth_dev *dev, uint16_t vlan_id, int on)

Callers 2

igbvf_dev_startFunction · 0.85
igbvf_dev_stopFunction · 0.85

Calls 1

igbvf_set_vftaFunction · 0.85

Tested by

no test coverage detected