]> 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)
commit8c92fa9ee7c4fb6cb9e96feddb267b3b5a6e434e
treeddcb598f688591c0948dcaa594ff92c559b55b74
parent08319ce55adab0d639d56826ccc18c4046bbfc86
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