• Jiri Pirko's avatar
    net: sched: Avoid implicit chain 0 creation · f71e0ca4
    Jiri Pirko authored
    Currently, chain 0 is implicitly created during block creation. However
    that does not align with chain object exposure, creation and destruction
    api introduced later on. So make the chain 0 behave the same way as any
    other chain and only create it when it is needed. Since chain 0 is
    somehow special as the qdiscs need to hold pointer to the first chain
    tp, this requires to move the chain head change callback infra to the
    block structure.
    Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    f71e0ca4
cls_api.c 44.1 KB