summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2018-10-22 23:44:54 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2018-10-22 23:44:54 +0000
commitb6ab1f4aaa9e48459cc791a4f418198f139c533e (patch)
tree35994cda8bb8e786e2f194d61ed22fe87a0c36f9
parentb6a79c601c567e25711bfefbea33846e0ea991b1 (diff)
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);
}