ofproto: Drop unneeded poll_immediate_wake().
authorBen Pfaff <blp@nicira.com>
Wed, 29 Sep 2010 19:54:05 +0000 (12:54 -0700)
committerJustin Pettit <jpettit@nicira.com>
Sat, 9 Oct 2010 00:18:37 +0000 (17:18 -0700)
This poll_immediate_wake() is unnecessary because netflow_run() is always
called afterward within the same poll loop.  It's better to delete it, to
avoid wasting CPU.

ofproto/ofproto.c

index be89dd2..2da4a00 100644 (file)
@@ -4302,10 +4302,6 @@ rule_active_timeout(struct ofproto *ofproto, struct rule *rule)
         expired.used = rule->used;
 
         netflow_expire(ofproto->netflow, &rule->nf_flow, &expired);
-
-        /* Schedule us to send the accumulated records once we have
-         * collected all of them. */
-        poll_immediate_wake();
     }
 }