From owner-freebsd-net@FreeBSD.ORG Tue Apr 20 21:44:51 2010 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F59D106564A for ; Tue, 20 Apr 2010 21:44:51 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id 26B438FC1D for ; Tue, 20 Apr 2010 21:44:51 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 51E8F730A1; Tue, 20 Apr 2010 23:55:27 +0200 (CEST) Date: Tue, 20 Apr 2010 23:55:27 +0200 From: Luigi Rizzo To: net@freebsd.org Message-ID: <20100420215527.GA75324@onelab2.iet.unipi.it> References: <20100420172845.GA71187@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100420172845.GA71187@onelab2.iet.unipi.it> User-Agent: Mutt/1.4.2.3i Cc: Subject: Re: max_linkhdr defaults to 16, too short ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2010 21:44:51 -0000 On Tue, Apr 20, 2010 at 07:28:45PM +0200, Luigi Rizzo wrote: > just noticed that sys/kern/uipc_domain.c still sets max_linkhdr=16 > as a default. > The value is often used to reserve head space in mbufs for > the MAC header. As such, 16 is too short for systems that make > use of vlans, and the effect might be that we would need > additional mbuf entries or at least move stuff down > as the vlan tag is added. > > Any objection to bumping the default to 20 ? forgot to mention: max_linkhdr is available as a sysctl, kern.max_linkhdr , but other than that, there is no code in sys/ that sets the value, so systems are stuck at 16 unless users override the default. cheers luigi