]> 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)
commitc1de13f91ee5afeec3a1eaa9d4818ab48f8f96d9
treeddcb598f688591c0948dcaa594ff92c559b55b74
parent9834e2467c868a670e469ef1176e991ac4aac53d
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