diff options
author | Victor Nogueira <victor@mojatatu.com> | 2023-12-19 21:16:20 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-12-27 00:20:08 +0300 |
commit | a7042cf8f23191c3a460c627c0c39463afb5d335 (patch) | |
tree | 5644b108157beb7dc037fc319a2f85d17c53b0f5 /include/net/sch_generic.h | |
parent | 913b47d3424e7d99eaf34b798c47dfa840c64a08 (diff) | |
download | linux-a7042cf8f23191c3a460c627c0c39463afb5d335.tar.xz |
net/sched: cls_api: Expose tc block to the datapath
The datapath can now find the block of the port in which the packet arrived
at.
In the next patch we show a possible usage of this patch in a new
version of mirred that multicasts to all ports except for the port in
which the packet arrived on.
Co-developed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Co-developed-by: Pedro Tammela <pctammela@mojatatu.com>
Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Signed-off-by: Victor Nogueira <victor@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sch_generic.h')
-rw-r--r-- | include/net/sch_generic.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index aca11127154f..ba3e1b315de8 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h @@ -484,6 +484,8 @@ struct tcf_block { struct mutex proto_destroy_lock; /* Lock for proto_destroy hashtable. */ }; +struct tcf_block *tcf_block_lookup(struct net *net, u32 block_index); + static inline bool lockdep_tcf_chain_is_locked(struct tcf_chain *chain) { return lockdep_is_held(&chain->filter_chain_lock); |