blob: 4a3d99a8d7cbf18598ef74dae61e2be2a0a17b48 [file] [log] [blame]
Ursula Braunb38d7322017-01-09 16:55:25 +01001/*
2 * Shared Memory Communications over RDMA (SMC-R) and RoCE
3 *
4 * Socket Closing
5 *
6 * Copyright IBM Corp. 2016
7 *
8 * Author(s): Ursula Braun <ubraun@linux.vnet.ibm.com>
9 */
10
11#ifndef SMC_CLOSE_H
12#define SMC_CLOSE_H
13
14#include <linux/workqueue.h>
15
16#include "smc.h"
17
18#define SMC_MAX_STREAM_WAIT_TIMEOUT (2 * HZ)
19#define SMC_CLOSE_SOCK_PUT_DELAY HZ
20
21void smc_close_wake_tx_prepared(struct smc_sock *smc);
22void smc_close_active_abort(struct smc_sock *smc);
23int smc_close_active(struct smc_sock *smc);
Ursula Braunb38d7322017-01-09 16:55:25 +010024void smc_close_sock_put_work(struct work_struct *work);
25int smc_close_shutdown_write(struct smc_sock *smc);
Ursula Braun46c28db2017-04-10 14:58:01 +020026void smc_close_init(struct smc_sock *smc);
Ursula Braunb38d7322017-01-09 16:55:25 +010027
28#endif /* SMC_CLOSE_H */