net/mvneta: remove resources when port is closed
authorYuri Chipchev <yuric@marvell.com>
Wed, 3 Jul 2019 07:58:12 +0000 (10:58 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 8 Jul 2019 19:26:52 +0000 (21:26 +0200)
commit4b6d27431d6d39c8f2ecd4eda2819aac7f752bea
tree66167e30250e430a3628730d543247085f603e88
parente62d90f2a21b5196aa7606a933923c068a500bee
net/mvneta: remove resources when port is closed

Since 18.11, it is suggested that driver should release all its private
resources at the dev_close routine. So all resources previously released
in remove routine are now released at the dev_close routine, and the
dev_close routine will be called in driver remove routine in order to
support removing a device without closing its ports.

Above behavior changes are supported by setting RTE_ETH_DEV_CLOSE_REMOVE
flag during probe stage.

Signed-off-by: Yuri Chipchev <yuric@marvell.com>
Reviewed-by: Liron Himi <lironh@marvell.com>
drivers/net/mvneta/mvneta_ethdev.c