Lines Matching defs:smc_connection
195 struct smc_connection { struct
196 struct rb_node alert_node;
197 struct smc_link_group *lgr; /* link group of connection */
198 struct smc_link *lnk; /* assigned SMC-R link */
199 u32 alert_token_local; /* unique conn. id */
200 u8 peer_rmbe_idx; /* from tcp handshake */
201 int peer_rmbe_size; /* size of peer rx buffer */
202 atomic_t peer_rmbe_space;/* remaining free bytes in peer
205 int rtoken_idx; /* idx to peer RMB rkey/addr */
207 struct smc_buf_desc *sndbuf_desc; /* send buffer descriptor */
208 struct smc_buf_desc *rmb_desc; /* RMBE descriptor */
209 int rmbe_size_comp; /* compressed notation */
210 int rmbe_update_limit;
215 struct smc_host_cdc_msg local_tx_ctrl; /* host byte order staging
220 union smc_host_cursor local_tx_ctrl_fin;
223 union smc_host_cursor tx_curs_prep; /* tx - prepared data
226 union smc_host_cursor tx_curs_sent; /* tx - sent data
229 union smc_host_cursor tx_curs_fin; /* tx - confirmed by peer
232 atomic_t sndbuf_space; /* remaining space in sndbuf */
233 u16 tx_cdc_seq; /* sequence # for CDC send */
234 u16 tx_cdc_seq_fin; /* sequence # - tx completed */
235 spinlock_t send_lock; /* protect wr_sends */
236 atomic_t cdc_pend_tx_wr; /* number of pending tx CDC wqe
240 wait_queue_head_t cdc_pend_tx_wq; /* wakeup on no cdc_pend_tx_wr*/
241 struct delayed_work tx_work; /* retry of smc_cdc_msg_send */
242 u32 tx_off; /* base offset in peer rmb */
244 struct smc_host_cdc_msg local_rx_ctrl; /* filled during event_handl.
248 union smc_host_cursor rx_curs_confirmed; /* confirmed to peer
251 union smc_host_cursor urg_curs; /* points at urgent byte */
252 enum smc_urg_state urg_state;
253 bool urg_tx_pend; /* urgent data staged */
254 bool urg_rx_skip_pend;
259 char urg_rx_byte; /* urgent byte */
260 bool tx_in_release_sock;
264 atomic_t bytes_to_rcv; /* arrived data,
267 atomic_t splice_pending; /* number of spliced bytes
271 spinlock_t acurs_lock; /* protect cursors */
273 struct work_struct close_work; /* peer sent some closing */
274 struct work_struct abort_work; /* abort the connection */
275 struct tasklet_struct rx_tsklet; /* Receiver tasklet for SMC-D */
299 struct smc_connection conn; /* smc connection */ argument