Commit 1f60a581 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

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: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: default avatarSimon Horman <simon.horman@netronome.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3eb3b74a
...@@ -596,6 +596,8 @@ void nfp_net_refresh_port_table(struct nfp_port *port) ...@@ -596,6 +596,8 @@ void nfp_net_refresh_port_table(struct nfp_port *port)
{ {
struct nfp_pf *pf = port->app->pf; struct nfp_pf *pf = port->app->pf;
set_bit(NFP_PORT_CHANGED, &port->flags);
schedule_work(&pf->port_refresh_work); schedule_work(&pf->port_refresh_work);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment