Re: [PATCH] loop unrolling in net/sched/sch_generic.c
From: Eric Dumazet <hidden>
Date: 2005-07-05 23:16:02
Attachments
- patch.sch_generic [text/plain] 1015 bytes · preview
From: Eric Dumazet <hidden>
Date: 2005-07-05 23:16:02
David S. Miller a écrit :
From: Thomas Graf <tgraf@suug.ch> Date: Tue, 5 Jul 2005 23:33:55 +0200quoted
* David S. Miller [ref] 2005-07-05 14:22quoted
So I'll apply the original unrolling patch for now.The patch must be changed to use __qdisc_dequeue_head() instead of __skb_dequeue() or we screw up the backlog.Ok, good thing the patch didn't apply correctly anyways :)
Oh well, I was unaware of last changes in 2.6.13-rc1 :(
Given the fact that the PFIFO_FAST_BANDS macro was introduced, I wonder if the patch should be this one or not...
Should we assume PFIFO_FAST_BANDS will stay at 3 or what ?
[NET] : unroll a small loop in pfifo_fast_dequeue(). Compiler generates better code.
oprofile says this function uses now 0.29% instead of 1.22 %, on a x86_64 target.
Signed-off-by: Eric Dumazet <redacted>