From owner-freebsd-current@FreeBSD.ORG Tue Sep 2 19:08:17 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 018BB106564A for ; Tue, 2 Sep 2008 19:08:17 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id 81EAC8FC2B for ; Tue, 2 Sep 2008 19:08:16 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1596261fgb.35 for ; Tue, 02 Sep 2008 12:08:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Av9JsLjnld3D/7nuZ4Xqfj9F0pQsiucfLRL0rTVOjHw=; b=GdwLSGTnfrnHErEdjRcyKczR1JAma4gpUCgOW5d213j4m+bJpsFS0vEd0eQZCDM2mt nxomC1eRQyhyns1BzokMja4erzOLP6Rr4K9GLhdnC+6i1BS2frJcU5noxRq142Dh+iGU EzWeSc+gXLVbN9O42x00aFokm/Dg0vFm3kVJE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=TNdnz6pVwRWEbROwAeTDvqYJkCttc1d749O17hXAghff39jA/gC37MiiYjyapOFpf7 G0X9t5W2utOPAERjSp99uiB3dklLocdlqByY460CbDMHXy3YWsIRNWr+fCLkrDeI25UV HKUIYIZA/Ty+EFvWFNewoHCc6zfsqa5DK5LlQ= Received: by 10.86.98.10 with SMTP id v10mr5837019fgb.39.1220378048618; Tue, 02 Sep 2008 10:54:08 -0700 (PDT) Received: by 10.86.70.1 with HTTP; Tue, 2 Sep 2008 10:54:08 -0700 (PDT) Message-ID: Date: Tue, 2 Sep 2008 10:54:08 -0700 From: "Maksim Yevmenkin" To: "Andrew Thompson" In-Reply-To: <20080902174540.GB12367@citylink.fud.org.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080902174540.GB12367@citylink.fud.org.nz> Cc: current@freebsd.org Subject: Re: m_uiotombuf alignment X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2008 19:08:17 -0000 Andrew, > I have a patch here to removing the alignment of the align parameter. I > can not see why it was added as it up to the caller to specify this, it > breaks tap(4) on strict alignment machines as m_uiotombuf is called with > ETHER_ALIGN. Also 'align' isnt a great description of this field, its > more a padding or data offset. hmm... strange... from cvs === Revision 1.53 Wed May 4 18:55:02 2005 UTC (3 years, 4 months ago) by emax Branches: MAIN Change m_uiotombuf so it will accept offset at which data should be copied to the mbuf. Offset cannot exceed MHLEN bytes. This is currently used to fix Ethernet header alignment problem on alpha and sparc64. Also change all users of m_uiotombuf to pass proper offset. Reviewed by: jmg, sam Tested by: Sten Spans "sten AT blinkenlights DOT nl" MFC after: 1 week === could you please explain how and on which platforms it breaks tap(4)? thanks, max