diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-05-22 20:59:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-22 21:59:05 +0300 |
commit | 1f60a5815bade268696d57452dfbfcbf0c655a23 (patch) | |
tree | 48625e0e069217b4d436baee5868515e7a77d8e7 | |
parent | 3eb3b74adb701d575d718df1bbffefa2543a302d (diff) | |
download | linux-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.c | 2 |
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); } |