[VLAN]: Avoid a 4-order allocation.
authorDan Aloni <da-x@monatomic.org>
Sat, 3 Mar 2007 04:44:51 +0000 (20:44 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Mar 2007 04:44:51 +0000 (20:44 -0800)
commit5c15bdec5c38f4ccf73ef2585fc80a6164de9554
treec99084e96238eb9ce40e8d9d90e0097c4e92111d
parentb5284e5aa94be2f88dc92b29e97aff3da0c45f9f
[VLAN]: Avoid a 4-order allocation.

This patch splits the vlan_group struct into a multi-allocated struct. On
x86_64, the size of the original struct is a little more than 32KB, causing
a 4-order allocation, which is prune to problems caused by buddy-system
external fragmentation conditions.

I couldn't just use vmalloc() because vfree() cannot be called in the
softirq context of the RCU callback.

Signed-off-by: Dan Aloni <da-x@monatomic.org>
Acked-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 files changed:
drivers/net/8139cp.c
drivers/net/acenic.c
drivers/net/amd8111e.c
drivers/net/atl1/atl1_main.c
drivers/net/bnx2.c
drivers/net/bonding/bond_main.c
drivers/net/chelsio/cxgb2.c
drivers/net/cxgb3/cxgb3_offload.c
drivers/net/e1000/e1000_main.c
drivers/net/ehea/ehea_main.c
drivers/net/gianfar.c
drivers/net/ixgb/ixgb_main.c
drivers/net/ns83820.c
drivers/net/r8169.c
drivers/net/s2io.c
drivers/net/sky2.c
drivers/net/starfire.c
drivers/net/tg3.c
drivers/net/typhoon.c
drivers/s390/net/qeth_main.c
include/linux/if_vlan.h
net/8021q/vlan.c