diff options
author | dingtianhong <dingtianhong@huawei.com> | 2014-05-12 03:08:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-14 14:09:15 -0400 |
commit | 3fdddd859af235119bdfb09ccc886fe48b97fc72 (patch) | |
tree | 11219c41e24c2d5344308d1a5e5b67aa27adb705 /drivers/net/bonding/bonding.h | |
parent | 86b5d251d5ac4dda51a022b34cb29b4ce65a8cd5 (diff) |
bonding: alloc the structure ad_info dynamically in per slave
The struct ad_slave_info is very huge, and only be used for 802.3ad mode,
so alloc the structure dynamically could save 356 Bits for every slave in
non 802.3ad mode.
Cc: Jay Vosburgh <j.vosburgh@gmail.com>
Cc: Veaceslav Falico <vfalico@gmail.com>
Cc: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Acked-by: Veaceslav Falico <vfalico@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bonding.h')
-rw-r--r-- | drivers/net/bonding/bonding.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h index 1621226b8297..c51c433bc96e 100644 --- a/drivers/net/bonding/bonding.h +++ b/drivers/net/bonding/bonding.h | |||
@@ -203,7 +203,7 @@ struct slave { | |||
203 | u32 speed; | 203 | u32 speed; |
204 | u16 queue_id; | 204 | u16 queue_id; |
205 | u8 perm_hwaddr[ETH_ALEN]; | 205 | u8 perm_hwaddr[ETH_ALEN]; |
206 | struct ad_slave_info ad_info; /* HUGE - better to dynamically alloc */ | 206 | struct ad_slave_info *ad_info; |
207 | struct tlb_slave_info tlb_info; | 207 | struct tlb_slave_info tlb_info; |
208 | #ifdef CONFIG_NET_POLL_CONTROLLER | 208 | #ifdef CONFIG_NET_POLL_CONTROLLER |
209 | struct netpoll *np; | 209 | struct netpoll *np; |