• Petr Machata's avatar
    net: sched: Pass qdisc reference in struct flow_block_offload · c40f4e50
    Petr Machata authored
    Previously, shared blocks were only relevant for the pseudo-qdiscs ingress
    and clsact. Recently, a qevent facility was introduced, which allows to
    bind blocks to well-defined slots of a qdisc instance. RED in particular
    got two qevents: early_drop and mark. Drivers that wish to offload these
    blocks will be sent the usual notification, and need to know which qdisc it
    is related to.
    
    To that end, extend flow_block_offload with a "sch" pointer, and initialize
    as appropriate. This prompts changes in the indirect block facility, which
    now tracks the scheduler in addition to the netdevice. Update signatures of
    several functions similarly.
    Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    c40f4e50
bnxt_tc.c 59.1 KB