提交 3257523b 编写于 作者: B Bob Copeland 提交者: Johannes Berg

mac80211: mesh: reorder structure members

Reduce padding waste in struct mesh_table and struct rmc_entry by
moving the smaller fields to the end.
Signed-off-by: NBob Copeland <me@bobcopeland.com>
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 18b27ff7
......@@ -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];
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册