Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Apr 1998 16:09:01 -0600 (MDT)
From:      "Justin T. Gibbs" <gibbs@narnia.plutotech.com>
To:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc:        current@FreeBSD.ORG
Subject:   Re: Bandwidth throttling etc.
Message-ID:  <199804242209.QAA03142@narnia.plutotech.com>
In-Reply-To: <Pine.GSO.3.96.980424165606.18437A-100000@echonyc.com> <199804241932.VAA22011@labinfo.iet.unipi.it> <199804242126.RAA10941@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
> What you Really Want is for each interface to manage its own
> allocations.  When you want to send a packet, you ask the interface
> for a buffer, and it gives you one of an appropriate size and shape
> that it knows how to transmit efficiently.

How do deal with a route change between the time you determine the
target interface, ask it to allocate space for you, and construct
the packet?  The race window becomes much larger if the application
asks to pre-allocate space that it will reuse repeatedly to achieve
zero copy.  Whatever the interface is, it must also handle external
memory allocations such as dmaing the payload out of the memory on
another device.

--
Justin

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804242209.QAA03142>