summaryrefslogtreecommitdiffstats
path: root/net/smc/smc_clc.h
diff options
context:
space:
mode:
authorKarsten Graul2018-03-01 13:51:27 +0100
committerDavid S. Miller2018-03-01 19:21:31 +0100
commit696cd3016975d31e3499c49a7a747d7615a16b3b (patch)
treef8bd0147570f5ae9e8454b423de9f7703c258c31 /net/smc/smc_clc.h
parentnet/smc: cleanup smc_llc.h and smc_clc.h headers (diff)
downloadkernel-qcow2-linux-696cd3016975d31e3499c49a7a747d7615a16b3b.tar.gz
kernel-qcow2-linux-696cd3016975d31e3499c49a7a747d7615a16b3b.tar.xz
kernel-qcow2-linux-696cd3016975d31e3499c49a7a747d7615a16b3b.zip
net/smc: move netinfo function to file smc_clc.c
The function smc_netinfo_by_tcpsk() belongs to CLC handling. Move it to smc_clc.c and rename to smc_clc_netinfo_by_tcpsk. Signed-off-by: Karsten Graul <kgraul@linux.vnet.ibm.com> Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_clc.h')
-rw-r--r--net/smc/smc_clc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/smc/smc_clc.h b/net/smc/smc_clc.h
index aab3aae2a2ce..a20fc75efb24 100644
--- a/net/smc/smc_clc.h
+++ b/net/smc/smc_clc.h
@@ -121,6 +121,8 @@ smc_clc_proposal_get_prefix(struct smc_clc_msg_proposal *pclc)
((u8 *)pclc + sizeof(*pclc) + ntohs(pclc->iparea_offset));
}
+int smc_clc_netinfo_by_tcpsk(struct socket *clcsock, __be32 *subnet,
+ u8 *prefix_len);
int smc_clc_wait_msg(struct smc_sock *smc, void *buf, int buflen,
u8 expected_type);
int smc_clc_send_decline(struct smc_sock *smc, u32 peer_diag_info);