• Vladimir Oltean's avatar
    net/sched: taprio: stop going through private ops for dequeue and peek · 25becba6
    Vladimir Oltean authored
    Since commit 13511704 ("net: taprio offload: enforce qdisc to netdev
    queue mapping"), taprio_dequeue_soft() and taprio_peek_soft() are de
    facto the only implementations for Qdisc_ops :: dequeue and Qdisc_ops ::
    peek that taprio provides.
    
    This is because in full offload mode, __dev_queue_xmit() will select a
    txq->qdisc which is never root taprio qdisc. So if nothing is enqueued
    in the root qdisc, it will never be run and nothing will get dequeued
    from it.
    
    Therefore, we can remove the private indirection from taprio, and always
    point Qdisc_ops :: dequeue to taprio_dequeue_soft (now simply named
    taprio_dequeue) and Qdisc_ops :: peek to taprio_peek_soft (now simply
    named taprio_peek).
    Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    25becba6
sch_taprio.c 50.9 KB