Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Aug 2003 08:43:01 +0100
From:      "Duncan Barclay" <dmlb@dmlb.org>
To:        "Harti Brandt" <brandt@fokus.fraunhofer.de>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: mbuf/mbuf cluster adjustments (bcm driver)
Message-ID:  <008e01c36ba5$ad5c9e90$4bc8a8c0@orac>
References:  <XFMail.20030825152757.dmlb@dmlb.org> <20030826091342.D51682@beagle.fokus.fraunhofer.de>

next in thread | previous in thread | raw e-mail | index | archive | help
From: "Harti Brandt" <brandt@fokus.fraunhofer.de>

> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?008e01c36ba5$ad5c9e90$4bc8a8c0>