Add clarifying comment.
authorBen Pfaff <blp@nicira.com>
Tue, 1 Apr 2008 17:00:40 +0000 (10:00 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 1 Apr 2008 17:00:40 +0000 (10:00 -0700)
switch/datapath.c

index 93c71347a1bd5f91ab2378c31465d0756ee06611..ffe578af5f61b9d9254a7e89f63a41b103bcd63b 100644 (file)
@@ -259,6 +259,8 @@ dp_run(struct datapath *dp)
     }
     buffer_delete(buffer);
 
+    /* Process a number of commands from the controller, but cap it at a
+     * reasonable number so that other processing doesn't starve. */
     for (i = 0; i < 50; i++) {
         struct buffer *buffer = controller_recv(dp->cc);
         if (!buffer) {