From: Jakub Kicinski Date: Mon, 22 May 2017 17:59:32 +0000 (-0700) Subject: nfp: mark port state as stale after reconfig X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1f60a5815bade268696d57452dfbfcbf0c655a23;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git nfp: mark port state as stale after reconfig After port configuration is performed mark it as changed. This will close a window of time between configuration and async state refresh which runs from a workqueue where old port state would be reported. Signed-off-by: Jakub Kicinski Reviewed-by: Simon Horman Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_main.c b/drivers/net/ethernet/netronome/nfp/nfp_net_main.c index 40ba5775ff79..12cbf21df3b9 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_net_main.c +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_main.c @@ -596,6 +596,8 @@ void nfp_net_refresh_port_table(struct nfp_port *port) { struct nfp_pf *pf = port->app->pf; + set_bit(NFP_PORT_CHANGED, &port->flags); + schedule_work(&pf->port_refresh_work); }