From: Andrew Rybchenko Date: Fri, 6 Sep 2019 10:49:49 +0000 (+0100) Subject: net/sfc: fix missing notification on link status change X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=282b72cd725ac6f5a32558253ad80e905c3b4028;p=dpdk.git 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 --- 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;