]> git.karo-electronics.de Git - mv-sheeva.git/commit
net: dynamic ingress_queue allocation
authorEric Dumazet <eric.dumazet@gmail.com>
Sat, 2 Oct 2010 06:11:55 +0000 (06:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Oct 2010 07:23:44 +0000 (00:23 -0700)
commit24824a09e35402b8d58dcc5be803a5ad3937bdba
tree65c5fa4046646623b130702c9abc92c485ec575b
parent0bd9e6a964d86a19f54a9ba31168a37d64e451d1
net: dynamic ingress_queue allocation

ingress being not used very much, and net_device->ingress_queue being
quite a big object (128 or 256 bytes), use a dynamic allocation if
needed (tc qdisc add dev eth0 ingress ...)

dev_ingress_queue(dev) helper should be used only with RTNL taken.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
include/linux/rtnetlink.h
net/core/dev.c
net/sched/sch_api.c
net/sched/sch_generic.c