]> git.proxmox.com Git - mirror_ovs.git/commitdiff
netdev-provider: Reorder element in netdev_flow_dump structure.
authorBhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com>
Fri, 8 Sep 2017 17:59:18 +0000 (18:59 +0100)
committerBen Pfaff <blp@ovn.org>
Fri, 3 Nov 2017 19:55:03 +0000 (12:55 -0700)
By reordering bool in netdev_flow_dump structure, pad bytes can be
reduced.

Before: structure size: 32, sum holes: 4, sum padbytes:7, cachelines:1
After : structure size: 24, sum holes: 3, sum padbytes:0, cachelines:1

Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/netdev-provider.h

index b3c57d536de0861b5eb13233401a89021b1a51db..5d7bd4f1fbbd2bcfc073a1c88fa1e86fdba145fa 100644 (file)
@@ -123,8 +123,8 @@ struct netdev *netdev_rxq_get_netdev(const struct netdev_rxq *);
 struct netdev_flow_dump {
     struct netdev *netdev;
     odp_port_t port;
-    struct nl_dump *nl_dump;
     bool terse;
+    struct nl_dump *nl_dump;
 };
 
 /* Network device class structure, to be defined by each implementation of a