From 3a88b0b36d678797ab770bbfcdadaed66cddf81f Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Tue, 27 Jan 2009 09:17:52 +0000 Subject: make drivers tell the mclgeti allocator what their maximum ring size is to prevent the hwm growing beyond that. this allows the livelock mitigation to do something where the hwm used to grow beyond twice the rx rings size. ok kettenis@ claudio@ --- sys/net/if.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net/if.h') diff --git a/sys/net/if.h b/sys/net/if.h index ab6df1ab27f..18e3fd153c8 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if.h,v 1.102 2008/12/12 22:07:33 claudio Exp $ */ +/* $OpenBSD: if.h,v 1.103 2009/01/27 09:17:51 dlg Exp $ */ /* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */ /* @@ -109,7 +109,7 @@ struct if_clonereq { struct mclpool { u_short mcl_alive; u_short mcl_hwm; - u_short mcl_size; + u_short mcl_cwm; u_short mcl_lwm; }; -- cgit v1.2.3