public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pkt_sched: fq: clear time_next_packet for reused flows
@ 2013-10-24 11:01 Eric Dumazet
  2013-10-27 20:52 ` David Miller
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Eric Dumazet @ 2013-10-24 11:01 UTC (permalink / raw)
  To: David Miller; +Cc: netdev

From: Eric Dumazet <edumazet@google.com>

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 <edumazet@google.com>
---
 net/sched/sch_fq.c |    1 +
 1 file changed, 1 insertion(+)

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;
 		}

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-10-28  7:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-24 11:01 [PATCH] pkt_sched: fq: clear time_next_packet for reused flows Eric Dumazet
2013-10-27 20:52 ` David Miller
2013-10-27 22:06 ` Vijay Subramanian
2013-10-27 23:35   ` Eric Dumazet
2013-10-28  7:02     ` Vijay Subramanian
2013-10-27 23:26 ` [PATCH v2] " Eric Dumazet
2013-10-28  4:19   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox