Browse Source

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>
Jakub Kicinski 8 năm trước cách đây
mục cha
commit
1f60a5815b
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      drivers/net/ethernet/netronome/nfp/nfp_net_main.c

+ 2 - 0
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);
 }