summaryrefslogtreecommitdiff
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2014-07-14 03:45:44 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2014-07-14 03:45:44 +0000
commit437edf1a5a832783d18254a301603d256c527d69 (patch)
treeba7b92f7dd7959a210e78792d91f27073fdca67e /sys/net/if.h
parent5cc985f5a9cb07f5bbcf4c88937737d12b38545c (diff)
now that receive ring accounting has been pulled out of the mbuf layer,
we can pull the space the mbuf layer used to do per interface accounting out of struct if_data. saves a hundredish bytes on every interface. ok deraadt@ claudio@
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index 838dbc7b854..9261b231d36 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.h,v 1.156 2014/07/11 16:39:06 henning Exp $ */
+/* $OpenBSD: if.h,v 1.157 2014/07/14 03:45:43 dlg Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -70,15 +70,6 @@ struct if_clonereq {
#define MCLPOOLS 7 /* number of cluster pools */
-struct mclpool {
- int mcl_grown;
- u_int mcl_livelocks;
- u_short mcl_alive;
- u_short mcl_hwm;
- u_short mcl_cwm;
- u_short mcl_lwm;
-};
-
struct if_rxring {
int rxr_adjusted;
u_int rxr_alive;
@@ -127,8 +118,6 @@ struct if_data {
u_int64_t ifi_noproto; /* destined for unsupported protocol */
u_int32_t ifi_capabilities; /* interface capabilities */
struct timeval ifi_lastchange; /* last operational state change */
-
- struct mclpool ifi_mclpool[MCLPOOLS];
};
#define IFQ_NQUEUES 8