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

Function ngbe_disable_vf_mc_promisc

dpdk/drivers/net/ngbe/ngbe_pf.c:315–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315static int
316ngbe_disable_vf_mc_promisc(struct rte_eth_dev *eth_dev, uint32_t vf)
317{
318 struct ngbe_hw *hw = ngbe_dev_hw(eth_dev);
319 uint32_t vmolr;
320
321 vmolr = rd32(hw, NGBE_POOLETHCTL(vf));
322
323 PMD_DRV_LOG(INFO, "VF %u: disabling multicast promiscuous", vf);
324
325 vmolr &= ~NGBE_POOLETHCTL_MCP;
326
327 wr32(hw, NGBE_POOLETHCTL(vf), vmolr);
328
329 return 0;
330}
331
332static int
333ngbe_vf_reset(struct rte_eth_dev *eth_dev, uint16_t vf, uint32_t *msgbuf)

Callers 2

ngbe_vf_resetFunction · 0.85
ngbe_vf_set_multicastFunction · 0.85

Calls 3

ngbe_dev_hwFunction · 0.85
rd32Function · 0.50
wr32Function · 0.50

Tested by

no test coverage detected