"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "net/sched/sch_codel.c" between
linux-5.3-rc3.tar.gz and linux-5.3-rc4.tar.gz

About: The full source of the development Linux kernel 5.3 (release candidate).

sch_codel.c  (linux-5.3-rc3):sch_codel.c  (linux-5.3-rc4)
skipping to change at line 73 skipping to change at line 73
/* This is the specific function called from codel_dequeue() /* This is the specific function called from codel_dequeue()
* to dequeue a packet from queue. Note: backlog is handled in * to dequeue a packet from queue. Note: backlog is handled in
* codel, we dont need to reduce it here. * codel, we dont need to reduce it here.
*/ */
static struct sk_buff *dequeue_func(struct codel_vars *vars, void *ctx) static struct sk_buff *dequeue_func(struct codel_vars *vars, void *ctx)
{ {
struct Qdisc *sch = ctx; struct Qdisc *sch = ctx;
struct sk_buff *skb = __qdisc_dequeue_head(&sch->q); struct sk_buff *skb = __qdisc_dequeue_head(&sch->q);
if (skb) if (skb) {
sch->qstats.backlog -= qdisc_pkt_len(skb); sch->qstats.backlog -= qdisc_pkt_len(skb);
prefetch(&skb->end); /* we'll need skb_shinfo() */
prefetch(&skb->end); /* we'll need skb_shinfo() */ }
return skb; return skb;
} }
static void drop_func(struct sk_buff *skb, void *ctx) static void drop_func(struct sk_buff *skb, void *ctx)
{ {
struct Qdisc *sch = ctx; struct Qdisc *sch = ctx;
kfree_skb(skb); kfree_skb(skb);
qdisc_qstats_drop(sch); qdisc_qstats_drop(sch);
} }
 End of changes. 2 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)