]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: sparx5: flower: only do lookup if fragment flags are set
authorAsbjørn Sloth Tønnesen <ast@fiberby.net>
Wed, 24 Apr 2024 12:16:22 +0000 (12:16 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Apr 2024 02:35:08 +0000 (19:35 -0700)
commitbcf303c62c98eb41e242bba8764f5804d9d4658b
treef17e828c41a7b0363d08f40620067d240a2b0f25
parentc984f374aeec6118d59f115bb69ff1a7344a0443
net: sparx5: flower: only do lookup if fragment flags are set

The fragment lookup should only be performed, when
at least one of the fragment flags are set.

This change was deliberately not included in commit
68aba00483c7 ("net: sparx5: flower: fix fragment flags handling")
as it's only needed for future proffing the code, since
"mask" is currently only set in conjunction with the
fragment flags.
(The 3rd flag FLOW_DIS_ENCAPSULATION is only used with "key")

Only compile tested.

Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Reviewed-by: Daniel Machon <daniel.machon@microchip.com>
Tested-by: Daniel Machon <daniel.machon@microchip.com>
Link: https://lore.kernel.org/r/20240424121632.459022-2-ast@fiberby.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.c