[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Socket read/write and threads

From: Yoav Nissim
Subject: Re: [lwip-users] Socket read/write and threads
Date: Tue, 12 Jan 2010 12:53:25 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20091204 Thunderbird/3.0

Yes, thanks. My bad.

On 12/01/10 12:28 PM, Simon Goldschmidt wrote:
> Yoav Nissim wrote:
>> The porting and IF init code is the best place to start. AFAIK:
>> 1. The call from your Rx thread should not call ethernetif_input()
>> directly. It should call netif->input() - which in turn is initialized
>> to tcpip_input() when you call netif_add().
> Hmm, did you confuse ethernetif_input() with ethernet_input() here (not the 
> missin 'if')? ethernetif_input() is the netif's internal input function which 
> may be called in the rx thread. This function in turn should then *not* call 
> ethernet_input() but netif->input().
> The rest seems OK. Although I never tried to give tcpip_thread a higher prio 
> than the ethernet rx thread, it should still work...
> Simon

Yoav Nissim
Software Engineer, Software Tools Division
Jungo Software Technologies
Email: address@hidden
Web: http://www.jungo.com
Phone: +972-74-7212138
Fax: +972-74-7212122
Mobile: +972-54-2271315

reply via email to

[Prev in Thread] Current Thread [Next in Thread]