View | Details | Raw Unified | Return to bug 271537
Collapse All | Expand All

(-)b/net/libfabric/files/patch-include_ofi__hook.h (+11 lines)
Added Link Here
1
--- include/ofi_hook.h.orig	2022-04-30 21:46:31 UTC
2
+++ include/ofi_hook.h
3
@@ -163,7 +163,7 @@ struct hook_domain {
4
 	struct fid_domain *hdomain;
5
 	struct hook_fabric *fabric;
6
 	struct ofi_ops_flow_ctrl *base_ops_flow_ctrl;
7
-	ssize_t (*base_credit_handler)(struct fid_ep *ep_fid, size_t credits);
8
+	ssize_t (*base_credit_handler)(struct fid_ep *ep_fid, uint64_t credits);
9
 };
10
 
11
 int hook_domain_init(struct fid_fabric *fabric, struct fi_info *info,
(-)b/net/libfabric/files/patch-prov_hook_src_hook__domain.c (+29 lines)
Added Link Here
1
--- prov/hook/src/hook_domain.c.orig	2022-04-30 21:46:31 UTC
2
+++ prov/hook/src/hook_domain.c
3
@@ -102,7 +102,7 @@ static struct fi_ops_mr hook_mr_ops = {
4
 	.regattr = hook_mr_regattr,
5
 };
6
 
7
-static ssize_t hook_credit_handler(struct fid_ep *ep_fid, size_t credits)
8
+static ssize_t hook_credit_handler(struct fid_ep *ep_fid, uint64_t credits)
9
 {
10
 	/*
11
 	 * called from the base provider, ep_fid is the base ep, and
12
@@ -114,7 +114,7 @@ static void hook_set_send_handler(struct fid_domain *d
13
 }
14
 
15
 static void hook_set_send_handler(struct fid_domain *domain_fid,
16
-		ssize_t (*credit_handler)(struct fid_ep *ep, size_t credits))
17
+		ssize_t (*credit_handler)(struct fid_ep *ep, uint64_t credits))
18
 {
19
 	struct hook_domain *domain = container_of(domain_fid,
20
 						  struct hook_domain, domain);
21
@@ -131,7 +131,7 @@ static int hook_enable_ep_flow_ctrl(struct fid_ep *ep_
22
 	return ep->domain->base_ops_flow_ctrl->enable(ep->hep, threshold);
23
 }
24
 
25
-static void hook_add_credits(struct fid_ep *ep_fid, size_t credits)
26
+static void hook_add_credits(struct fid_ep *ep_fid, uint64_t credits)
27
 {
28
 	struct hook_ep *ep = container_of(ep_fid, struct hook_ep, ep);
29
 
(-)b/net/libfabric/files/patch-prov_rxm_src_rxm__domain.c (+25 lines)
Added Link Here
1
--- prov/rxm/src/rxm_domain.c.orig	2022-04-30 21:46:32 UTC
2
+++ prov/rxm/src/rxm_domain.c
3
@@ -567,7 +621,7 @@ static struct fi_ops_mr rxm_domain_mr_thru_ops = {
4
 	.regattr = rxm_mr_regattr_thru,
5
 };
6
 
7
-static ssize_t rxm_send_credits(struct fid_ep *ep, size_t credits)
8
+static ssize_t rxm_send_credits(struct fid_ep *ep, uint64_t credits)
9
 {
10
 	struct rxm_conn *rxm_conn = ep->fid.context;
11
 	struct rxm_ep *rxm_ep = rxm_conn->ep;
12
@@ -620,11 +674,11 @@ defer:
13
 	return FI_SUCCESS;
14
 }
15
 
16
-static void rxm_no_add_credits(struct fid_ep *ep_fid, size_t credits)
17
+static void rxm_no_add_credits(struct fid_ep *ep_fid, uint64_t credits)
18
 { }
19
 
20
 static void rxm_no_credit_handler(struct fid_domain *domain_fid,
21
-		ssize_t (*credit_handler)(struct fid_ep *ep, size_t credits))
22
+		ssize_t (*credit_handler)(struct fid_ep *ep, uint64_t credits))
23
 { }
24
 
25
 static int rxm_no_enable_flow_ctrl(struct fid_ep *ep_fid, uint64_t threshold)
(-)b/net/libfabric/files/patch-prov_verbs_src_fi__verbs.h (+11 lines)
Added Link Here
1
--- prov/verbs/src/fi_verbs.h.orig	2022-05-13 15:08:17 UTC
2
+++ prov/verbs/src/fi_verbs.h
3
@@ -943,7 +943,7 @@ ssize_t vrb_send_iov(struct vrb_ep *ep, struct ibv_sen
4
 		     const struct iovec *iov, void **desc, int count,
5
 		     uint64_t flags);
6
 
7
-void vrb_add_credits(struct fid_ep *ep, size_t credits);
8
+void vrb_add_credits(struct fid_ep *ep, uint64_t credits);
9
 
10
 int vrb_get_rai_id(const char *node, const char *service, uint64_t flags,
11
 		      const struct fi_info *hints, struct rdma_addrinfo **rai,
(-)b/net/libfabric/files/patch-prov_verbs_src_verbs__domain.c (+16 lines)
Added Link Here
1
--- prov/verbs/src/verbs_domain.c.orig	2022-04-30 21:46:32 UTC
2
+++ prov/verbs/src/verbs_domain.c
3
@@ -36,11 +36,11 @@
4
 #include "ofi_iov.h"
5
 
6
 #include "fi_verbs.h"
7
-#include <malloc.h>
8
+#include <stdlib.h>
9
 
10
 
11
 static void vrb_set_credit_handler(struct fid_domain *domain_fid,
12
-		ssize_t (*credit_handler)(struct fid_ep *ep, size_t credits))
13
+		ssize_t (*credit_handler)(struct fid_ep *ep, uint64_t credits))
14
 {
15
 	struct vrb_domain *domain;
16
 
(-)b/net/libfabric/files/patch-prov_verbs_src_verbs__ep.c (+11 lines)
Added Link Here
1
--- prov/verbs/src/verbs_ep.c.orig	2022-05-10 03:27:55 UTC
2
+++ prov/verbs/src/verbs_ep.c
3
@@ -38,7 +38,7 @@ static struct fi_ops_msg vrb_srq_msg_ops;
4
 static struct fi_ops_msg vrb_srq_msg_ops;
5
 
6
 
7
-void vrb_add_credits(struct fid_ep *ep_fid, size_t credits)
8
+void vrb_add_credits(struct fid_ep *ep_fid, uint64_t credits)
9
 {
10
 	struct vrb_ep *ep;
11
 	struct util_cq *cq;

Return to bug 271537