bonding: fix link detect in non-interrupt mode
authorNelson Escobar <neescoba@cisco.com>
Sat, 26 Mar 2016 00:44:50 +0000 (17:44 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 1 Apr 2016 13:07:53 +0000 (15:07 +0200)
commit44bf37a7021a8280d5057c59e3e01bfa0469a872
treea4ee1037984b8c30ddbfe500521cc9e3df816f44
parent4fd425cb7458f62a203cd1379c840a5e6790aa00
bonding: fix link detect in non-interrupt mode

Stopping then re-starting a bond interface containing slaves that
used polling for link detection caused the bond to think all slave
links were down and inactive.

Move the start of the polling for link from slave_add() to
bond_ethdev_start() and in bond_ethdev_stop() make sure we clear
the last_link_status of the slaves.

Fixes: a45b288ef21a ("bond: support link status polling")

Signed-off-by: Nelson Escobar <neescoba@cisco.com>
Signed-off-by: John Daley <johndale@cisco.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
drivers/net/bonding/rte_eth_bond_pmd.c