Module Name:    src
Committed By:   ozaki-r
Date:           Mon Dec 16 05:18:37 UTC 2024

Modified Files:
        src/sys/net: if.c

Log Message:
if: add counts of packet drops on if_percpuq to if_iqdrops

So packets dropped on if_percpuq appear in ifconfig -v.


To generate a diff of this commit:
cvs rdiff -u -r1.530 -r1.531 src/sys/net/if.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/if.c
diff -u src/sys/net/if.c:1.530 src/sys/net/if.c:1.531
--- src/sys/net/if.c:1.530	Sat Jun 29 12:11:12 2024
+++ src/sys/net/if.c	Mon Dec 16 05:18:37 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: if.c,v 1.530 2024/06/29 12:11:12 riastradh Exp $	*/
+/*	$NetBSD: if.c,v 1.531 2024/12/16 05:18:37 ozaki-r Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.530 2024/06/29 12:11:12 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.531 2024/12/16 05:18:37 ozaki-r Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -927,6 +927,7 @@ if_percpuq_enqueue(struct if_percpuq *ip
 	if (IF_QFULL(ifq)) {
 		IF_DROP(ifq);
 		percpu_putref(ipq->ipq_ifqs);
+		if_statinc(ipq->ipq_ifp, if_iqdrops);
 		m_freem(m);
 		goto out;
 	}

Reply via email to