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)
commita0b843340dae704e17c1ddfad0f85c583c36757f
tree4341545f1404f9f86741f8912e5e166e8d0135ab
parent03d5005ff7356a9952a21da20a3d7828fd559fee
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: 0d630f58989a ("nfp: flower: add support to offload QinQ match")
Fixes: 5a2b93041646 ("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