From: Eric Dumazet Date: Sun, 27 Oct 2013 23:26:43 +0000 (-0700) Subject: pkt_sched: fq: clear time_next_packet for reused flows X-Git-Tag: v3.13-rc1~175^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc59d5bdf1e3dca0336d155e55d812286db075ad;p=profile%2Fivi%2Fkernel-x86-ivi.git pkt_sched: fq: clear time_next_packet for reused flows When a socket is freed/reallocated, we need to clear time_next_packet or else we can inherit a prior value and delay first packets of the new flow. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/sched/sch_fq.c b/net/sched/sch_fq.c index a9dfdda..fdc041c 100644 --- a/net/sched/sch_fq.c +++ b/net/sched/sch_fq.c @@ -255,6 +255,7 @@ static struct fq_flow *fq_classify(struct sk_buff *skb, struct fq_sched_data *q) f->socket_hash != sk->sk_hash)) { f->credit = q->initial_quantum; f->socket_hash = sk->sk_hash; + f->time_next_packet = 0ULL; } return f; }