]> git.baikalelectronics.ru Git - kernel.git/commit
IB/IPoIB: Don't update neigh validity for unresolved entries
authorErez Shitrit <erezsh@mellanox.com>
Sat, 4 Jun 2016 12:15:19 +0000 (15:15 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 7 Jun 2016 14:49:48 +0000 (10:49 -0400)
commitbfc569a7d75cf94119c1ef7c87ae8a362fc126e1
treed690bdcbafdce9aefa4defd18aa86ee245073440
parentd5b01021e36c5d90c502814c66b98b121c23169e
IB/IPoIB: Don't update neigh validity for unresolved entries

ipoib_neigh_get unconditionally updates the "alive" variable member on
any packet send.  This prevents the neighbor garbage collection from
cleaning out a dead neighbor entry if we are still queueing packets
for it.  If the queue for this neighbor is full, then don't update the
alive timestamp.  That way the neighbor can time out even if packets
are still being queued as long as none of them are being sent.

Fixes: 6644dc855321 ("IPoIB: Use a private hash table for path lookup in xmit path")
Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c