summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2017-05-22 20:59:32 +0300
committerDavid S. Miller <davem@davemloft.net>2017-05-22 21:59:05 +0300
commit1f60a5815bade268696d57452dfbfcbf0c655a23 (patch)
tree48625e0e069217b4d436baee5868515e7a77d8e7
parent3eb3b74adb701d575d718df1bbffefa2543a302d (diff)
downloadlinux-1f60a5815bade268696d57452dfbfcbf0c655a23.tar.xz
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 <jakub.kicinski@netronome.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/netronome/nfp/nfp_net_main.c2
1 files changed, 2 insertions, 0 deletions
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);
}