net/bonding: always update bonding link status
authorChas Williams <chas3@att.com>
Thu, 17 May 2018 23:22:52 +0000 (19:22 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 14 Jun 2018 17:54:56 +0000 (19:54 +0200)
commit0e677a35349f316d50ba25485354363f3e65c12e
tree055f5f981e72590bb9e4a6613e6e4185987f09fd
parent422515b9aab0f1161631276d682303356e243c07
net/bonding: always update bonding link status

When the first ETH_LINK_UP slave is added to a bonding device, it is
immediately activated.  If these are polling slaves, there will be a
later link state event, when last_link_status doesn't match link_status.
But because this slave is already activated, the bonding device's link
status isn't updated.

To fix this, we always attempt to update the bonding device's link status
in the link state change callback.

Fixes: 46fb43683679 ("bond: add mode 4")
Cc: stable@dpdk.org
Signed-off-by: Chas Williams <chas3@att.com>
drivers/net/bonding/rte_eth_bond_pmd.c