net/bonding: fix crash on probe
authorRadu Nicolau <radu.nicolau@intel.com>
Wed, 31 Oct 2018 15:50:08 +0000 (15:50 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 5 Nov 2018 14:01:25 +0000 (15:01 +0100)
commit7dc58bc7611a8ae899f654207aa6ddf4063a52d8
tree7e3fc8c747bbd3c989a4284d1dc2bdd178f4efc9
parent4d7877fde2ef78639aa21273d585201884045abd
net/bonding: fix crash on probe

After the patch below the call to rte_eth_bond_8023ad_agg_selection_set
from probe() segfaults; there is no need to call the function, just set
the mode directly.
Also, reverted 1620175b400e.

Fixes: 391797f04208 ("drivers/bus: move driver assignment to end of probing")
Fixes: 1620175b400e ("net/bonding: fix invalid port id")
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