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)
commit45756dfedab5fd7056ae87aed66b5089f9d8b039
treebc7788465ccc569873b2306a267253a6afefe6b6
parentf41dd0595d0668e0197eaacc66ac18703a1be758
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