From fa1a55efdb734d3f1c7ed46c3f5a7aee27d7feb8 Mon Sep 17 00:00:00 2001 From: dlg Date: Mon, 14 Jul 2014 03:45:43 +0000 Subject: [PATCH] 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@ --- sys/net/if.h | 13 +------------ 1 file changed, 1 insertion(+), 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 -- 2.20.1