From 282b72cd725ac6f5a32558253ad80e905c3b4028 Mon Sep 17 00:00:00 2001 From: Andrew Rybchenko Date: Fri, 6 Sep 2019 11:49:49 +0100 Subject: [PATCH] net/sfc: fix missing notification on link status change rte_eth_linkstatus_set() returns 0 when link up status changes. Fixes: 4abe903e5078 ("net/sfc: use link status helper functions") Cc: stable@dpdk.org Reported-by: Shuki Katzenelson Signed-off-by: Andrew Rybchenko --- 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.20.1