net/nfb: avoid memory leak on unplug
authorDavid Marchand <david.marchand@redhat.com>
Mon, 17 Jun 2019 15:05:22 +0000 (17:05 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Jun 2019 18:31:49 +0000 (20:31 +0200)
commit281183d8519b84ad6c0322e40e230e718c4d26b6
treee1f113edbb309112a64760a38b1a574ee6e65965
parent15fb42d511ff56bdaedaa6d87dcf5240b404e6b5
net/nfb: avoid memory leak on unplug

Clearing mac_addrs on remove will prevent ethdev from freeing it.

Fixes: 6435f9a0ac22 ("net/nfb: add new netcope driver")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/nfb/nfb_ethdev.c