net/bonding: fix updating slave link status
authorWei Wang <lnykww@gmail.com>
Tue, 25 Apr 2017 06:30:49 +0000 (14:30 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Apr 2017 12:46:18 +0000 (14:46 +0200)
commit210903803f6e0c31f398b26fe337eb5a729ca72b
tree68213a1b3ced2787c13668bc22ffbeacfc241340
parentd4f954b16687008d99cdd56f135daea88573723c
net/bonding: fix updating slave link status

We need to update dev->data->dev_link before handling LSC event.
Otherwise it will still have the initial value after the startup of
the program before interrupt callback was executed.

Fixes: 414b202343ce ("bonding: fix initial link status of slave")
Cc: stable@dpdk.org
Signed-off-by: Wei Wang <lnykww@gmail.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
drivers/net/bonding/rte_eth_bond_pmd.c