]> git.proxmox.com Git - mirror_ovs.git/commit
netlink-socket: Reorder elements in nl_dump structure.
authorBhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com>
Fri, 14 Oct 2016 14:37:14 +0000 (15:37 +0100)
committerDaniele Di Proietto <diproiettod@vmware.com>
Tue, 18 Oct 2016 01:35:18 +0000 (18:35 -0700)
commit0a0b5a7282063114d223b9bed386235b7e59bccd
tree89b30d5dda232604210d8c35fe0b9c0c55880c81
parent96d96917e9fe0157a6d8ff1457b52161ff1206d4
netlink-socket: Reorder elements in nl_dump structure.

By reordering the elements in nl_dump structure, pad bytes can be
reduced there by saving a cache line.

Before: structure size:72, holes:1, sum padbytes:4, cachelines:2
After: structure size:64, holes:0, sum padbytes:0, cachelines:1

Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com>
Co-authored-by: Antonio Fischetti <antonio.fischetti@intel.com>
Signed-off-by: Antonio Fischetti <antonio.fischetti@intel.com>
Acked-by: Jarno Rajahalme <jarno@ovn.org>
Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
lib/netlink-socket.h