]> git.proxmox.com Git - mirror_ovs.git/commit - ofproto/bond.c
bond: Reorder elements in bond_slave structure.
authorBhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com>
Fri, 8 Sep 2017 17:59:13 +0000 (18:59 +0100)
committerBen Pfaff <blp@ovn.org>
Fri, 3 Nov 2017 19:41:41 +0000 (12:41 -0700)
commitabec9228f17cf3372e22c33c836a4714e10bd773
tree396484abf708e7e5af56a03f185ff49b7f577f37
parentafea2e89b9d3b0302ce1c7d5f770d74da87fc756
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@intel.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ofproto/bond.c