From b47ca8de07c11bfddf3e8ecb2fd227049c512b9a Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Fri, 31 Mar 2017 15:58:12 +0200 Subject: irmd: Keep track of qos in irm_flow This fixes the bug in handling multiple concurrent flow allocations. --- src/irmd/irm_flow.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/irmd/irm_flow.h') diff --git a/src/irmd/irm_flow.h b/src/irmd/irm_flow.h index 9a439204..97770117 100644 --- a/src/irmd/irm_flow.h +++ b/src/irmd/irm_flow.h @@ -25,6 +25,7 @@ #include #include +#include #include #include @@ -42,6 +43,7 @@ struct irm_flow { struct list_head next; int port_id; + qoscube_t qc; pid_t n_api; pid_t n_1_api; @@ -56,9 +58,10 @@ struct irm_flow { pthread_mutex_t state_lock; }; -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); void irm_flow_destroy(struct irm_flow * f); -- cgit v1.2.3