Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Change the type of wqinput's drop counter to uin...
details: https://anonhg.NetBSD.org/src/rev/c41df88a7fa3
branches: trunk
changeset: 365271:c41df88a7fa3
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Fri Aug 10 07:20:59 2018 +0000
description:
Change the type of wqinput's drop counter to uint64_t. OK'd by ozaki-r@.
diffstat:
sys/netinet/wqinput.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r f8bd1c6ee7ac -r c41df88a7fa3 sys/netinet/wqinput.c
--- a/sys/netinet/wqinput.c Fri Aug 10 07:16:13 2018 +0000
+++ b/sys/netinet/wqinput.c Fri Aug 10 07:20:59 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wqinput.c,v 1.4 2018/02/24 07:37:09 ozaki-r Exp $ */
+/* $NetBSD: wqinput.c,v 1.5 2018/08/10 07:20:59 msaitoh Exp $ */
/*-
* Copyright (c) 2017 Internet Initiative Japan Inc.
@@ -62,7 +62,7 @@
struct wqinput_work *wwl_head;
struct wqinput_work *wwl_tail;
unsigned int wwl_len;
- unsigned long wwl_dropped;
+ uint64_t wwl_dropped;
struct work wwl_work;
bool wwl_wq_is_active;
};
@@ -81,7 +81,7 @@
wqinput_drops(void *p, void *arg, struct cpu_info *ci __unused)
{
struct wqinput_worklist *const wwl = p;
- int *sum = arg;
+ uint64_t *sum = arg;
*sum += wwl->wwl_dropped;
}
@@ -91,7 +91,7 @@
{
struct sysctlnode node;
struct wqinput *wqi;
- int sum = 0;
+ uint64_t sum = 0;
int error;
node = *rnode;
@@ -135,7 +135,7 @@
goto bad;
error = sysctl_createv(NULL, 0, &rnode, &cnode,
- CTLFLAG_PERMANENT, CTLTYPE_INT, "drops",
+ CTLFLAG_PERMANENT, CTLTYPE_QUAD, "drops",
SYSCTL_DESCR("Total packets dropped due to full input queue"),
wqinput_sysctl_drops_handler, 0, (void *)wqi, 0, CTL_CREATE, CTL_EOL);
if (error != 0)
Home |
Main Index |
Thread Index |
Old Index