aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/codel_qdisc.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2016-06-21 23:16:50 -0700
committerDavid S. Miller <davem@davemloft.net>2016-06-25 12:19:35 -0400
commit008830bc321c0fc22c0db8d5b0b56f854ed90a5c (patch)
tree99d4bfa6d32a42e48b598223a5443eb3443ca532 /include/net/codel_qdisc.h
parentnet_sched: drop packets after root qdisc lock is released (diff)
downloadlinux-dev-008830bc321c0fc22c0db8d5b0b56f854ed90a5c.tar.xz
linux-dev-008830bc321c0fc22c0db8d5b0b56f854ed90a5c.zip
net_sched: fq_codel: cache skb->truesize into skb->cb
Now we defer skb drops, it makes sense to keep a copy of skb->truesize in struct codel_skb_cb to avoid one cache line miss per dropped skb in fq_codel_drop(), to reduce latencies a bit further. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/codel_qdisc.h')
-rw-r--r--include/net/codel_qdisc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/codel_qdisc.h b/include/net/codel_qdisc.h
index 8144d9cd2908..098630f83a55 100644
--- a/include/net/codel_qdisc.h
+++ b/include/net/codel_qdisc.h
@@ -52,6 +52,7 @@
/* Qdiscs using codel plugin must use codel_skb_cb in their own cb[] */
struct codel_skb_cb {
codel_time_t enqueue_time;
+ unsigned int mem_usage;
};
static struct codel_skb_cb *get_codel_cb(const struct sk_buff *skb)