From owner-freebsd-questions Sun Jun 17 22:12:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by hub.freebsd.org (Postfix) with ESMTP id 0EF4C37B403 for ; Sun, 17 Jun 2001 22:11:56 -0700 (PDT) (envelope-from sumanth.vidyadhara@wipro.com) Received: from ecvwall11.wipro.com (ecvwall1.wipro.com [192.168.181.23]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id f5IFVQj00588 for ; Mon, 18 Jun 2001 10:31:27 -0500 (GMT) Received: from ecvwall11.wipro.com ([192.168.181.23]) by ecmail.mail.wipro.com (Netscape Messaging Server 4.15) with SMTP id GF411800.FDT for ; Mon, 18 Jun 2001 10:40:20 +0530 Received: from sumanth ([192.168.205.201]) by platinum.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GF412500.B2C for ; Mon, 18 Jun 2001 10:40:53 +0530 Message-ID: <00cc01c0f7b6$57666210$c9cda8c0@sumanth> From: "sumanth vidyadhara" To: Subject: Regarding receive of packets Date: Mon, 18 Jun 2001 10:50:08 +0530 Organization: Wipro Global R&D MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------InterScan_NT_MIME_Boundary" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------InterScan_NT_MIME_Boundary Content-Type: multipart/alternative; boundary="----=_NextPart_000_00C9_01C0F7E4.70E601E0" ------=_NextPart_000_00C9_01C0F7E4.70E601E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi,=20 we are developing a ethernet driver, we seem to have some doubts = regarding the reception of packets. In fxp driver there is a new receive buffer allocated for every = reception of a packet. =20 1>Every time we receive a packet in our allocated buffer we send it up = using the ether_input but the buffer which we sent up cannot be reused = by us since this is given to the upper layer so we end up allocating a = buffer and then plug it at the end of free receive buffer pool. 2>Is there any way we can dup the message and send it up. since in sco openserver and unixware this the way we are doing it. Since it would stress the system in every time we allocate the receive = buffer. Do you have any pointers to this. Any help is greatly appreciated. Thanks Sumanth ------=_NextPart_000_00C9_01C0F7E4.70E601E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 we are developing a=20 ethernet driver, we seem to have some doubts = regarding the=20 reception of packets.
In fxp driver there is a new = receive buffer=20 allocated for every reception of a packet. 
1>Every time we receive a packet in = our=20 allocated buffer we send it up using the ether_input but the buffer = which we=20 sent up cannot be reused by us since this is given to the upper layer so = we end=20 up allocating a buffer and then plug it at the end of free receive = buffer=20 pool.
 
2>Is there any way we can dup the = message and=20 send it up.
since in sco openserver and unixware = this the way=20 we are doing it.
Since it would stress the system in = every time we=20 allocate the receive buffer.
Do you have any pointers to = this.
Any help is greatly = appreciated.
Thanks
 
Sumanth
 
------=_NextPart_000_00C9_01C0F7E4.70E601E0-- --------------InterScan_NT_MIME_Boundary-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message