net/octeontx: fix memory leak of MAC address table
authorSunil Kumar Kori <skori@marvell.com>
Wed, 29 Jan 2020 09:17:04 +0000 (14:47 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Feb 2020 08:51:21 +0000 (09:51 +0100)
commit9e399b88ce2f103165512d4005611a1f709deb1d
treef8aaaeb279037e9b062d9065517049a20abf7c53
parent184a3235735a2fae78bcc019c6cd9973426da3f1
net/octeontx: fix memory leak of MAC address table

MAC address table is allocated during octeontx device create and
same is used to maintain list of MAC address associated to port.
This table is not getting freed niether in case of error nor during
graceful shutdown of port.

Patch fixes memory required memory for both the cases as mentioned.

Fixes: f18b146c498d ("net/octeontx: create ethdev ports")
Cc: stable@dpdk.org
Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
Acked-by: Harman Kalra <hkalra@marvell.com>
drivers/net/octeontx/octeontx_ethdev.c