]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nfp: flower: allow non repr netdev offload
authorJohn Hurley <john.hurley@netronome.com>
Sat, 10 Nov 2018 05:21:27 +0000 (21:21 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Nov 2018 17:54:53 +0000 (09:54 -0800)
commit7885b4fc8d8e3d0e489f08144f3d4eb2952cb852
tree60272515e4751d3c53a295d093c68f1269e5e7e1
parent7f76fa36754b08d9709ae50cd0a9477a6f998b21
nfp: flower: allow non repr netdev offload

Previously the offload functions in NFP assumed that the ingress (or
egress) netdev passed to them was an nfp repr.

Modify the driver to permit the passing of non repr netdevs as the ingress
device for an offload rule candidate. This may include devices such as
tunnels. The driver should then base its offload decision on a combination
of ingress device and egress port for a rule.

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>
drivers/net/ethernet/netronome/nfp/flower/action.c
drivers/net/ethernet/netronome/nfp/flower/main.h
drivers/net/ethernet/netronome/nfp/flower/match.c
drivers/net/ethernet/netronome/nfp/flower/offload.c