* DPDK callback to enable promiscuous mode. * * @param dev * Pointer to Ethernet device structure. * * @return * 0 on success, a negative errno value otherwise and rte_errno is set. */
| 388 | * 0 on success, a negative errno value otherwise and rte_errno is set. |
| 389 | */ |
| 390 | int |
| 391 | mlx4_promiscuous_enable(struct rte_eth_dev *dev) |
| 392 | { |
| 393 | return mlx4_rxmode_toggle(dev, RXMODE_TOGGLE_PROMISC_ON); |
| 394 | } |
| 395 | |
| 396 | /** |
| 397 | * DPDK callback to disable promiscuous mode. |
nothing calls this directly
no test coverage detected