Subject: Re: m_defrag() addition
To: Jaromir Dolecek <jdolecek@NetBSD.org>
From: Martin Husemann <martin@duskware.de>
List: tech-kern
Date: 02/20/2005 18:25:25
On Sun, Feb 20, 2005 at 06:21:25PM +0100, Jaromir Dolecek wrote:
> This is used on error path in driver _start() routine, when
> bus_dmamap_load_mbuf() fails. If the dmamap load fails, the driver
> is supposed to g/c the mbuf.

This is one potential use of the suggested function. It may make sense
to just call it ("try to optimize this, let me deal with it if you can't")
before trying to waste dma resouces.

> It does happen that a mbuf chain contains too many non-continuous
> segments.

That is a reason the bus_dmamap_load_mbuf() fails - I was asking about
failure reasons for the new function.

Martin