summaryrefslogtreecommitdiff
path: root/net/smc/smc_core.h
diff options
context:
space:
mode:
authorKarsten Graul <kgraul@linux.ibm.com>2019-04-12 12:57:30 +0200
committerDavid S. Miller <davem@davemloft.net>2019-04-12 10:50:56 -0700
commit7a62725a50e0282ed90185074c769ce2ecb16e59 (patch)
tree7ded9f83b0ed0f263fadb9c923d6d4de811fea5f /net/smc/smc_core.h
parent9aa68d298c80d11a987691258ff92fd67e224af3 (diff)
net/smc: improve smc_conn_create reason codes
Rework smc_conn_create() to always return a valid DECLINE reason code. This removes the need to translate the return codes on 4 different places and allows to easily add more detailed return codes by changing smc_conn_create() only. 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>
Diffstat (limited to 'net/smc/smc_core.h')
-rw-r--r--net/smc/smc_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/smc/smc_core.h b/net/smc/smc_core.h
index e0628cb71e16..c00ac61dc129 100644
--- a/net/smc/smc_core.h
+++ b/net/smc/smc_core.h
@@ -235,6 +235,7 @@ struct smc_init_info {
u8 is_smcd;
unsigned short vlan_id;
int srv_first_contact;
+ int cln_first_contact;
/* SMC-R */
struct smc_clc_msg_local *ib_lcl;
struct smc_ib_device *ib_dev;