summaryrefslogtreecommitdiff
path: root/include/linux/if_macvlan.h
diff options
context:
space:
mode:
authorGirish Moodalbail <girish.moodalbail@oracle.com>2017-12-08 06:03:26 -0800
committerDavid S. Miller <davem@davemloft.net>2017-12-08 14:51:46 -0500
commit5e54b3c1202765ae62de24a160f1eaf6b0ebf9d4 (patch)
treed0f122849de3a35b48bad73ac59d2ff7aa96b6ad /include/linux/if_macvlan.h
parent936e5d8bdfa72577e28ea671d9e2ee4fef0d6b3e (diff)
downloadlwn-5e54b3c1202765ae62de24a160f1eaf6b0ebf9d4.tar.gz
lwn-5e54b3c1202765ae62de24a160f1eaf6b0ebf9d4.zip
macvlan: fix memory hole in macvlan_dev
Move 'macaddr_count' from after 'netpoll' to after 'nest_level' to pack and reduce a memory hole. Fixes: 88ca59d1aaf28c25 (macvlan: remove unused fields in struct macvlan_dev) Signed-off-by: Girish Moodalbail <girish.moodalbail@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_macvlan.h')
-rw-r--r--include/linux/if_macvlan.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/if_macvlan.h b/include/linux/if_macvlan.h
index bedf54b6f943..4cb7aeeafce0 100644
--- a/include/linux/if_macvlan.h
+++ b/include/linux/if_macvlan.h
@@ -30,10 +30,10 @@ struct macvlan_dev {
enum macvlan_mode mode;
u16 flags;
int nest_level;
+ unsigned int macaddr_count;
#ifdef CONFIG_NET_POLL_CONTROLLER
struct netpoll *netpoll;
#endif
- unsigned int macaddr_count;
};
static inline void macvlan_count_rx(const struct macvlan_dev *vlan,