]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - net/smc/smc_close.h
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
[mirror_ubuntu-bionic-kernel.git] / net / smc / smc_close.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
b38d7324
UB
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
22void smc_close_wake_tx_prepared(struct smc_sock *smc);
23void smc_close_active_abort(struct smc_sock *smc);
24int smc_close_active(struct smc_sock *smc);
b38d7324
UB
25void smc_close_sock_put_work(struct work_struct *work);
26int smc_close_shutdown_write(struct smc_sock *smc);
46c28dbd 27void smc_close_init(struct smc_sock *smc);
b38d7324
UB
28
29#endif /* SMC_CLOSE_H */