[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE : [lwip-users] Tx packet list in driver
From: |
Frédéric BERNON |
Subject: |
RE : [lwip-users] Tx packet list in driver |
Date: |
Mon, 17 Sep 2007 15:05:58 +0200 |
lwIP don't do any packets buffering, except for TCP. But, in all cases, you
could also lost some packets on the network. So, you can :
- do a buffering in your driver (but, there will always be a memory limit, so,
this is not the best solution to my point of view)
- block inside the "low_level_output" until you get some space in your MAC
buffers (could help to reach the highest data thoughout)
- drop the packet: this solution is the simplest. But, you should "always"
report ERR_OK, and not an error with the current CVS HEAD code (if you use
sequential API): else, this error will be forward inside "conn->err", and since
"conn->err!=ERR_OK" is checked inside most of api_lib functions, you could not
resend a udp packet, even if a ERR_MEM or a ERR_BUF is not a "fatal" error.
There is a task open to fix this problem, but, always in progress...
====================================
Frédéric BERNON
HYMATOM SA
Chef de projet informatique
Microsoft Certified Professional
Tél. : +33 (0)4-67-87-61-10
Fax. : +33 (0)4-67-70-85-44
Email : address@hidden
Web Site : http://www.hymatom.fr
====================================
P Avant d'imprimer, penser à l'environnement
-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Nicolas Pinault
Envoyé : lundi 17 septembre 2007 14:41
À : Mailing list for lwIP users
Objet : [lwip-users] Tx packet list in driver
Hi all,
With the current version of lwip (CVS one), do I have to buffer tx
packets in the driver. Or does lwip buffer them when tx is not possible
(MAC buffer full for example) ?
Nicolas
_______________________________________________
lwip-users mailing list
address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-users
Frédéric BERNON.vcf
Description: Frédéric BERNON.vcf
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- RE : [lwip-users] Tx packet list in driver,
Frédéric BERNON <=