From 88ce0ff709a6965d602e27c191838bb6048a97af Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 1 Apr 2008 10:00:40 -0700 Subject: [PATCH] Add clarifying comment. --- switch/datapath.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.30.2