iser-target: Handle ADDR_CHANGE event for listener cm_id
authorSagi Grimberg <sagig@mellanox.com>
Fri, 30 Jan 2015 22:17:29 +0000 (22:17 +0000)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:06:29 +0000 (13:06 +0000)
commitc6b12a826a5deb4cafa597d193182c334a1583ba
treed202e80052298893975bf214513fecdf296c9940
parent0c9367a949339d8bd934b79c0efde6961bb6b368
iser-target: Handle ADDR_CHANGE event for listener cm_id

commit ca6c1d82d12d8013fb75ce015900d62b9754623c upstream.

The np listener cm_id will also get ADDR_CHANGE event
upcall (in case it is bound to a specific IP). Handle
it correctly by creating a new cm_id and implicitly
destroy the old one.

Since this is the second event a listener np cm_id may
encounter, we move the np cm_id event handling to a
routine.

Squashed:

iser-target: Move cma_id setup to a function

Reported-by: Slava Shwartsman <valyushash@gmail.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/ulp/isert/ib_isert.c
drivers/infiniband/ulp/isert/ib_isert.h