summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-05-05 11:14:20 +0200
committerChristian Grothoff <christian@grothoff.org>2019-05-05 11:14:20 +0200
commita90f8587871a66a71c802c2c8823c7a44d0f6d2c (patch)
tree0b884ad2a46fc3ba040370607bdda50c85c10026
parent6d6b3e9d564bd665c810ef19dd0f3484b1c6b5d2 (diff)
add out-of-order pref
-rw-r--r--src/include/gnunet_mq_lib.h7
-rw-r--r--src/util/mq.c2
2 files changed, 8 insertions, 1 deletions
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;
}