[ovs-git] [openvswitch/ovs] 5bacd5: ofproto: Reduce bundle memory use.
noreply at github.com
Mon Aug 15 21:57:34 UTC 2016
Author: Jarno Rajahalme <jarno at ovn.org>
Date: 2016-08-15 (Mon, 15 Aug 2016)
ofproto: Reduce bundle memory use.
Instead of storing the (big) struct ofputil_flow_mod, create the new
rule and/or create the rule criteria for matching at bundle message
insert time. This change reduces the size of a bundle flow mod from
3.5kb to 272 bytes, not counting the created rule, which was anyway
created during bundle commit.
In successful bundles this shifts work out of the ofproto_mutex
critical section and should thus reduce the time the mutex is held
during bundle commit.
Signed-off-by: Jarno Rajahalme <jarno at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>
More information about the git