Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Aug 2000 15:05:35 +0200 (CEST)
From:      Luigi Rizzo <luigi@info.iet.unipi.it>
To:        Archie Cobbs <archie@whistle.com>
Cc:        jayanth <jayanth@yahoo-inc.com>, freebsd-net@FreeBSD.ORG
Subject:   Re: Max data queued for UDP
Message-ID:  <200008031305.PAA22493@info.iet.unipi.it>
In-Reply-To: <200008030001.RAA28226@bubba.whistle.com> from Archie Cobbs at "Aug 2, 2000 05:01:16 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> > One of the issues is that the driver uses a cluster for
> > every data packet, however small the data packet is.
...
> When you say "the driver uses a cluster for every data packet,
> however small the data packet is" are you referring to a specific
> Ethernet driver? If so then that driver is lame. It should at
> least have two possibilities: (a) normal mbuf, and (b) cluster.
> It's very easy and fast to make that minimal decision.

not so fast. Some NICs (especially fast ones) DMA directly into
memory, and so the obvious choice is to put clusters in the receive
ring buffer. The NIC normally cannot be instructed to use either
of them. What you can do (maybe) is to decide to copy back small
packets into the mbuf and free the cluster, as someone else
suggested.

	cheers
	luigi
-----------------------------------+-------------------------------------
  Luigi RIZZO, luigi@iet.unipi.it  . Dip. di Ing. dell'Informazione
  http://www.iet.unipi.it/~luigi/  . Universita` di Pisa
  TEL/FAX: +39-050-568.533/522     . via Diotisalvi 2, 56126 PISA (Italy)
  Mobile   +39-347-0373137
-----------------------------------+-------------------------------------


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




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