]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: Extract classification of router-related events to a helper
authorPetr Machata <petrm@nvidia.com>
Wed, 2 Mar 2022 16:31:26 +0000 (18:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Mar 2022 10:37:23 +0000 (10:37 +0000)
commit134081370d64dcead5bb34bf052c98eb79f6e684
treeddcb598f688591c0948dcaa594ff92c559b55b74
parenteaada44efd3a19f7ecad4d7653a511eb9f3efed2
mlxsw: Extract classification of router-related events to a helper

Several more events are coming in the following patches, and extending the
if statement is getting awkward. Instead, convert it to a switch.

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