linux/drivers/infiniband/ulp
Erez Shitrit 5c2a477320 IB/IPoIB: Don't update neigh validity for unresolved entries
commit 61c78eea95 upstream.

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: b63b70d877 ("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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2016-08-22 22:38:09 +01:00
..
ipoib IB/IPoIB: Don't update neigh validity for unresolved entries 2016-08-22 22:38:09 +01:00
iser IB/iser: Fix wrong calculation of protection buffer length 2015-05-06 11:33:08 +01:00
isert iser-target: remove command with state ISTATE_REMOVE 2015-10-09 14:41:06 +01:00
srp IB/srp: Fix possible send queue overflow 2016-01-11 10:50:19 +00:00
srpt IB/srpt: Simplify srpt_handle_tsk_mgmt() 2016-05-01 00:05:52 +02:00
Makefile IB: Allow build of hw/ and ulp/ subdirectories independently 2014-06-02 14:51:12 -07:00