Skip to content

Commit fc59d5b

Browse files
Eric Dumazetdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ad86de8 commit fc59d5b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/sched/sch_fq.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ static struct fq_flow *fq_classify(struct sk_buff *skb, struct fq_sched_data *q)
255255
f->socket_hash != sk->sk_hash)) {
256256
f->credit = q->initial_quantum;
257257
f->socket_hash = sk->sk_hash;
258+
f->time_next_packet = 0ULL;
258259
}
259260
return f;
260261
}

0 commit comments

Comments
 (0)