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

Function ixgbe_disable_vf_mc_promisc

dpdk/drivers/net/ixgbe/ixgbe_pf.c:417–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417static int
418ixgbe_disable_vf_mc_promisc(struct rte_eth_dev *dev, uint32_t vf)
419{
420 struct ixgbe_hw *hw = IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private);
421 uint32_t vmolr;
422
423 vmolr = IXGBE_READ_REG(hw, IXGBE_VMOLR(vf));
424
425 PMD_DRV_LOG(INFO, "VF %u: disabling multicast promiscuous", vf);
426
427 vmolr &= ~IXGBE_VMOLR_MPE;
428
429 IXGBE_WRITE_REG(hw, IXGBE_VMOLR(vf), vmolr);
430
431 return 0;
432}
433
434static int
435ixgbe_vf_reset(struct rte_eth_dev *dev, uint16_t vf, uint32_t *msgbuf)

Callers 2

ixgbe_vf_resetFunction · 0.85
ixgbe_vf_set_multicastFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected