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

Function mcast_addr_pool_destroy

dpdk/app/test-pmd/config.c:6778–6795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6776}
6777
6778int
6779mcast_addr_pool_destroy(portid_t port_id)
6780{
6781 struct rte_port *port;
6782
6783 if (port_id_is_invalid(port_id, ENABLED_WARN) ||
6784 port_id == (portid_t)RTE_PORT_ALL)
6785 return -EINVAL;
6786 port = &ports[port_id];
6787
6788 if (port->mc_addr_nb != 0) {
6789 /* free the pool of multicast addresses. */
6790 free(port->mc_addr_pool);
6791 port->mc_addr_pool = NULL;
6792 port->mc_addr_nb = 0;
6793 }
6794 return 0;
6795}
6796
6797static int
6798eth_port_multicast_addr_list_set(portid_t port_id)

Callers 2

mcast_addr_flushFunction · 0.85

Calls 2

port_id_is_invalidFunction · 0.85
freeFunction · 0.50

Tested by 1