kernel-ark/net/core
Alexey Dobriyan d1643d24c6 [NET]: Fix and allocate less memory for ->priv'less netdevices
This patch effectively reverts commit d0498d9ae1
aka "[NET]: Do not allocate unneeded memory for dev->priv alignment."
It was found to be buggy because of final unconditional += NETDEV_ALIGN_CONST
removal.

For example, for sizeof(struct net_device) being 2048 bytes, "alloc_size"
was also 2048 bytes, but allocator with debugging options turned on started
giving out !32-byte aligned memory resulting in redzones overwrites.

Patch does small optimization in ->priv'less case: bumping size to next
32-byte boundary was always done to ensure ->priv will also be aligned.
But, no ->priv, no need to do that.

Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-04-18 15:43:32 -07:00
..
datagram.c
dev_mcast.c
dev.c [NET]: Fix and allocate less memory for ->priv'less netdevices 2008-04-18 15:43:32 -07:00
dst.c
ethtool.c [ETHTOOL]: Add support for large eeproms 2008-04-15 19:29:17 -07:00
fib_rules.c [NETNS]: Add netns refcnt debug to fib rules. 2008-04-16 02:01:56 -07:00
filter.c [SKFILTER]: Add SKF_ADF_NLATTR instruction 2008-04-10 02:02:28 -07:00
flow.c
gen_estimator.c
gen_stats.c
iovec.c
kmap_skb.h
link_watch.c
Makefile
neighbour.c
net_namespace.c [NETNS]: Make netns refconting debug like a socket one. 2008-04-16 01:58:04 -07:00
net-sysfs.c
net-sysfs.h
netevent.c
netpoll.c
pktgen.c
request_sock.c
rtnetlink.c [RTNL]: Introduce the rtnl_kill_links helper. 2008-04-16 00:46:52 -07:00
scm.c
skbuff.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-04-14 02:30:23 -07:00
sock.c [NETNS]: Add netns refcnt debug for kernel sockets. 2008-04-16 01:59:46 -07:00
stream.c
sysctl_net_core.c
user_dma.c
utils.c