ethdev: allow ownership operations on unused port
authorMatan Azrad <matan@mellanox.com>
Thu, 10 May 2018 23:58:31 +0000 (01:58 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:31:53 +0000 (22:31 +0100)
commit33c73aae32e4ec46d16ab6968b164682e648579a
treea4c4e4151e3d9e767e85c8145609a444e9a5655e
parentfbe90cdd776c3ac99c4c56d1b5318a90fcf01602
ethdev: allow ownership operations on unused port

When the state will be updated later than in allocation,
we may need to update the ownership of a port which is
still in state unused.

It will be used to take ownership of a port before it is
declared as available for other entities.

Cc: stable@dpdk.org
Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
lib/librte_ethdev/rte_ethdev.c