git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0652e34
)
ofproto: Drop unneeded poll_immediate_wake().
author
Ben Pfaff
<blp@nicira.com>
Wed, 29 Sep 2010 19:54:05 +0000
(12:54 -0700)
committer
Justin 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
patch
|
blob
|
history
diff --git
a/ofproto/ofproto.c
b/ofproto/ofproto.c
index
be89dd2
..
2da4a00
100644
(file)
--- a/
ofproto/ofproto.c
+++ b/
ofproto/ofproto.c
@@
-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();
}
}