]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
nfp: flower: ensure dead neighbour entries are not offloaded
authorJohn Hurley <john.hurley@netronome.com>
Sat, 21 Jul 2018 04:07:54 +0000 (21:07 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 1 Mar 2019 13:20:26 +0000 (14:20 +0100)
commit65373f7ece1e548af439de34c1a6b26d724adb27
treefebcf339772a20e1829cb8f5d599197115f026ad
parent017e8727707c5e7e6d1de717c255eb38e634fef3
nfp: flower: ensure dead neighbour entries are not offloaded

BugLink: http://bugs.launchpad.net/bugs/1814813
[ Upstream commit b809ec869b2cf2af053ffd99e5a46ab600e94aa2 ]

Previously only the neighbour state was checked to decide if an offloaded
entry should be removed. However, there can be situations when the entry
is dead but still marked as valid. This can lead to dead entries not
being removed from fw tables or even incorrect data being added.

Check the entry dead bit before deciding if it should be added to or
removed from fw neighbour tables.

Fixes: 8e6a9046b66a ("nfp: flower vxlan neighbour offload")
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c