2 * Shared Memory Communications over RDMA (SMC-R) and RoCE
4 * Definitions for the SMC module (socket related)
6 * Copyright IBM Corp. 2016
8 * Author(s): Ursula Braun <ubraun@linux.vnet.ibm.com>
13 #include <linux/socket.h>
14 #include <linux/types.h>
17 #define SMCPROTO_SMC 0 /* SMC protocol */
19 enum smc_state { /* possible states of an SMC socket */
26 struct smc_sock { /* smc sock container */
28 struct socket *clcsock; /* internal tcp socket */
29 bool use_fallback; /* fallback to tcp */
32 static inline struct smc_sock *smc_sk(const struct sock *sk)
34 return (struct smc_sock *)sk;