1 /* SPDX-License-Identifier: GPL-2.0 */ << 2 /* 1 /* 3 * Shared Memory Communications over RDMA (SMC 2 * Shared Memory Communications over RDMA (SMC-R) and RoCE 4 * 3 * 5 * Socket Closing 4 * Socket Closing 6 * 5 * 7 * Copyright IBM Corp. 2016 6 * Copyright IBM Corp. 2016 8 * 7 * 9 * Author(s): Ursula Braun <ubraun@linux.vnet 8 * Author(s): Ursula Braun <ubraun@linux.vnet.ibm.com> 10 */ 9 */ 11 10 12 #ifndef SMC_CLOSE_H 11 #ifndef SMC_CLOSE_H 13 #define SMC_CLOSE_H 12 #define SMC_CLOSE_H 14 13 15 #include <linux/workqueue.h> 14 #include <linux/workqueue.h> 16 15 17 #include "smc.h" 16 #include "smc.h" 18 17 19 #define SMC_MAX_STREAM_WAIT_TIMEOUT 18 #define SMC_MAX_STREAM_WAIT_TIMEOUT (2 * HZ) 20 #define SMC_CLOSE_SOCK_PUT_DELAY 19 #define SMC_CLOSE_SOCK_PUT_DELAY HZ 21 20 22 void smc_close_wake_tx_prepared(struct smc_soc 21 void smc_close_wake_tx_prepared(struct smc_sock *smc); >> 22 void smc_close_active_abort(struct smc_sock *smc); 23 int smc_close_active(struct smc_sock *smc); 23 int smc_close_active(struct smc_sock *smc); >> 24 void smc_close_sock_put_work(struct work_struct *work); 24 int smc_close_shutdown_write(struct smc_sock * 25 int smc_close_shutdown_write(struct smc_sock *smc); 25 void smc_close_init(struct smc_sock *smc); 26 void smc_close_init(struct smc_sock *smc); 26 void smc_clcsock_release(struct smc_sock *smc) << 27 int smc_close_abort(struct smc_connection *con << 28 void smc_close_active_abort(struct smc_sock *s << 29 27 30 #endif /* SMC_CLOSE_H */ 28 #endif /* SMC_CLOSE_H */ 31 29
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.