diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2020-11-07 21:41:16 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2020-11-07 21:41:16 +0300 |
| commit | ad8fc41c7845f3813b07fb0039244be81a37d23f (patch) | |
| tree | b0e18ecdaeedbccabdc23baec1f036c2eaba9327 /include | |
| parent | ae0d0bb29b311ee3c71c8796f76d309a3779c8d9 (diff) | |
| parent | 158d31da1cc168dd69a804fde2844182647e8eab (diff) | |
| download | linux-ad8fc41c7845f3813b07fb0039244be81a37d23f.tar.xz | |
Merge branch 'net-convert-tasklets-to-use-new-tasklet_setup-api'
Allen Pais says:
====================
net: convert tasklets to use new tasklet_setup API
Commit 12cc923f1ccc ("tasklet: Introduce new initialization API")'
introduced a new tasklet initialization API. This series converts
all the net/* drivers to use the new tasklet_setup() API
The following series is based on net-next (9faebeb2d)
v3:
introduce qdisc_from_priv, suggested by Eric Dumazet.
v2:
get rid of QDISC_ALIGN()
v1:
fix kerneldoc
====================
Link: https://lore.kernel.org/r/20201103091823.586717-1-allen.lkml@gmail.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 |
