|
From: | Jonathan Larmour |
Subject: | Re: [lwip-users] LWIP 1.2 issue. |
Date: | Tue, 17 Apr 2007 01:43:23 +0100 |
User-agent: | Mozilla Thunderbird 1.0.8-1.1.fc4 (X11/20060501) |
Robert Morse wrote:
On a side note: I am using a AM79C960 like ethernet chip, that uses DMA buffers, my question, on a transmitted packet, I do not know if it was transmitted ok until an interrupt is generated (both receive/transmit). I can then look at some flags to see the state of the transmitted buffer. If I get an error back saying that the packet was not transmitted correctly, how should I pass that back up the stack so the packet can be retransmitted. Now, I don't think I want to wait in the low_level_output() of the driver, until the packet has been fully transmitted, as that would eliminate any buffering that the ethernet chip can do. I have the AM79C960 setup for 16 transmit buffers. Just a quick question.
Either you attempt to resend the failed packet inside the driver immediately on an error indication[1], or you let higher layers retransmit it in their own time. You don't pass anything up to the stack to get it to retransmit.
Jifl [1] Probably only a limited number of times though. -- eCosCentric Limited http://www.eCosCentric.com/ The eCos experts Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571 Registered in England and Wales: Reg No 4422071. ** Visit us at ESC Silicon Valley <http://www.embedded.com/esc/sv> ** ** April 3-5 2007, Booth 1922, San Jose McEnery Convention Center ** ------["The best things in life aren't things."]------ Opinions==mine
[Prev in Thread] | Current Thread | [Next in Thread] |