]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: fix link lookup for new rdma connections
authorKarsten Graul <kgraul@linux.ibm.com>
Sat, 18 Jul 2020 13:06:11 +0000 (15:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Jul 2020 22:30:22 +0000 (15:30 -0700)
commitb18be93096598dd65842a006186bee6b30d8fdf3
treeb4937b8977b5d415b732d97c886e050943917f90
parent45981b72f827fb6189fd799360c5e0295b919afe
net/smc: fix link lookup for new rdma connections

For new rdma connections the SMC server assigns the link and sends the
link data in the clc accept message. To match the correct link use not
only the qp_num but also the gid and the mac of the links. If there are
equal qp_nums for different links the wrong link would be chosen.

Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
Fixes: 42d527329f5f ("net/smc: adapt SMC client code to use the LLC flow")
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c