nfp: flower: fix unsupported pre_tunnel flows
authorLouis Peens <louis.peens@corigine.com>
Tue, 16 Mar 2021 18:13:08 +0000 (19:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Mar 2021 22:36:43 +0000 (15:36 -0700)
commit982e5ee23d764fe6158f67a7813d416335e978b0
treeb9b567d18269400ec15e293bc2c62b9297e22f62
parenta3bc483216650a7232559bf0a1debfbabff3e12c
nfp: flower: fix unsupported pre_tunnel flows

There are some pre_tunnel flows combinations which are incorrectly being
offloaded without proper support, fix these.

- Matching on MPLS is not supported for pre_tun.
- Match on IPv4/IPv6 layer must be present.
- Destination MAC address must match pre_tun.dev MAC

Fixes: 120ffd84a9ec ("nfp: flower: verify pre-tunnel rules")
Signed-off-by: Louis Peens <louis.peens@corigine.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/offload.c