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>
This commit is contained in:
parent
3eb3b74adb
commit
1f60a5815b
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user