smc.h 401 B

1234567891011121314151617181920
  1. /*
  2. * Shared Memory Communications over RDMA (SMC-R) and RoCE
  3. *
  4. * Definitions for the SMC module (socket related)
  5. *
  6. * Copyright IBM Corp. 2016
  7. *
  8. * Author(s): Ursula Braun <ubraun@linux.vnet.ibm.com>
  9. */
  10. #ifndef _SMC_H
  11. #define _SMC_H
  12. struct smc_hashinfo {
  13. rwlock_t lock;
  14. struct hlist_head ht;
  15. };
  16. int smc_hash_sk(struct sock *sk);
  17. void smc_unhash_sk(struct sock *sk);
  18. #endif /* _SMC_H */