]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: restructure flow-key for gre+vlan combination
authorEtienne van der Linde <etienne.vanderlinde@corigine.com>
Wed, 8 Jun 2022 09:29:01 +0000 (11:29 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Jun 2022 05:02:38 +0000 (22:02 -0700)
commitbaa10a9240aa92706273db2a0336085d2dbb64af
tree4341545f1404f9f86741f8912e5e166e8d0135ab
parent68ffc1d10b0185a022e170f37a4b57540f8afcad
nfp: flower: restructure flow-key for gre+vlan combination

Swap around the GRE and VLAN parts in the flow-key offloaded by
the driver to fit in with other tunnel types and the firmware.
Without this change used cases with GRE+VLAN on the outer header
does not get offloaded as the flow-key mismatches what the
firmware expect.

Fixes: 6c27392b059d ("nfp: flower: add support to offload QinQ match")
Fixes: 61c382052735 ("nfp: flower-ct: compile match sections of flow_payload")
Signed-off-by: Etienne van der Linde <etienne.vanderlinde@corigine.com>
Signed-off-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Yinjun Zhang <yinjun.zhang@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/netronome/nfp/flower/conntrack.c
drivers/net/ethernet/netronome/nfp/flower/match.c