logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

mana-abi.h (1514B)


  1. /* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) */
  2. /*
  3. * Copyright (c) 2022, Microsoft Corporation. All rights reserved.
  4. */
  5. #ifndef MANA_ABI_USER_H
  6. #define MANA_ABI_USER_H
  7. #include <linux/types.h>
  8. #include <rdma/ib_user_ioctl_verbs.h>
  9. /*
  10. * Increment this value if any changes that break userspace ABI
  11. * compatibility are made.
  12. */
  13. #define MANA_IB_UVERBS_ABI_VERSION 1
  14. enum mana_ib_create_cq_flags {
  15. MANA_IB_CREATE_RNIC_CQ = 1 << 0,
  16. };
  17. struct mana_ib_create_cq {
  18. __aligned_u64 buf_addr;
  19. __u16 flags;
  20. __u16 reserved0;
  21. __u32 reserved1;
  22. };
  23. struct mana_ib_create_cq_resp {
  24. __u32 cqid;
  25. __u32 reserved;
  26. };
  27. struct mana_ib_create_qp {
  28. __aligned_u64 sq_buf_addr;
  29. __u32 sq_buf_size;
  30. __u32 port;
  31. };
  32. struct mana_ib_create_qp_resp {
  33. __u32 sqid;
  34. __u32 cqid;
  35. __u32 tx_vp_offset;
  36. __u32 reserved;
  37. };
  38. struct mana_ib_create_rc_qp {
  39. __aligned_u64 queue_buf[4];
  40. __u32 queue_size[4];
  41. };
  42. struct mana_ib_create_rc_qp_resp {
  43. __u32 queue_id[4];
  44. };
  45. struct mana_ib_create_wq {
  46. __aligned_u64 wq_buf_addr;
  47. __u32 wq_buf_size;
  48. __u32 reserved;
  49. };
  50. /* RX Hash function flags */
  51. enum mana_ib_rx_hash_function_flags {
  52. MANA_IB_RX_HASH_FUNC_TOEPLITZ = 1 << 0,
  53. };
  54. struct mana_ib_create_qp_rss {
  55. __aligned_u64 rx_hash_fields_mask;
  56. __u8 rx_hash_function;
  57. __u8 reserved[7];
  58. __u32 rx_hash_key_len;
  59. __u8 rx_hash_key[40];
  60. __u32 port;
  61. };
  62. struct rss_resp_entry {
  63. __u32 cqid;
  64. __u32 wqid;
  65. };
  66. struct mana_ib_create_qp_rss_resp {
  67. __aligned_u64 num_entries;
  68. struct rss_resp_entry entries[64];
  69. };
  70. #endif