smc.h 440 B

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