smc: socket closing and linkgroup cleanup
smc_shutdown() and smc_release() handling delayed linkgroup cleanup for linkgroups without connections Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
952310ccf2
commit
b38d732477
28
net/smc/smc_close.h
Normal file
28
net/smc/smc_close.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Shared Memory Communications over RDMA (SMC-R) and RoCE
|
||||
*
|
||||
* Socket Closing
|
||||
*
|
||||
* Copyright IBM Corp. 2016
|
||||
*
|
||||
* Author(s): Ursula Braun <ubraun@linux.vnet.ibm.com>
|
||||
*/
|
||||
|
||||
#ifndef SMC_CLOSE_H
|
||||
#define SMC_CLOSE_H
|
||||
|
||||
#include <linux/workqueue.h>
|
||||
|
||||
#include "smc.h"
|
||||
|
||||
#define SMC_MAX_STREAM_WAIT_TIMEOUT (2 * HZ)
|
||||
#define SMC_CLOSE_SOCK_PUT_DELAY HZ
|
||||
|
||||
void smc_close_wake_tx_prepared(struct smc_sock *smc);
|
||||
void smc_close_active_abort(struct smc_sock *smc);
|
||||
int smc_close_active(struct smc_sock *smc);
|
||||
void smc_close_passive_received(struct smc_sock *smc);
|
||||
void smc_close_sock_put_work(struct work_struct *work);
|
||||
int smc_close_shutdown_write(struct smc_sock *smc);
|
||||
|
||||
#endif /* SMC_CLOSE_H */
|
Reference in New Issue
Block a user