net/mvpp2: remove resources when port is closed
authorLiron Himi <lironh@marvell.com>
Mon, 5 Aug 2019 10:16:56 +0000 (13:16 +0300)
committerJerin Jacob <jerinj@marvell.com>
Mon, 5 Aug 2019 17:26:32 +0000 (19:26 +0200)
commit696202ca539612c579494dd536eb328bd595b05c
treebddb4f2c5747fe6e0cbdce2f7f1b897f372172a9
parent230dce6461b92f36c819f1cf29c0c0e0f8d11ea8
net/mvpp2: 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: Liron Himi <lironh@marvell.com>
Reviewed-by: Yuri Chipchev <yuric@marvell.com>
drivers/net/mvpp2/mrvl_ethdev.c