]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: allow tunnels to output to internal port
authorJohn Hurley <john.hurley@netronome.com>
Mon, 15 Apr 2019 14:55:57 +0000 (16:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Apr 2019 22:45:36 +0000 (15:45 -0700)
commit3c087f9863039c5871bfbce21b5c66e51cffe8da
treebc7788465ccc569873b2306a267253a6afefe6b6
parenta0eb88994baf71b6bfa23265d1790aa4f8413f12
nfp: flower: allow tunnels to output to internal port

The neighbour table in the FW only accepts next hop entries if the egress
port is an nfp repr. Modify this to allow the next hop to be an internal
port. This means that if a packet is to egress to that port, it will
recirculate back into the system with the internal port becoming its
ingress port.

Signed-off-by: John Hurley <john.hurley@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/tunnel_conf.c