diff options
author | Jiri Pirko <jiri@mellanox.com> | 2017-11-03 13:46:24 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-03 15:57:23 +0300 |
commit | c7eb7d7230509ec862d4144f7a831f995bc5d028 (patch) | |
tree | b5a04d576966457b29dff194444e4aeb9fe6c5a8 /include/net/sch_generic.h | |
parent | aa5fbf07541bbec0d79f4b32415aff2233971853 (diff) | |
download | linux-c7eb7d7230509ec862d4144f7a831f995bc5d028.tar.xz |
net: sched: introduce chain_head_change callback
Add a callback that is to be called whenever head of the chain changes.
Also provide a callback for the default case when the caller gets a
block using non-extended getter.
Signed-off-by: Jiri Pirko <jiri@mellanox.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 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index c23e938f5b19..f230269e0bfb 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h @@ -260,9 +260,12 @@ struct qdisc_skb_cb { unsigned char data[QDISC_CB_PRIV_LEN]; }; +typedef void tcf_chain_head_change_t(struct tcf_proto *tp_head, void *priv); + struct tcf_chain { struct tcf_proto __rcu *filter_chain; - struct tcf_proto __rcu **p_filter_chain; + tcf_chain_head_change_t *chain_head_change; + void *chain_head_change_priv; struct list_head list; struct tcf_block *block; u32 index; /* chain index */ |