add out-of-order pref
authorChristian Grothoff <christian@grothoff.org>
Sun, 5 May 2019 09:14:20 +0000 (11:14 +0200)
committerChristian Grothoff <christian@grothoff.org>
Sun, 5 May 2019 09:14:20 +0000 (11:14 +0200)
src/include/gnunet_mq_lib.h
src/util/mq.c

index 498567ec21e7ff29f092f729f347097c4b1d6566..4fe5c8df96523dd75bc847f0a4212aec8f6a07ce 100644 (file)
@@ -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
 
 };
 
index 2f9e650b6f9f9c6b342575d98ba4681c45c0bf12..c9cfad2bded41d5ad93f043455e73c358640192f 100644 (file)
@@ -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;
 }