Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / net / smc / smc_close.h
blob4a3d99a8d7cbf18598ef74dae61e2be2a0a17b48
1 /*
2 * Shared Memory Communications over RDMA (SMC-R) and RoCE
4 * Socket Closing
6 * Copyright IBM Corp. 2016
8 * Author(s): Ursula Braun <ubraun@linux.vnet.ibm.com>
9 */
11 #ifndef SMC_CLOSE_H
12 #define SMC_CLOSE_H
14 #include <linux/workqueue.h>
16 #include "smc.h"
18 #define SMC_MAX_STREAM_WAIT_TIMEOUT (2 * HZ)
19 #define SMC_CLOSE_SOCK_PUT_DELAY HZ
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);
24 void smc_close_sock_put_work(struct work_struct *work);
25 int smc_close_shutdown_write(struct smc_sock *smc);
26 void smc_close_init(struct smc_sock *smc);
28 #endif /* SMC_CLOSE_H */