From: Ben Pfaff Date: Tue, 1 Apr 2008 17:00:40 +0000 (-0700) Subject: Add clarifying comment. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88ce0ff709a6965d602e27c191838bb6048a97af;p=openvswitch Add clarifying comment. --- diff --git a/switch/datapath.c b/switch/datapath.c index 93c71347..ffe578af 100644 --- a/switch/datapath.c +++ b/switch/datapath.c @@ -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) {