diff options
author | David S. Miller <davem@davemloft.net> | 2018-07-30 02:33:28 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-10 20:06:53 +0300 |
commit | 596977300ab5c5d5d85f7950dd7f299f8322e533 (patch) | |
tree | fc72136bfafe06583d65ed1d2f4bc7237c0440b8 /include | |
parent | aea890b8b2e071bb75043353581f2197a2f13160 (diff) | |
download | linux-596977300ab5c5d5d85f7950dd7f299f8322e533.tar.xz |
sch_netem: Move private queue handler to generic location.
By hand copies of SKB list handlers do not belong in individual packet
schedulers.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/sch_generic.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index bc8f6b0b6610..fdaa5506e6f7 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h @@ -851,6 +851,17 @@ static inline int qdisc_enqueue_tail(struct sk_buff *skb, struct Qdisc *sch) return NET_XMIT_SUCCESS; } +static inline void __qdisc_enqueue_head(struct sk_buff *skb, + struct qdisc_skb_head *qh) +{ + skb->next = qh->head; + + if (!qh->head) + qh->tail = skb; + qh->head = skb; + qh->qlen++; +} + static inline struct sk_buff *__qdisc_dequeue_head(struct qdisc_skb_head *qh) { struct sk_buff *skb = qh->head; |