summaryrefslogtreecommitdiff
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-06-13 07:28:14 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-06-13 07:28:14 +0000
commit1ee2e358bb9f9e4b4ef9b587d7e048acc5247efb (patch)
treea72000965aa55b0be5f40ca5ec603e8ddb35bad9 /sys/net/if.h
parent51fc384bcf4757d13d5947ff3bdda531fc6d2c2b (diff)
Instead of updating all the cluster allocation water marks of all the
interfaces when the kernel is livelocked, only do it for the current pool and defer the other updates. This allow us to get rid of an interface list iteration in a critical path. Ridding the libc crank since this change introduce an ABI break. ok claudio@
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index 240bb2bd76d..696e5a14fa7 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.h,v 1.153 2013/11/21 17:32:12 mikeb Exp $ */
+/* $OpenBSD: if.h,v 1.154 2014/06/13 07:28:12 mpi Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -72,6 +72,7 @@ struct if_clonereq {
struct mclpool {
int mcl_grown;
+ u_int mcl_livelocks;
u_short mcl_alive;
u_short mcl_hwm;
u_short mcl_cwm;