Skip to content

Commit 5e54b3c

Browse files
Girish Moodalbaildavem330
authored andcommitted
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: 88ca59d (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>
1 parent 936e5d8 commit 5e54b3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/if_macvlan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ struct macvlan_dev {
3030
enum macvlan_mode mode;
3131
u16 flags;
3232
int nest_level;
33+
unsigned int macaddr_count;
3334
#ifdef CONFIG_NET_POLL_CONTROLLER
3435
struct netpoll *netpoll;
3536
#endif
36-
unsigned int macaddr_count;
3737
};
3838

3939
static inline void macvlan_count_rx(const struct macvlan_dev *vlan,

0 commit comments

Comments
 (0)