mac80211: mesh: reorder structure members
authorBob Copeland <me@bobcopeland.com>
Sat, 19 Mar 2016 02:11:31 +0000 (22:11 -0400)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 5 Apr 2016 19:34:52 +0000 (21:34 +0200)
Reduce padding waste in struct mesh_table and struct rmc_entry by
moving the smaller fields to the end.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh.h

index 46b540a..4a59c03 100644 (file)
@@ -133,11 +133,10 @@ struct mesh_path {
  * @rhash: the rhashtable containing struct mesh_paths, keyed by dest addr
  */
 struct mesh_table {
-       atomic_t entries;               /* Up to MAX_MESH_NEIGHBOURS */
        struct hlist_head known_gates;
        spinlock_t gates_lock;
-
        struct rhashtable rhead;
+       atomic_t entries;               /* Up to MAX_MESH_NEIGHBOURS */
 };
 
 /* Recent multicast cache */
@@ -159,8 +158,8 @@ struct mesh_table {
  */
 struct rmc_entry {
        struct hlist_node list;
-       u32 seqnum;
        unsigned long exp_time;
+       u32 seqnum;
        u8 sa[ETH_ALEN];
 };