Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci vioif(4): increase output error counter
details: https://anonhg.NetBSD.org/src/rev/ba8489c51ae3
branches: trunk
changeset: 373963:ba8489c51ae3
user: yamaguchi <yamaguchi%NetBSD.org@localhost>
date: Thu Mar 23 02:15:53 2023 +0000
description:
vioif(4): increase output error counter
diffstat:
sys/dev/pci/if_vioif.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r fddc6c586d07 -r ba8489c51ae3 sys/dev/pci/if_vioif.c
--- a/sys/dev/pci/if_vioif.c Thu Mar 23 02:03:01 2023 +0000
+++ b/sys/dev/pci/if_vioif.c Thu Mar 23 02:15:53 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_vioif.c,v 1.93 2023/03/23 02:03:01 yamaguchi Exp $ */
+/* $NetBSD: if_vioif.c,v 1.94 2023/03/23 02:15:53 yamaguchi Exp $ */
/*
* Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.93 2023/03/23 02:03:01 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.94 2023/03/23 02:15:53 yamaguchi Exp $");
#ifdef _KERNEL_OPT
#include "opt_net_mpsafe.h"
@@ -1322,6 +1322,7 @@
if (r == EAGAIN) {
ifp->if_flags |= IFF_OACTIVE;
m_freem(m);
+ if_statinc(ifp, if_oerrors);
break;
}
if (r != 0)
@@ -1347,6 +1348,7 @@
txq->txq_mbuf_load_failed.ev_count++;
skip:
m_freem(m);
+ if_statinc(ifp, if_oerrors);
virtio_enqueue_abort(vsc, vq, slot);
continue;
}
@@ -1361,6 +1363,7 @@
txq->txq_dmamaps[slot]);
/* slot already freed by virtio_enqueue_reserve */
m_freem(m);
+ if_statinc(ifp, if_oerrors);
continue;
}
Home |
Main Index |
Thread Index |
Old Index