Re: [U-Boot] [PATCH 22/28] net: Fix net buffer initialization

2012-02-10 Thread Joe Hershberger
Hi Mike, On Fri, Feb 3, 2012 at 6:37 AM, Mike Frysinger wrote: > On Thursday 19 January 2012 19:53:25 Joe Hershberger wrote: >> @@ -627,6 +639,12 @@ NetSendUDPPacket >> >> +     /* make sure the NetTxPacket is initialized (NetInit() was called) */ >> +     if (NetTxPacket == NULL) { >> +        

Re: [U-Boot] [PATCH 22/28] net: Fix net buffer initialization

2012-02-03 Thread Mike Frysinger
On Thursday 19 January 2012 19:53:25 Joe Hershberger wrote: > --- a/include/net.h > +++ b/include/net.h > > -extern int NetLoop(enum proto_t); > +extern int NetLoop(enum proto_t protocol); explicit variable names are unnecessary when the type is self explanatory > --- a/net/net.c > +++ b/net/n

[U-Boot] [PATCH 22/28] net: Fix net buffer initialization

2012-01-20 Thread Joe Hershberger
A new non-static function NetInit() will initialize buffers and read from the env Only update from the env on each entry to NetLoop() Check when attempting to send a packet that the buffers were initialized Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Wolfgang Denk --- include/net