OSDN Git Service

net/smc: improve smc_listen_work reason codes
authorKarsten Graul <kgraul@linux.ibm.com>
Fri, 12 Apr 2019 10:57:29 +0000 (12:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Apr 2019 17:50:56 +0000 (10:50 -0700)
commit9aa68d298c80d11a987691258ff92fd67e224af3
treef28a5a139ecaeecfa19522948f781938e66df899
parent228bae05be328045e6dfb4d3bf2600e6547c1d13
net/smc: improve smc_listen_work reason codes

Rework smc_listen_work() to provide improved reason codes when an
SMC connection is declined. This allows better debugging on user side.
This also adds 3 more detailed reason codes in smc_clc.h to indicate
what type of device was not found (ism or rdma or both), or if ism
cannot talk to the peer.

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/af_smc.c
net/smc/smc_clc.h