dummynet: fix codel
Serialize rcvif when enqueing packets for codel. We already tried to restore the serialized rcvif in fq_codel_extract_head(), but that doesn't work when we fail to serialize it first, so we ended up dropping all packets passed through codel. Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D37318
This commit is contained in:
parent
832c8a58e1
commit
26b9e1f07f
@ -194,6 +194,9 @@ codel_enqueue(struct fq_codel_flow *q, struct mbuf *m, struct fq_codel_si *si)
|
||||
*(aqm_time_t *)(mtag + 1) = AQM_UNOW;
|
||||
m_tag_prepend(m, mtag);
|
||||
|
||||
if (m->m_pkthdr.rcvif != NULL)
|
||||
m_rcvif_serialize(m);
|
||||
|
||||
mq_append(&q->mq, m);
|
||||
fq_update_stats(q, si, len, 0);
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user