nfp: flower: add support to offload QinQ match
authorLouis Peens <louis.peens@netronome.com>
Thu, 20 Aug 2020 14:39:38 +0000 (16:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Aug 2020 23:04:42 +0000 (16:04 -0700)
commit0d630f58989a1ac741dc6cb0afd49daa95aac0fc
treebccc044017dc5f14cfdbaa260180b6767389f295
parente4cab45a19cde8c03e9af3124ef1513ed58ca3a6
nfp: flower: add support to offload QinQ match

When both the driver and the firmware supports QinQ the flow key
structure that is send to the firmware is updated as the old
method of matching on VLAN did not allow for space to add another
VLAN tag. VLAN flows can now also match on the tpid field, not
constrained to just 0x8100 as before.

Signed-off-by: Louis Peens <louis.peens@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/cmsg.h
drivers/net/ethernet/netronome/nfp/flower/main.h
drivers/net/ethernet/netronome/nfp/flower/match.c
drivers/net/ethernet/netronome/nfp/flower/offload.c