The MAC addresses array is already freed by rte_eth_dev_release_port().
The redundant freeing can be removed from the PMD port closing functions.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
dev->data->rx_queues[i] = 0;
}
- rte_free(dev->data->mac_addrs);
- dev->data->mac_addrs = 0;
-
return 0;
}
rte_free(nic_dev->mc_list);
- rte_free(dev->data->mac_addrs);
- dev->data->mac_addrs = NULL;
-
return HINIC_OK;
}
dev->rx_pkt_burst = NULL;
dev->tx_pkt_burst = NULL;
- rte_free(dev->data->mac_addrs);
- dev->data->mac_addrs = NULL;
-
/* disable uio intr before callback unregister */
rte_intr_disable(intr_handle);
}
dev->data->nb_tx_queues = 0;
- rte_free(dev->data->mac_addrs);
- dev->data->mac_addrs = NULL;
-
return 0;
}
}
dev->data->nb_tx_queues = 0;
- rte_free(dev->data->mac_addrs);
- dev->data->mac_addrs = NULL;
-
return 0;
}