From 5663f15799535a04d17ec7f3ff2274793f037f19 Mon Sep 17 00:00:00 2001 From: dlg Date: Tue, 19 Mar 2024 03:49:11 +0000 Subject: [PATCH] count if_enqueue/ifq_enqueue errors as oqdrops. this helps narrow down where some "output failures" on sec interfaces occur. based on discussion with jason tubnor --- sys/net/if_sec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if_sec.c b/sys/net/if_sec.c index 7e4e5f57f38..a5a38a06f0d 100644 --- a/sys/net/if_sec.c +++ b/sys/net/if_sec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sec.c,v 1.10 2024/01/24 00:17:01 dlg Exp $ */ +/* $OpenBSD: if_sec.c,v 1.11 2024/03/19 03:49:11 dlg Exp $ */ /* * Copyright (c) 2022 The University of Queensland @@ -327,7 +327,7 @@ sec_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, error = if_enqueue(ifp, m); if (error != 0) - counters_inc(ifp->if_counters, ifc_oerrors); + counters_inc(ifp->if_counters, ifc_oqdrops); return (error); -- 2.20.1