|
@@ -72,6 +72,9 @@
|
|
#define HNS_ROCE_MAX_GID_NUM 16
|
|
#define HNS_ROCE_MAX_GID_NUM 16
|
|
#define HNS_ROCE_GID_SIZE 16
|
|
#define HNS_ROCE_GID_SIZE 16
|
|
|
|
|
|
|
|
+#define BITMAP_NO_RR 0
|
|
|
|
+#define BITMAP_RR 1
|
|
|
|
+
|
|
#define MR_TYPE_MR 0x00
|
|
#define MR_TYPE_MR 0x00
|
|
#define MR_TYPE_DMA 0x03
|
|
#define MR_TYPE_DMA 0x03
|
|
|
|
|
|
@@ -661,7 +664,8 @@ void hns_roce_cleanup_cq_table(struct hns_roce_dev *hr_dev);
|
|
void hns_roce_cleanup_qp_table(struct hns_roce_dev *hr_dev);
|
|
void hns_roce_cleanup_qp_table(struct hns_roce_dev *hr_dev);
|
|
|
|
|
|
int hns_roce_bitmap_alloc(struct hns_roce_bitmap *bitmap, unsigned long *obj);
|
|
int hns_roce_bitmap_alloc(struct hns_roce_bitmap *bitmap, unsigned long *obj);
|
|
-void hns_roce_bitmap_free(struct hns_roce_bitmap *bitmap, unsigned long obj);
|
|
|
|
|
|
+void hns_roce_bitmap_free(struct hns_roce_bitmap *bitmap, unsigned long obj,
|
|
|
|
+ int rr);
|
|
int hns_roce_bitmap_init(struct hns_roce_bitmap *bitmap, u32 num, u32 mask,
|
|
int hns_roce_bitmap_init(struct hns_roce_bitmap *bitmap, u32 num, u32 mask,
|
|
u32 reserved_bot, u32 resetrved_top);
|
|
u32 reserved_bot, u32 resetrved_top);
|
|
void hns_roce_bitmap_cleanup(struct hns_roce_bitmap *bitmap);
|
|
void hns_roce_bitmap_cleanup(struct hns_roce_bitmap *bitmap);
|
|
@@ -669,7 +673,8 @@ void hns_roce_cleanup_bitmap(struct hns_roce_dev *hr_dev);
|
|
int hns_roce_bitmap_alloc_range(struct hns_roce_bitmap *bitmap, int cnt,
|
|
int hns_roce_bitmap_alloc_range(struct hns_roce_bitmap *bitmap, int cnt,
|
|
int align, unsigned long *obj);
|
|
int align, unsigned long *obj);
|
|
void hns_roce_bitmap_free_range(struct hns_roce_bitmap *bitmap,
|
|
void hns_roce_bitmap_free_range(struct hns_roce_bitmap *bitmap,
|
|
- unsigned long obj, int cnt);
|
|
|
|
|
|
+ unsigned long obj, int cnt,
|
|
|
|
+ int rr);
|
|
|
|
|
|
struct ib_ah *hns_roce_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr);
|
|
struct ib_ah *hns_roce_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr);
|
|
int hns_roce_query_ah(struct ib_ah *ibah, struct ib_ah_attr *ah_attr);
|
|
int hns_roce_query_ah(struct ib_ah *ibah, struct ib_ah_attr *ah_attr);
|