[ovs-git] [openvswitch/ovs] abec92: bond: Reorder elements in bond_slave structure.

GitHub noreply at github.com
Fri Nov 3 19:50:56 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: abec9228f17cf3372e22c33c836a4714e10bd773
      https://github.com/openvswitch/ovs/commit/abec9228f17cf3372e22c33c836a4714e10bd773
  Author: Bhanuprakash Bodireddy <bhanuprakash.bodireddy at intel.com>
  Date:   2017-11-03 (Fri, 03 Nov 2017)

  Changed paths:
    M ofproto/bond.c

  Log Message:
  -----------
  bond: Reorder elements in bond_slave structure.

By reordering elements in bond_slave structure, holes can be removed and
saves a cache line.

Before: structure size: 136, sum holes: 10, cachelines:3
After : structure size: 128, sum holes:  2, cachelines:2

Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy at intel.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>


  Commit: 69a723150f4115dfa2618fb85d747d11b932bbbd
      https://github.com/openvswitch/ovs/commit/69a723150f4115dfa2618fb85d747d11b932bbbd
  Author: Bhanuprakash Bodireddy <bhanuprakash.bodireddy at intel.com>
  Date:   2017-11-03 (Fri, 03 Nov 2017)

  Changed paths:
    M lib/tun-metadata.c

  Log Message:
  -----------
  tun-metadata: Reorder elements in tun_meta_entry structure.

By reordering elements in tun_meta_entry structure, sum holes and pad
bytes can be reduced there by reducing the tun_table size.

Before: structure size: 56, sum holes: 4, pad bytes: 7  cachelines:1
After : structure size: 48, sum holes: 0, pad bytes: 3, cachelines:1

Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy at intel.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>


Compare: https://github.com/openvswitch/ovs/compare/afea2e89b9d3...69a723150f41


More information about the git mailing list