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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Jul 2018 17:55:01 +0000 (10:55 -0700)
commitb809ec869b2cf2af053ffd99e5a46ab600e94aa2
tree11c86416be54d59743767ce6651c9fc9a022f76e
parent0fb8d5a030db52a184eca49320e5f4ff8dacd61d
nfp: flower: ensure dead neighbour entries are not offloaded

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>
drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c