rdma_common.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* QLogic qed NIC Driver
  2. * Copyright (c) 2015 QLogic Corporation
  3. *
  4. * This software is available under the terms of the GNU General Public License
  5. * (GPL) Version 2, available from the file COPYING in the main directory of
  6. * this source tree.
  7. */
  8. #ifndef __RDMA_COMMON__
  9. #define __RDMA_COMMON__
  10. /************************/
  11. /* RDMA FW CONSTANTS */
  12. /************************/
  13. #define RDMA_RESERVED_LKEY (0)
  14. #define RDMA_RING_PAGE_SIZE (0x1000)
  15. #define RDMA_MAX_SGE_PER_SQ_WQE (4)
  16. #define RDMA_MAX_SGE_PER_RQ_WQE (4)
  17. #define RDMA_MAX_DATA_SIZE_IN_WQE (0x7FFFFFFF)
  18. #define RDMA_REQ_RD_ATOMIC_ELM_SIZE (0x50)
  19. #define RDMA_RESP_RD_ATOMIC_ELM_SIZE (0x20)
  20. #define RDMA_MAX_CQS (64 * 1024)
  21. #define RDMA_MAX_TIDS (128 * 1024 - 1)
  22. #define RDMA_MAX_PDS (64 * 1024)
  23. #define RDMA_NUM_STATISTIC_COUNTERS MAX_NUM_VPORTS
  24. #define RDMA_NUM_STATISTIC_COUNTERS_BB MAX_NUM_VPORTS_BB
  25. #define RDMA_TASK_TYPE (PROTOCOLID_ROCE)
  26. struct rdma_srq_id {
  27. __le16 srq_idx;
  28. __le16 opaque_fid;
  29. };
  30. struct rdma_srq_producers {
  31. __le32 sge_prod;
  32. __le32 wqe_prod;
  33. };
  34. #endif /* __RDMA_COMMON__ */