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 |
|