smc_close.h 678 B

12345678910111213141516171819202122232425262728
  1. /*
  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. #ifndef SMC_CLOSE_H
  11. #define SMC_CLOSE_H
  12. #include <linux/workqueue.h>
  13. #include "smc.h"
  14. #define SMC_MAX_STREAM_WAIT_TIMEOUT (2 * HZ)
  15. #define SMC_CLOSE_SOCK_PUT_DELAY HZ
  16. void smc_close_wake_tx_prepared(struct smc_sock *smc);
  17. void smc_close_active_abort(struct smc_sock *smc);
  18. int smc_close_active(struct smc_sock *smc);
  19. void smc_close_sock_put_work(struct work_struct *work);
  20. int smc_close_shutdown_write(struct smc_sock *smc);
  21. void smc_close_init(struct smc_sock *smc);
  22. #endif /* SMC_CLOSE_H */