mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue