mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
net: sched: introduce tcf block infractructure
Currently, the filter chains are direcly put into the private structures of qdiscs. In order to be able to have multiple chains per qdisc and to allow filter chains sharing among qdiscs, there is a need for common object that would hold the chains. This introduces such object and calls it "tcf_block". Helpers to get and put the blocks are provided to be called from individual qdisc code. Also, the original filter_list pointers are left in qdisc privs to allow the entry into tcf_block processing without any added overhead of possible multiple pointer dereference on fast path. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
87d83093bf
commit
6529eaba33
17 changed files with 243 additions and 99 deletions
|
@ -163,7 +163,7 @@ int register_qdisc(struct Qdisc_ops *qops)
|
|||
if (!(cops->get && cops->put && cops->walk && cops->leaf))
|
||||
goto out_einval;
|
||||
|
||||
if (cops->tcf_chain && !(cops->bind_tcf && cops->unbind_tcf))
|
||||
if (cops->tcf_block && !(cops->bind_tcf && cops->unbind_tcf))
|
||||
goto out_einval;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue