net/bonding: fix invalid port id
authorRadu Nicolau <radu.nicolau@intel.com>
Wed, 18 Jul 2018 11:12:01 +0000 (12:12 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 23 Jul 2018 21:55:26 +0000 (23:55 +0200)
commit1620175b400e2247cd69240c1e3cbcc5c1889dbe
tree0f1a6aa02a8fe06842e37abbac6a3a6dce03cac0
parent1ec01cd0962abd1fe2f32322ff135ac708cb3b8d
net/bonding: fix invalid port id

Setting up the bonding options before calling rte_eth_dev_probing_finish
triggers an invalid port id error because of port state not set, or set
unused

Fixes: fbe90cdd776c ("ethdev: add probing finish function")
Cc: stable@dpdk.org
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Acked-by: Chas Williams <chas3@att.com>
drivers/net/bonding/rte_eth_bond_pmd.c