mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
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>
This commit is contained in:
committed by
David S. Miller
parent
520ac30f45
commit
008830bc32
@@ -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)
|
||||
|
Reference in New Issue
Block a user