net/mrvl: fix multiple probe
authorNatalie Samsonov <nsamsono@marvell.com>
Thu, 11 Jan 2018 15:35:39 +0000 (16:35 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit10bce9cf9b47f85d3c5c447ca0aa5ad8c28dfce0
tree29ffa5d41e7f53a950633b933c404ef02ac6dbf2
parente38e04cba57414cd75d3d6dedc5cc9479343d336
net/mrvl: fix multiple probe

MUSDK library initialization and cleanup should be done once.
This commit fixes that by doing necessary initialization once the first
port is probed and cleanup once the last port is removed.

Fixes: 0ddc9b815b11 ("net/mrvl: add net PMD skeleton")
Cc: stable@dpdk.org
Signed-off-by: Natalie Samsonov <nsamsono@marvell.com>
drivers/net/mrvl/mrvl_ethdev.c
drivers/net/mrvl/mrvl_ethdev.h
drivers/net/mrvl/mrvl_qos.c