smc_close.h 759 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  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. #ifndef SMC_CLOSE_H
  12. #define SMC_CLOSE_H
  13. #include <linux/workqueue.h>
  14. #include "smc.h"
  15. #define SMC_MAX_STREAM_WAIT_TIMEOUT (2 * HZ)
  16. #define SMC_CLOSE_SOCK_PUT_DELAY HZ
  17. void smc_close_wake_tx_prepared(struct smc_sock *smc);
  18. int smc_close_active(struct smc_sock *smc);
  19. int smc_close_shutdown_write(struct smc_sock *smc);
  20. void smc_close_init(struct smc_sock *smc);
  21. void smc_clcsock_release(struct smc_sock *smc);
  22. int smc_close_abort(struct smc_connection *conn);
  23. void smc_close_active_abort(struct smc_sock *smc);
  24. #endif /* SMC_CLOSE_H */