Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Ursula Braun | b38d732 | 2017-01-09 16:55:25 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Shared Memory Communications over RDMA (SMC-R) and RoCE |
| 4 | * |
| 5 | * Socket Closing |
| 6 | * |
| 7 | * Copyright IBM Corp. 2016 |
| 8 | * |
| 9 | * Author(s): Ursula Braun <ubraun@linux.vnet.ibm.com> |
| 10 | */ |
| 11 | |
| 12 | #ifndef SMC_CLOSE_H |
| 13 | #define SMC_CLOSE_H |
| 14 | |
| 15 | #include <linux/workqueue.h> |
| 16 | |
| 17 | #include "smc.h" |
| 18 | |
| 19 | #define SMC_MAX_STREAM_WAIT_TIMEOUT (2 * HZ) |
| 20 | #define SMC_CLOSE_SOCK_PUT_DELAY HZ |
| 21 | |
| 22 | void smc_close_wake_tx_prepared(struct smc_sock *smc); |
Ursula Braun | b38d732 | 2017-01-09 16:55:25 +0100 | [diff] [blame] | 23 | int smc_close_active(struct smc_sock *smc); |
Ursula Braun | b38d732 | 2017-01-09 16:55:25 +0100 | [diff] [blame] | 24 | int smc_close_shutdown_write(struct smc_sock *smc); |
Ursula Braun | 46c28db | 2017-04-10 14:58:01 +0200 | [diff] [blame] | 25 | void smc_close_init(struct smc_sock *smc); |
Karsten Graul | fd57770 | 2019-04-11 11:17:30 +0200 | [diff] [blame] | 26 | void smc_clcsock_release(struct smc_sock *smc); |
Ursula Braun | 8317976 | 2019-10-21 16:13:12 +0200 | [diff] [blame] | 27 | int smc_close_abort(struct smc_connection *conn); |
Ursula Braun | 81cf4f4 | 2019-10-21 16:13:15 +0200 | [diff] [blame] | 28 | void smc_close_active_abort(struct smc_sock *smc); |
Ursula Braun | b38d732 | 2017-01-09 16:55:25 +0100 | [diff] [blame] | 29 | |
| 30 | #endif /* SMC_CLOSE_H */ |