Re: [lwip-users] low_level_output question

2009-04-15 Thread Simon Goldschmidt
Same old story... > Hello > If you in SYS_ARCH_PROTECT save the interrupt flags before you disable the > interrupt and in SYS_ARCH_UNPROTECT restore the interrupt flags, > You can use the functions in ISR I guess you mean 'pbuf_free' by 'the functions'? If so, I have to dissapoint you: if you us

SV: [lwip-users] low_level_output question

2009-04-15 Thread Jan Wester
...@whi.se +46 8 449 05 30 -Ursprungligt meddelande- Från: lwip-users-bounces+j.wester=whi...@nongnu.org [mailto:lwip-users-bounces+j.wester=whi...@nongnu.org] För John Kennedy Skickat: den 7 april 2009 17:00 Till: 'Mailing list for lwIP users' Ämne: RE: [lwip-users] low_level_outpu

RE: [lwip-users] low_level_output question

2009-04-07 Thread John Kennedy
t: Tuesday, April 07, 2009 9:26 AM To: Mailing list for lwIP users Subject: Re: [lwip-users] low_level_output question John Kennedy wrote: > Since pbuf_free decrements the pbuf reference count and only frees the pbuf > when the reference count goes to zero I assumed that by incrementing the >

Re: [lwip-users] low_level_output question

2009-04-07 Thread goldsi...@gmx.de
John Kennedy wrote: Since pbuf_free decrements the pbuf reference count and only frees the pbuf when the reference count goes to zero I assumed that by incrementing the reference count in the Ethernet driver it would prevent the stack from freeing or reusing the pbuf, and that the Ethernet dri

Re: [lwip-users] low_level_output question

2009-04-07 Thread goldsi...@gmx.de
Bill Auerbach wrote: Incrementing the reference count is the way to move the freeing of the pbuf from the stack to the Ethernet driver. It's been done by several implementers successfully. I can tell you that won't work if - sending data over UDP using the sockets API and - having a fast device

RE: [lwip-users] low_level_output question

2009-04-07 Thread John Kennedy
lto:bauerb...@arrayonline.com] Sent: Tuesday, April 07, 2009 6:31 AM To: 'Mailing list for lwIP users' Subject: RE: [lwip-users] low_level_output question Incrementing the reference count is the way to move the freeing of the pbuf from the stack to the Ethernet driver. It's been don

RE: [lwip-users] low_level_output question

2009-04-07 Thread Bill Auerbach
online@nongnu.org >[mailto:lwip-users-bounces+bauerbach=arrayonline@nongnu.org] On >Behalf Of Simon Goldschmidt >Sent: Tuesday, April 07, 2009 3:51 AM >To: Mailing list for lwIP users >Subject: Re: [lwip-users] low_level_output question > >There's a task on savannah on t

Re: [lwip-users] low_level_output question

2009-04-07 Thread Kieran Mansley
On Tue, 2009-04-07 at 09:39 +0200, Fabian Koch wrote: > I propose we do either of the following: > > 1) In the ethernetif-skeleton explicitly document the behavior and > tell the developer to memcpy the data if their transmission is async. > 2) See 1), but tell the developer to increment the ref

Re: [lwip-users] low_level_output question

2009-04-07 Thread Simon Goldschmidt
There's a task on savannah on this (#7896 ): https://savannah.nongnu.org/task/?7896 Basically, the scheme will work on _POOL and _RAM pbufs, but not on _ROM/_REF pbufs, which is why usage of these types would have to be adjusted (including a copy-on-delayed-usage flag or something like that).

Re: [lwip-users] low_level_output question

2009-04-07 Thread Fabian Koch
Hello everyone, > Hi, > I'm porting lwip (using an RTOS and the socket API) and I have a > question regarding the low_level_output function. > If I can't send the pbuf immediately (netif busy), to avoid copying > the pbuf, I'd like to do the following: > * Increment the reference count to

RE: [lwip-users] low_level_output question

2009-04-03 Thread Bill Auerbach
ennedy >Sent: Thursday, April 02, 2009 6:16 PM >To: lwip-users@nongnu.org >Subject: [lwip-users] low_level_output question > >Hi, >I'm porting lwip (using an RTOS and the socket API) and I have a >question regarding the low_level_output function. >If I can't send the p

[lwip-users] low_level_output question

2009-04-02 Thread John Kennedy
Hi, I'm porting lwip (using an RTOS and the socket API) and I have a question regarding the low_level_output function. If I can't send the pbuf immediately (netif busy), to avoid copying the pbuf, I'd like to do the following: * Increment the reference count to prevent lwip from re-using or

[lwip-users] low_level_output() question

2006-01-23 Thread beach.dk
Hi there, One short/quick question.   In the ethernetif.c module the function low_level_output() (or actually the function stored in netif->linkoutput) returns an value of the type err_t. What happens when this is != ERR_OK?   Will lwip try to resend this packet later? Will this be reported up to t