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 <freebsd-questions@FreeBSD.ORG>; 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 <freebsd-questions@FreeBSD.ORG>; 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 <freebsd-questions@FreeBSD.ORG>; 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 <freebsd-questions@FreeBSD.ORG>; Mon, 18 Jun 2001 10:40:53 +0530 Message-ID: <00cc01c0f7b6$57666210$c9cda8c0@sumanth> From: "sumanth vidyadhara" <sumanth.vidyadhara@wipro.com> To: <freebsd-questions@FreeBSD.ORG> 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: <freebsd-questions.FreeBSD.ORG> List-Archive: <http://docs.freebsd.org/mail/> (Web Archive) List-Help: <mailto:majordomo?subject=help> (List Instructions) List-Subscribe: <mailto:majordomo?subject=subscribe%20freebsd-questions> List-Unsubscribe: <mailto:majordomo?subject=unsubscribe%20freebsd-questions> 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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi, </FONT></DIV> <DIV><FONT face=3DArial size=3D2> we are developing a=20 ethernet driver, we seem to have some doubts = regarding the=20 reception of packets.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>In fxp driver there is a new = receive buffer=20 allocated for every reception of a packet. </FONT></DIV> <DIV><FONT face=3DArial size=3D2>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.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>2>Is there any way we can dup the = message and=20 send it up.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>since in sco openserver and unixware = this the way=20 we are doing it.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Since it would stress the system in = every time we=20 allocate the receive buffer.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Do you have any pointers to = this.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Any help is greatly = appreciated.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Sumanth</FONT></DIV> <DIV> </DIV></BODY></HTML> ------=_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