Skip to content

Commit

Permalink
nfp: mark port state as stale after reconfig
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jakub Kicinski authored and David S. Miller committed May 22, 2017
1 parent 3eb3b74 commit 1f60a58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/netronome/nfp/nfp_net_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 1f60a58

Please sign in to comment.