[dpdk-dev] [PATCH 1/3] net/nfb: avoid memory leak on unplug
David Marchand
david.marchand at redhat.com
Mon Jun 17 17:05:22 CEST 2019
Clearing mac_addrs on remove will prevent ethdev from freeing it.
Fixes: 6435f9a0ac22 ("net/nfb: add new netcope driver")
Signed-off-by: David Marchand <david.marchand at redhat.com>
---
drivers/net/nfb/nfb_ethdev.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/nfb/nfb_ethdev.c b/drivers/net/nfb/nfb_ethdev.c
index fdd0e70..6f77864 100644
--- a/drivers/net/nfb/nfb_ethdev.c
+++ b/drivers/net/nfb/nfb_ethdev.c
@@ -510,8 +510,6 @@
struct rte_pci_device *pci_dev = RTE_ETH_DEV_TO_PCI(dev);
struct rte_pci_addr *pci_addr = &pci_dev->addr;
- dev->data->mac_addrs = NULL;
-
nfb_nc_rxmac_deinit(internals->rxmac, internals->max_rxmac);
nfb_nc_txmac_deinit(internals->txmac, internals->max_txmac);
--
1.8.3.1
More information about the dev
mailing list