]> 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)
commit89713b732c632ed9e1dadfa98548e577dd33a736
treebc7788465ccc569873b2306a267253a6afefe6b6
parent7ec6d82b23b05d91ba2437df692191ea44f0a15e
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