ethdev: fix port ownership logs
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 16 Aug 2018 22:37:14 +0000 (15:37 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 28 Aug 2018 13:27:39 +0000 (15:27 +0200)
commit40d96ffbd1f61533a19f2df5673f378d166ff11a
tree996893e2d83431b1fed15ee68dfbdf0523288f31
parent7712a1c660661005225c3f7ccbca09a6296e2751
ethdev: fix port ownership logs

The rte_eth_dev_owner_unset function always generates a log
message because the unset value for owner id is 0.

Also, when rte_eth_dev_owner_delete is called with a valid
owner id, the log message should be at NOTICE not ERROR
severity.

Fixes: 5b7ba31148a8 ("ethdev: add port ownership")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Matan Azrad <matan@mellanox.com>
lib/librte_ethdev/rte_ethdev.c