diff options
author | 2025-03-08 22:04:20 +0800 | |
---|---|---|
committer | 2025-03-08 22:04:20 +0800 | |
commit | a07bb8fd1299070229f0e8f3dcb57ffd5ef9870a (patch) | |
tree | 84f21bd0bf7071bc5fc7dd989e77d7ceb5476682 /net/smc/smc_close.h | |
download | ohosKernel-a07bb8fd1299070229f0e8f3dcb57ffd5ef9870a.tar.gz ohosKernel-a07bb8fd1299070229f0e8f3dcb57ffd5ef9870a.zip |
Initial commit: OpenHarmony-v4.0-ReleaseOpenHarmony-v4.0-Release
Diffstat (limited to 'net/smc/smc_close.h')
-rw-r--r-- | net/smc/smc_close.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/net/smc/smc_close.h b/net/smc/smc_close.h new file mode 100644 index 000000000..634fea2b7 --- /dev/null +++ b/net/smc/smc_close.h | |||
@@ -0,0 +1,30 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
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); | ||
23 | int smc_close_active(struct smc_sock *smc); | ||
24 | int smc_close_shutdown_write(struct smc_sock *smc); | ||
25 | 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 *conn); | ||
28 | void smc_close_active_abort(struct smc_sock *smc); | ||
29 | |||
30 | #endif /* SMC_CLOSE_H */ | ||