linux/drivers/net/ethernet/netronome/nfp/flower
John Hurley 0115552eac nfp: remove false positive offloads in flower vxlan
Pass information to the match offload on whether or not the repr is the
ingress or egress dev. Only accept tunnel matches if repr is the egress
dev.

This means rules such as the following are successfully offloaded:
tc .. add dev vxlan0 .. enc_dst_port 4789 .. action redirect dev nfp_p0

While rules such as the following are rejected:
tc .. add dev nfp_p0 .. enc_dst_port 4789 .. action redirect dev vxlan0

Also reject non tunnel flows that are offloaded to an egress dev.
Non tunnel matches assume that the offload dev is the ingress port and
offload a match accordingly.

Fixes: 611aec101a ("nfp: compile flower vxlan tunnel metadata match fields")
Signed-off-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-11-17 14:09:36 +09:00
..
action.c nfp flower action: Modified to use VLAN helper functions 2017-11-10 15:32:20 +09:00
cmsg.c nfp: flower: vxlan - ensure no sleep in atomic context 2017-11-02 20:27:11 +09:00
cmsg.h nfp: flower: vxlan - ensure no sleep in atomic context 2017-11-02 20:27:11 +09:00
main.c nfp: register flower reprs for egress dev offload 2017-11-17 14:09:36 +09:00
main.h nfp: register flower reprs for egress dev offload 2017-11-17 14:09:36 +09:00
match.c nfp: add IPv6 ttl and tos match offloading support 2017-10-06 09:56:35 -07:00
metadata.c nfp: fix flower offload metadata flag usage 2017-11-17 14:09:35 +09:00
offload.c nfp: remove false positive offloads in flower vxlan 2017-11-17 14:09:36 +09:00
tunnel_conf.c nfp: flower: vxlan - ensure no sleep in atomic context 2017-11-02 20:27:11 +09:00