| 6776 | } |
| 6777 | |
| 6778 | int |
| 6779 | mcast_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 | |
| 6797 | static int |
| 6798 | eth_port_multicast_addr_list_set(portid_t port_id) |