linux/drivers/infiniband/ulp
Erez Shitrit 9bb807338a 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2016-08-20 18:09:25 +02:00
..
ipoib IB/IPoIB: Don't update neigh validity for unresolved entries 2016-08-20 18:09:25 +02:00
iser IB/iser: use sector_div instead of do_div 2015-12-07 16:42:33 -05:00
isert iser-target: Rework connection termination 2016-04-12 09:09:03 -07:00
srp IB/srp: Fix a debug kernel crash 2016-06-01 12:15:53 -07:00
srpt IB/srpt: Simplify srpt_handle_tsk_mgmt() 2016-04-12 09:08:53 -07:00
Makefile IB: Allow build of hw/ and ulp/ subdirectories independently 2014-06-02 14:51:12 -07:00