net/dpaa: release port upon close
authorSachin Saxena <sachin.saxena@oss.nxp.com>
Mon, 28 Sep 2020 23:14:16 +0000 (01:14 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:14 +0000 (19:19 +0200)
commit2defb1143842f30b6f6d6329241a82009d2ae7a4
tree8f2f5e4f032cfc41b6a3af47df6bd465f5129339
parent171875d0678c5ee8f8ce01eb887aa94294611462
net/dpaa: release port upon close

With removal of old close behavior, the private
port resources must be released in the .dev_close callback.
Freeing of port private resources is moved from
the ".remove(device)" to the ".dev_close(port)" operation

Signed-off-by: Sachin Saxena <sachin.saxena@oss.nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/dpaa/dpaa_ethdev.c