smc.h 780 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * Shared Memory Communications over RDMA (SMC-R) and RoCE
  4. *
  5. * Definitions for generic netlink based configuration of an SMC-R PNET table
  6. *
  7. * Copyright IBM Corp. 2016
  8. *
  9. * Author(s): Thomas Richter <tmricht@linux.vnet.ibm.com>
  10. */
  11. #ifndef _LINUX_SMC_H_
  12. #define _LINUX_SMC_H_
  13. /* Netlink SMC_PNETID attributes */
  14. enum {
  15. SMC_PNETID_UNSPEC,
  16. SMC_PNETID_NAME,
  17. SMC_PNETID_ETHNAME,
  18. SMC_PNETID_IBNAME,
  19. SMC_PNETID_IBPORT,
  20. __SMC_PNETID_MAX,
  21. SMC_PNETID_MAX = __SMC_PNETID_MAX - 1
  22. };
  23. enum { /* SMC PNET Table commands */
  24. SMC_PNETID_GET = 1,
  25. SMC_PNETID_ADD,
  26. SMC_PNETID_DEL,
  27. SMC_PNETID_FLUSH
  28. };
  29. #define SMCR_GENL_FAMILY_NAME "SMC_PNETID"
  30. #define SMCR_GENL_FAMILY_VERSION 1
  31. #endif /* _LINUX_SMC_H */