[dpdk-dev] [PATCH] net/sfc: fix missing notification on link status change
Andrew Rybchenko
arybchenko at solarflare.com
Fri Sep 6 12:49:49 CEST 2019
rte_eth_linkstatus_set() returns 0 when link up status changes.
Fixes: 4abe903e5078 ("net/sfc: use link status helper functions")
Cc: stable at dpdk.org
Reported-by: Shuki Katzenelson <shuki at lightbitslabs.com>
Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>
---
drivers/net/sfc/sfc_ev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/sfc/sfc_ev.c b/drivers/net/sfc/sfc_ev.c
index 0f216da5d9..6a58a2d975 100644
--- a/drivers/net/sfc/sfc_ev.c
+++ b/drivers/net/sfc/sfc_ev.c
@@ -420,7 +420,7 @@ sfc_ev_link_change(void *arg, efx_link_mode_t link_mode)
struct rte_eth_link new_link;
sfc_port_link_mode_to_info(link_mode, &new_link);
- if (rte_eth_linkstatus_set(sa->eth_dev, &new_link))
+ if (rte_eth_linkstatus_set(sa->eth_dev, &new_link) == 0)
evq->sa->port.lsc_seq++;
return B_FALSE;
--
2.17.1
More information about the dev
mailing list