Drop rconn's responsibility for limiting the tx queue.
[openvswitch] / include / queue.h
index 86eb603a7152308852612551bd6b17d5ff4c5d05..113d5013a710f6e523eb7ea5ccc01b9dd078efed 100644 (file)
@@ -36,9 +36,9 @@
 
 /* Packet queue. */
 struct queue {
-    int n;
-    struct buffer *head;
-    struct buffer *tail;
+    int n;                      /* Number of queued packets. */
+    struct buffer *head;        /* First queued packet, null if n == 0. */
+    struct buffer *tail;        /* Last queued packet, null if n == 0. */
 };
 
 void queue_init(struct queue *);
@@ -46,5 +46,6 @@ void queue_destroy(struct queue *);
 void queue_clear(struct queue *);
 void queue_advance_head(struct queue *, struct buffer *next);
 void queue_push_tail(struct queue *, struct buffer *);
+struct buffer *queue_pop_head(struct queue *);
 
 #endif /* queue.h */