mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue