From a90f8587871a66a71c802c2c8823c7a44d0f6d2c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 5 May 2019 11:14:20 +0200 Subject: [PATCH] add out-of-order pref --- src/include/gnunet_mq_lib.h | 7 ++++++- src/util/mq.c | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/include/gnunet_mq_lib.h b/src/include/gnunet_mq_lib.h index 498567ec2..4fe5c8df9 100644 --- a/src/include/gnunet_mq_lib.h +++ b/src/include/gnunet_mq_lib.h @@ -291,7 +291,12 @@ enum GNUNET_MQ_PriorityPreferences * overall goodput. It rarely makes sense to combine this flag with * #GNUNET_MQ_PREF_LOW_LATENCY. */ - GNUNET_MQ_PREF_GOODPUT = 128 + GNUNET_MQ_PREF_GOODPUT = 128, + + /** + * Flag to indicate that out-of-order delivery is OK. + */ + GNUNET_MQ_PREF_OUT_OF_ORDER = 256 }; diff --git a/src/util/mq.c b/src/util/mq.c index 2f9e650b6..c9cfad2bd 100644 --- a/src/util/mq.c +++ b/src/util/mq.c @@ -1050,6 +1050,8 @@ GNUNET_MQ_env_combine_options (enum GNUNET_MQ_PriorityPreferences p1, ret |= ((p1 & GNUNET_MQ_PREF_CORK_ALLOWED) & (p2 & GNUNET_MQ_PREF_CORK_ALLOWED)); ret |= ((p1 & GNUNET_MQ_PREF_GOODPUT) & (p2 & GNUNET_MQ_PREF_GOODPUT)); + ret |= + ((p1 & GNUNET_MQ_PREF_OUT_OF_ORDER) & (p2 & GNUNET_MQ_PREF_OUT_OF_ORDER)); return ret; } -- 2.25.1