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

Function eth_set_allmulticast_mode

dpdk/app/test-pmd/util.c:482–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482void
483eth_set_allmulticast_mode(uint16_t port, int enable)
484{
485 int ret;
486
487 if (enable)
488 ret = rte_eth_allmulticast_enable(port);
489 else
490 ret = rte_eth_allmulticast_disable(port);
491
492 if (ret != 0)
493 fprintf(stderr,
494 "Error during %s all-multicast mode for port %u: %s\n",
495 enable ? "enabling" : "disabling",
496 port, rte_strerror(-ret));
497}
498
499int
500eth_link_get_nowait_print_err(uint16_t port_id, struct rte_eth_link *link)

Callers 1

Calls 3

rte_strerrorFunction · 0.85

Tested by

no test coverage detected