Date: Mon, 18 Jun 2001 10:50:08 +0530 From: "sumanth vidyadhara" <sumanth.vidyadhara@wipro.com> To: <freebsd-questions@FreeBSD.ORG> Subject: Regarding receive of packets Message-ID: <00cc01c0f7b6$57666210$c9cda8c0@sumanth>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00cc01c0f7b6$57666210$c9cda8c0>