* [U-Boot] What is NetState?
@ 2008-12-03 21:00 Timur Tabi
2008-12-04 8:00 ` Ben Warren
0 siblings, 1 reply; 2+ messages in thread
From: Timur Tabi @ 2008-12-03 21:00 UTC (permalink / raw)
To: u-boot
Is there any documentation for this global variable? I'm trying to fix a bug in
NetStartAgain(), and I'm trying to understand the purpose of this variable.
--
Timur Tabi
Linux kernel developer at Freescale
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] What is NetState?
2008-12-03 21:00 [U-Boot] What is NetState? Timur Tabi
@ 2008-12-04 8:00 ` Ben Warren
0 siblings, 0 replies; 2+ messages in thread
From: Ben Warren @ 2008-12-04 8:00 UTC (permalink / raw)
To: u-boot
Timur Tabi wrote:
> Is there any documentation for this global variable? I'm trying to fix a bug in
> NetStartAgain(), and I'm trying to understand the purpose of this variable.
>
>
Isn't the code self-documenting? :) This global lets any of the
protocol processing routines force a restart or abort. Not very pretty,
that's for sure... All of the action takes place in the call to
eth_rx(), which calls a network driver's 'recv()' function, which
generally calls NetReceive(), which then switches on protocol and may
set NetState. Good thing we're single threaded.
regards,
Ben
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-04 8:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-03 21:00 [U-Boot] What is NetState? Timur Tabi
2008-12-04 8:00 ` Ben Warren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox