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

Function mlx4_promiscuous_enable

dpdk/drivers/net/mlx4/mlx4_ethdev.c:390–394  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

388 * 0 on success, a negative errno value otherwise and rte_errno is set.
389 */
390int
391mlx4_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.

Callers

nothing calls this directly

Calls 1

mlx4_rxmode_toggleFunction · 0.85

Tested by

no test coverage detected