Lines Matching +full:smc +full:- +full:id
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Shared Memory Communications over RDMA (SMC-R) and RoCE
5 * Definitions for the SMC module (socket related)
22 #define SMC_V1 1 /* SMC version V1 */
23 #define SMC_V2 2 /* SMC version V2 */
26 #define SMCPROTO_SMC 0 /* SMC protocol, IPv4 */
27 #define SMCPROTO_SMC6 1 /* SMC protocol, IPv6 */
29 #define SMC_MAX_ISM_DEVS 8 /* max # of proposed non-native ISM
41 enum smc_state { /* possible states of an SMC socket */
110 union smc_host_cursor { /* SMC cursor - an offset in an RMBE */
153 struct smc_link *lnk; /* assigned SMC-R link */
154 u32 alert_token_local; /* unique conn. id */
176 /* prod crsr - confirmed by peer
178 union smc_host_cursor tx_curs_prep; /* tx - prepared data
181 union smc_host_cursor tx_curs_sent; /* tx - sent data
184 union smc_host_cursor tx_curs_fin; /* tx - confirmed by peer
185 * snd-wnd-begin ?
189 u16 tx_cdc_seq_fin; /* sequence # - tx completed */
192 * - inc when post wqe,
193 * - dec on polled tx cqe
231 struct tasklet_struct rx_tsklet; /* Receiver tasklet for SMC-D */
233 * 0 for SMC-R, 32 for SMC-D
235 u64 peer_token; /* SMC-D token of peer */
241 struct smc_sock { /* smc sock container */
252 struct smc_connection conn; /* smc connection */
254 struct work_struct connect_work; /* handle non-blocking connect*/
263 atomic_t queued_smc_hs; /* queued smc handshakes */
277 /* non-blocking connect in
291 static inline void smc_init_saved_callbacks(struct smc_sock *smc) in smc_init_saved_callbacks() argument
293 smc->clcsk_state_change = NULL; in smc_init_saved_callbacks()
294 smc->clcsk_data_ready = NULL; in smc_init_saved_callbacks()
295 smc->clcsk_write_space = NULL; in smc_init_saved_callbacks()
296 smc->clcsk_error_report = NULL; in smc_init_saved_callbacks()
302 ((uintptr_t)clcsk->sk_user_data & ~SK_USER_DATA_NOCOPY); in smc_clcsock_user_data()
355 static inline bool using_ipsec(struct smc_sock *smc) in using_ipsec() argument
357 return (smc->clcsock->sk->sk_policy[0] || in using_ipsec()
358 smc->clcsock->sk->sk_policy[1]) ? true : false; in using_ipsec()
361 static inline bool using_ipsec(struct smc_sock *smc) in using_ipsec() argument
375 /* smc handshake limitation interface for netlink */