diff options
author | Allen Pais <apais@linux.microsoft.com> | 2020-11-03 14:48:21 +0530 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-11-07 10:41:15 -0800 |
commit | 6e1978a9a941d342a8b2e6432f52e07d4af86e21 (patch) | |
tree | d0ce69884208fc69d256257fe37faea6d3533212 /include | |
parent | b5bd8b62df4f58875b65e6e699ca371b4425194c (diff) | |
download | linux-6e1978a9a941d342a8b2e6432f52e07d4af86e21.tar.bz2 |
net: sched: convert tasklets to use new tasklet_setup() API
In preparation for unconditionally passing the
struct tasklet_struct pointer to all tasklet
callbacks, switch to using the new tasklet_setup()
and from_tasklet() to pass the tasklet pointer explicitly.
Signed-off-by: Romain Perier <romain.perier@gmail.com>
Signed-off-by: Allen Pais <apais@linux.microsoft.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/pkt_sched.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h index 4ed32e6b0201..15b1b30f454e 100644 --- a/include/net/pkt_sched.h +++ b/include/net/pkt_sched.h @@ -24,6 +24,11 @@ static inline void *qdisc_priv(struct Qdisc *q) return &q->privdata; } +static inline struct Qdisc *qdisc_from_priv(void *priv) +{ + return container_of(priv, struct Qdisc, privdata); +} + /* Timer resolution MUST BE < 10% of min_schedulable_packet_size/bandwidth |