]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
bonding: alloc the structure ad_info dynamically in per slave
authordingtianhong <dingtianhong@huawei.com>
Mon, 12 May 2014 07:08:43 +0000 (15:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 May 2014 18:09:15 +0000 (14:09 -0400)
commit3fdddd859af235119bdfb09ccc886fe48b97fc72
tree11219c41e24c2d5344308d1a5e5b67aa27adb705
parent86b5d251d5ac4dda51a022b34cb29b4ce65a8cd5
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>
drivers/net/bonding/bond_3ad.c
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_netlink.c
drivers/net/bonding/bond_procfs.c
drivers/net/bonding/bond_sysfs_slave.c
drivers/net/bonding/bonding.h