net/sched: get rid of qdisc->padded
authorEric Dumazet <edumazet@google.com>
Wed, 7 Oct 2020 16:51:11 +0000 (09:51 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 9 Oct 2020 15:08:08 +0000 (08:08 -0700)
commit846e463a70e910f2a831aea19f9a361422a2ff5b
treea1528ed9cdf0daa422883a5b8db6305e116617d3
parent036dfd8322be5214cbc19a0bdcab5a72763c6dcd
net/sched: get rid of qdisc->padded

kmalloc() of sufficiently big portion of memory is cache-aligned
in regular conditions. If some debugging options are used,
there is no reason qdisc structures would need 64-byte alignment
if most other kernel structures are not aligned.

This get rid of QDISC_ALIGN and QDISC_ALIGNTO.

Addition of privdata field will help implementing
the reverse of qdisc_priv() and documents where
the private data is.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Allen Pais <allen.lkml@gmail.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/pkt_sched.h
include/net/sch_generic.h
net/sched/sch_generic.c