net/bonding: fix race condition
authorRadu Nicolau <radu.nicolau@intel.com>
Wed, 25 Jul 2018 09:39:40 +0000 (10:39 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 5 Aug 2018 00:18:16 +0000 (02:18 +0200)
commit5922ff069fb910946f97780754ad4b66b987d5b6
treed550fc2a155e308751e496ab61a1bf2cc969a2f7
parentaf53db486792f3d864c9a30dc13ee12402994640
net/bonding: fix race condition

Race condition can appear in the bond_mode_8023ad_periodic_cb()
callback when bonding port is stopped, reconfigured and restarted.

Re-ordered calls in bond_ethdev_start() to have callback alarm set
after slave ports are reconfigured.

Fixes: 2efb58cbab6e ("bond: new link bonding library")
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