OSDN Git Service

net/smc: send ISM devices with unique chid in CLC proposal
authorKarsten Graul <kgraul@linux.ibm.com>
Fri, 2 Oct 2020 15:09:26 +0000 (17:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Oct 2020 00:04:48 +0000 (17:04 -0700)
commit839d696ffb2714c06da7f55f622d0ac8286524b5
tree1daa3d71a50de04ad89114ba372c963263b3f455
parent6a0c00e5d2b1d5a45d6c8f2b87d81ebf8df12d82
net/smc: send ISM devices with unique chid in CLC proposal

When building a CLC proposal message then the list of ISM devices does
not need to contain multiple devices that have the same chid value,
all these devices use the same function at the end.
Improve smc_find_ism_v2_device_clnt() to collect only ISM devices that
have unique chid values.

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