net/pfe: release port upon close
authorSachin Saxena <sachin.saxena@oss.nxp.com>
Mon, 28 Sep 2020 23:14:24 +0000 (01:14 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:14 +0000 (19:19 +0200)
commit57803c5ef5a1d067330b0dd7e314149e4ef3a3c3
tree9641ae252f132ee1949ec94b1a7ff1e965b07166
parent7d92f2509e9b27cdefa191331112a64c9ef3f22e
net/pfe: 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: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/pfe/pfe_ethdev.c