From: dlg Date: Tue, 19 Mar 2024 03:49:11 +0000 (+0000) Subject: count if_enqueue/ifq_enqueue errors as oqdrops. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5663f15799535a04d17ec7f3ff2274793f037f19;p=openbsd 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 --- 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);