From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 26 00:15:03 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 564F016A4BF for ; Tue, 26 Aug 2003 00:15:03 -0700 (PDT) Received: from mailhub.fokus.fraunhofer.de (mailhub.fokus.fraunhofer.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD0DB43FF2 for ; Tue, 26 Aug 2003 00:14:59 -0700 (PDT) (envelope-from brandt@fokus.fraunhofer.de) Received: from beagle (beagle [193.175.132.100])h7Q7ElI05406; Tue, 26 Aug 2003 09:14:47 +0200 (MEST) Date: Tue, 26 Aug 2003 09:14:47 +0200 (CEST) From: Harti Brandt To: Duncan Barclay In-Reply-To: Message-ID: <20030826091342.D51682@beagle.fokus.fraunhofer.de> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: mbuf/mbuf cluster adjustments (bcm driver) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2003 07:15:03 -0000 On Mon, 25 Aug 2003, Duncan Barclay wrote: DB>I then account for this header by doing an m_adj(m, 30) before DB>if_input(). However, this doesn't seem to work all the time. Looking at DB>the code for m_adj I don't think it is meant for use with mbuf DB>clusters. Is there a tidy way of trimming this header off from the mbuf DB>cluster? I'm going to first try manually copying stuff to confirm that DB>this is the problem and then try m_pullup followed by m_adj. m_adj should work on any mbuf whether with a cluster or not given that you mbuf is setup correctly. Where do you see a dependence on not beeing a cluster in that code? harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fraunhofer.de, harti@freebsd.org