]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mlxsw: spectrum_matchall: Convert if statements to a switch statement
authorIdo Schimmel <idosch@nvidia.com>
Mon, 29 Mar 2021 10:09:44 +0000 (13:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Mar 2021 20:37:25 +0000 (13:37 -0700)
commit50401f292434d5fb99f3f0c9b861f8a84c151ecc
tree05f101f2ed378c9fcf09906df31bab46e0f04025
parent4947e7309a31fdab1078b477b98b4cb1a28f80d8
mlxsw: spectrum_matchall: Convert if statements to a switch statement

Previous patch moved the protocol check out of the action check, so
these if statements can now be converted to a switch statement. Perform
the conversion.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_matchall.c