| 313 | } |
| 314 | |
| 315 | static int |
| 316 | ngbe_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 | |
| 332 | static int |
| 333 | ngbe_vf_reset(struct rte_eth_dev *eth_dev, uint16_t vf, uint32_t *msgbuf) |
no test coverage detected