diff options
author | dimitri staessens <[email protected]> | 2017-03-31 15:58:12 +0200 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2017-03-31 16:01:47 +0200 |
commit | b47ca8de07c11bfddf3e8ecb2fd227049c512b9a (patch) | |
tree | 9623d6a0e94f327151a537485110442809dda9ca /src/irmd/irm_flow.c | |
parent | e39e93447d8da3bf06b8f5aecd3daf41c0451f81 (diff) | |
download | ouroboros-b47ca8de07c11bfddf3e8ecb2fd227049c512b9a.tar.gz ouroboros-b47ca8de07c11bfddf3e8ecb2fd227049c512b9a.zip |
irmd: Keep track of qos in irm_flow
This fixes the bug in handling multiple concurrent flow allocations.
Diffstat (limited to 'src/irmd/irm_flow.c')
-rw-r--r-- | src/irmd/irm_flow.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/irmd/irm_flow.c b/src/irmd/irm_flow.c index 4e7c22ef..6a99b081 100644 --- a/src/irmd/irm_flow.c +++ b/src/irmd/irm_flow.c @@ -31,9 +31,10 @@ #include <stdbool.h> #include <assert.h> -struct irm_flow * irm_flow_create(pid_t n_api, - pid_t n_1_api, - int port_id) +struct irm_flow * irm_flow_create(pid_t n_api, + pid_t n_1_api, + int port_id, + qoscube_t qc) { struct irm_flow * f = malloc(sizeof(*f)); if (f == NULL) @@ -53,6 +54,7 @@ struct irm_flow * irm_flow_create(pid_t n_api, f->n_api = n_api; f->n_1_api = n_1_api; f->port_id = port_id; + f->qc = qc; f->n_rb = shm_rbuff_create(n_api, port_id); if (f->n_rb == NULL) { |