summaryrefslogtreecommitdiff
path: root/sys/net/if_gre.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2018-11-11 06:05:54 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2018-11-11 06:05:54 +0000
commit6bbc97176823c01f64cf2d4a75b5dd83498078a8 (patch)
treebdba98ace3d021d0abda482c8021e200faa76a95 /sys/net/if_gre.c
parent947ea27b7001429498c52ac4a91fefe33b367e6c (diff)
actually use the if_llprio to set the mbuf prio.
the llprio is already used to set the gre and eoip packet tos/tclass, but it was queued at the default prio before this.
Diffstat (limited to 'sys/net/if_gre.c')
-rw-r--r--sys/net/if_gre.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index 0fa59041cbf..fce1a69ebcf 100644
--- a/sys/net/if_gre.c
+++ b/sys/net/if_gre.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gre.c,v 1.132 2018/11/11 05:55:10 dlg Exp $ */
+/* $OpenBSD: if_gre.c,v 1.133 2018/11/11 06:05:53 dlg Exp $ */
/* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */
/*
@@ -2914,6 +2914,8 @@ gre_keepalive_send(void *arg)
if (m == NULL)
return;
+ m->m_pkthdr.pf.prio = sc->sc_if.if_llprio;
+
gre_ip_output(&sc->sc_tunnel, m);
}
@@ -3788,6 +3790,8 @@ eoip_keepalive_send(void *arg)
if (m == NULL)
return;
+ m->m_pkthdr.pf.prio = ifp->if_llprio;
+
gre_ip_output(&sc->sc_tunnel, m);
timeout_add_sec(&sc->sc_ka_send, sc->sc_ka_timeo);