]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: handle neighbour events on internal ports
authorJohn Hurley <john.hurley@netronome.com>
Wed, 28 Aug 2019 05:56:30 +0000 (22:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Aug 2019 23:06:49 +0000 (16:06 -0700)
commitb5432348b5993f10b5a82ce41f472d86b8eea577
tree952a02289d87f626e4976246543e75c65b77d85a
parente45dfbc03cf4980d70adf99eb4ac59537f50575f
nfp: flower: handle neighbour events on internal ports

Recent code changes to NFP allowed the offload of neighbour entries to FW
when the next hop device was an internal port. This allows for offload of
tunnel encap when the end-point IP address is applied to such a port.

Unfortunately, the neighbour event handler still rejects events that are
not associated with a repr dev and so the firmware neighbour table may get
out of sync for internal ports.

Fix this by allowing internal port neighbour events to be correctly
processed.

Fixes: 89713b732c63 ("nfp: flower: allow tunnels to output to internal port")
Signed-off-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c