Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Shared Memory Communications over RDMA (SMC-R) and RoCE
0004  *
0005  * Socket Closing
0006  *
0007  * Copyright IBM Corp. 2016
0008  *
0009  * Author(s):  Ursula Braun <ubraun@linux.vnet.ibm.com>
0010  */
0011 
0012 #ifndef SMC_CLOSE_H
0013 #define SMC_CLOSE_H
0014 
0015 #include <linux/workqueue.h>
0016 
0017 #include "smc.h"
0018 
0019 #define SMC_MAX_STREAM_WAIT_TIMEOUT     (2 * HZ)
0020 #define SMC_CLOSE_SOCK_PUT_DELAY        HZ
0021 
0022 void smc_close_wake_tx_prepared(struct smc_sock *smc);
0023 int smc_close_active(struct smc_sock *smc);
0024 int smc_close_shutdown_write(struct smc_sock *smc);
0025 void smc_close_init(struct smc_sock *smc);
0026 void smc_clcsock_release(struct smc_sock *smc);
0027 int smc_close_abort(struct smc_connection *conn);
0028 void smc_close_active_abort(struct smc_sock *smc);
0029 
0030 #endif /* SMC_CLOSE_H */