mlxsw: spectrum: Update a comment
authorPetr Machata <petrm@nvidia.com>
Sun, 8 May 2022 08:08:20 +0000 (11:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 May 2022 10:46:20 +0000 (11:46 +0100)
The position of netdevice notifier registration no longer depends on the
router initialization, because the event handler no longer dispatches to
the router code. Update the comment at the registration to that effect.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c

index 5ced3df92aabdc7396efcb86d78930cbeb9f3cda..cafd206e8d7e9d47698a67f9fa741a841ff2fa2b 100644 (file)
@@ -3122,9 +3122,8 @@ static int mlxsw_sp_init(struct mlxsw_core *mlxsw_core,
                }
        }
 
-       /* Initialize netdevice notifier after router and SPAN is initialized,
-        * so that the event handler can use router structures and call SPAN
-        * respin.
+       /* Initialize netdevice notifier after SPAN is initialized, so that the
+        * event handler can call SPAN respin.
         */
        mlxsw_sp->netdevice_nb.notifier_call = mlxsw_sp_netdevice_event;
        err = register_netdevice_notifier_net(mlxsw_sp_net(mlxsw_sp),