diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2022-03-06 15:15:50 +0100 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2022-03-08 17:40:17 +0100 |
commit | 22526848c5a7b48f8b45988bdfbc6e0ce7a9f712 (patch) | |
tree | df6b4fe75752ee78025a6cbe46fa3325b3d0b5b9 /src/lib/dev.c | |
parent | 9f25cb44491e219cc4c2b6243d334f07668a0cb5 (diff) | |
download | ouroboros-22526848c5a7b48f8b45988bdfbc6e0ce7a9f712.tar.gz ouroboros-22526848c5a7b48f8b45988bdfbc6e0ce7a9f712.zip |
lib: Pass Delta-t params to frcti_create()
The parameters were set directly from the build configs. A first step
to making FRCP configurable at runtime, is to pass the parameters to
the frcti_create() function.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/lib/dev.c')
-rw-r--r-- | src/lib/dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c index c5667f06..2e61df52 100644 --- a/src/lib/dev.c +++ b/src/lib/dev.c @@ -642,7 +642,7 @@ int flow_accept(qosspec_t * qs, assert(ai.flows[fd].frcti == NULL); if (ai.flows[fd].qs.in_order != 0) { - ai.flows[fd].frcti = frcti_create(fd); + ai.flows[fd].frcti = frcti_create(fd, DELT_A, DELT_R, DELT_MPL); if (ai.flows[fd].frcti == NULL) { pthread_rwlock_unlock(&ai.lock); flow_dealloc(fd); @@ -757,7 +757,7 @@ static int __flow_alloc(const char * dst, assert(ai.flows[fd].frcti == NULL); if (ai.flows[fd].qs.in_order != 0) { - ai.flows[fd].frcti = frcti_create(fd); + ai.flows[fd].frcti = frcti_create(fd, DELT_A, DELT_R, DELT_MPL); if (ai.flows[fd].frcti == NULL) { pthread_rwlock_unlock(&ai.lock); flow_dealloc(fd); |