mlxsw: spectrum_flower: Split iif parsing to a separate function
authorIdo Schimmel <idosch@nvidia.com>
Mon, 29 May 2023 11:48:32 +0000 (14:48 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 31 May 2023 06:37:00 +0000 (23:37 -0700)
commitd04e265096784b4cebeb627b21f0f27410d20dc4
tree1ac0d19a3a5f642adfa5dec80239d29ec23f32f6
parentf4356947f0297b0962fdd197672db7edf9f58be6
mlxsw: spectrum_flower: Split iif parsing to a separate function

Currently, mlxsw only supports the 'ingress_ifindex' field in the
'FLOW_DISSECTOR_KEY_META' key, but subsequent patches are going to add
support for the 'l2_miss' field as well. Split the parsing of the
'ingress_ifindex' field to a separate function to avoid nesting. No
functional changes intended.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c