Thu, Jul 16, 2020 at 06:47:07PM CEST, pe...@mellanox.com wrote: >When a list of filters at a given block is requested, tc first validates >that the block exists before doing the filter query. Currently the >validation routine checks ingress and egress blocks. But now that blocks >can be bound to qevents as well, qevent blocks should be looked for as >well. > >In order to support that, extend struct qdisc_util with a new callback, >has_block. That should report whether, give the attributes in TCA_OPTIONS, >a blocks with a given number is bound to a qevent. In >tc_qdisc_block_exists_cb(), invoke that callback when set. > >Add a helper to the tc_qevent module that walks the list of qevents and >looks for a given block. This is meant to be used by the individual qdiscs. > >Signed-off-by: Petr Machata <pe...@mellanox.com>
Reviewed-by: Jiri Pirko <j...@mellanox.com>