From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 26 00:45:49 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 D90DD16A4BF for ; Tue, 26 Aug 2003 00:45:49 -0700 (PDT) Received: from dmlb.org (pc2-cmbg4-6-cust36.cmbg.cable.ntl.com [81.96.76.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 154B743FF9 for ; Tue, 26 Aug 2003 00:45:49 -0700 (PDT) (envelope-from dmlb@dmlb.org) Received: from orac.my.domain ([192.168.200.75] helo=orac) by dmlb.org with smtp (Exim 3.36 #1) id 19rYTl-000N6m-00; Tue, 26 Aug 2003 08:43:01 +0100 Message-ID: <008e01c36ba5$ad5c9e90$4bc8a8c0@orac> From: "Duncan Barclay" To: "Harti Brandt" References: <20030826091342.D51682@beagle.fokus.fraunhofer.de> Date: Tue, 26 Aug 2003 08:43:01 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 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:45:50 -0000 From: "Harti Brandt" > 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? Just before I went to bed last night I think I realised what the problem is. I don't think I set the mbuf up correctly. doh! Thanks for letting me know it should work. > harti Duncan