]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: use device link provided in qp_context
authorKarsten Graul <kgraul@linux.ibm.com>
Wed, 30 Jan 2019 17:51:07 +0000 (18:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2019 22:45:45 +0000 (14:45 -0800)
commit057dc3ee2f68e76c3989b84dd8b9f23387d90516
treefcc1aec701c7f929d6fef5b12354d962dcce1e47
parente078940a6ba4937e84422da58322ab7f9556cdf0
net/smc: use device link provided in qp_context

The device field of the IB event structure does not always point to the
SMC IB device. Load the pointer from the qp_context which is always
provided to smc_ib_qp_event_handler() in the priv field. And for qp
events the affected port is given in the qp structure of the ibevent,
derive it from there.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_ib.c