[ovs-git] [openvswitch/ovs] 5bacd5: ofproto: Reduce bundle memory use.

GitHub noreply at github.com
Mon Aug 15 21:57:34 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 5bacd5cdd6318306fb34dc42d1bd848eba19f551
      https://github.com/openvswitch/ovs/commit/5bacd5cdd6318306fb34dc42d1bd848eba19f551
  Author: Jarno Rajahalme <jarno at ovn.org>
  Date:   2016-08-15 (Mon, 15 Aug 2016)

  Changed paths:
    M ofproto/bundles.c
    M ofproto/bundles.h
    M ofproto/ofproto-provider.h
    M ofproto/ofproto.c
    M tests/ofproto.at

  Log Message:
  -----------
  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 mailing list