summaryrefslogtreecommitdiffstats
path: root/include/net/sch_generic.h
diff options
context:
space:
mode:
authorJiri Pirko2017-10-19 15:50:31 +0200
committerDavid S. Miller2017-10-21 04:04:06 +0200
commitacb674428c3d57bccbe3f4a1a7a009f6d73e9f41 (patch)
treef5a5b90e574c0f08fb6cfe84c735529b3c844d22 /include/net/sch_generic.h
parentnet: sched: use extended variants of block_get/put in ingress and clsact qdiscs (diff)
downloadkernel-qcow2-linux-acb674428c3d57bccbe3f4a1a7a009f6d73e9f41.tar.gz
kernel-qcow2-linux-acb674428c3d57bccbe3f4a1a7a009f6d73e9f41.tar.xz
kernel-qcow2-linux-acb674428c3d57bccbe3f4a1a7a009f6d73e9f41.zip
net: sched: introduce per-block callbacks
Introduce infrastructure that allows drivers to register callbacks that are called whenever tc would offload inserted rule for a specific block. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h
index 0aea9e23e97a..031dffd5836c 100644
--- a/include/net/sch_generic.h
+++ b/include/net/sch_generic.h
@@ -272,6 +272,7 @@ struct tcf_block {
struct list_head chain_list;
struct net *net;
struct Qdisc *q;
+ struct list_head cb_list;
};
static inline void qdisc_cb_private_validate(const struct sk_buff *skb, int sz)