net/smc: unique reason code for exceeded max dmb count
authorKarsten Graul <kgraul@linux.ibm.com>
Sun, 26 Jul 2020 18:34:28 +0000 (20:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2020 17:30:01 +0000 (10:30 -0700)
commit72b7f6c48708e4524765a2f1316063207d8e0cd5
treeefb004cf45b4e6b81233908c39c429259ab96a1a
parent211e5b7a0007e6a172eafdb89c512768f82d73bf
net/smc: unique reason code for exceeded max dmb count

When the maximum dmb buffer limit for an ism device is reached no more
dmb buffers can be registered. When this happens the reason code is set
to SMC_CLC_DECL_MEM indicating out-of-memory. This is the same reason
code that is used when no memory could be allocated for the new dmb
buffer.
This is confusing for users when they see this error but there is more
memory available. To solve this set a separate new reason code when the
maximum dmb limit exceeded.

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