summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2018-10-22 23:44:53 +0000
committerdlg <dlg@openbsd.org>2018-10-22 23:44:53 +0000
commit7235d997d6d27f0d42a5f2dca0aa8cce39f12b34 (patch)
tree8f304a6f702cc559e72c02bdfc362872be751b93
parentUpdate to tzdata2018f from ftp.iana.org (diff)
downloadwireguard-openbsd-7235d997d6d27f0d42a5f2dca0aa8cce39f12b34.tar.xz
wireguard-openbsd-7235d997d6d27f0d42a5f2dca0aa8cce39f12b34.zip
Don't let HFSC force the packet priority to 7 when enabled
HFSC on a vlan(4) (or similar) interface caused all packets over that interface to get marked with the highest packet priority, no matter what the rest of the system said about it. Leaving the prio alone lets the rest of the network still do something useful, not matter whether the local system queues packets in a particular way. Reported by and fix tested by Adrian Close ok claudio@ kn@ mikeb@
-rw-r--r--sys/net/hfsc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/hfsc.c b/sys/net/hfsc.c
index 5f679e66c38..006c83d6808 100644
--- a/sys/net/hfsc.c
+++ b/sys/net/hfsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hfsc.c,v 1.47 2018/04/13 14:09:42 mikeb Exp $ */
+/* $OpenBSD: hfsc.c,v 1.48 2018/10/22 23:44:53 dlg Exp $ */
/*
* Copyright (c) 2012-2013 Henning Brauer <henning@openbsd.org>
@@ -540,7 +540,6 @@ hfsc_pf_enqueue(void *arg, struct mbuf *m)
return (m);
ml_enqueue(&cq->q, m);
- m->m_pkthdr.pf.prio = IFQ_MAXPRIO;
return (NULL);
}