[U-Boot] What is NetState?

3 Dec
2008
3 Dec
'08
10 p.m.
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

4 Dec
4 Dec
9 a.m.
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
5998
Age (days ago)
5999
Last active (days ago)
1 comments
2 participants
participants (2)
-
Ben Warren
-
Timur Tabi