From: Wolfgang Denk Date: Fri, 26 Nov 2010 16:37:54 +0100 Subject: [U-Boot] [PATCH] ppc4xx/POST: Change ethernet test loop count from 192 to 16 In-Reply-To: <201011261627.25617.sr@denx.de> References: <1290782654-9242-1-git-send-email-sr@denx.de> <20101126151323.BC6F811D94F1@gemini.denx.de> <201011261627.25617.sr@denx.de> Message-ID: <20101126153754.302A811D94F1@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Stefan Roese, In message <201011261627.25617.sr@denx.de> you wrote: > > I don't like this "l+=91" statement. How about making it a bit more flexible. > Something like this: > > #define MIN_PACKET_LENGTH 64 > #define MAX_PACKET_LENGTH 1518 > #ifndef CONFIG_SYS_POST_ETH_LOOPS > #define CONFIG_SYS_POST_ETH_LOOPS 10 > #endif > #define PACKET_INCR ((MAX_PACKET_LENGTH - MIN_PACKET_LENGTH) / \ > CONFIG_SYS_POST_ETH_LOOPS) Agreed. For the final version, please check how MAX_PACKET_LENGTH is used (I didn't do this) and verify that 1518 is the correct value to use here. Thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Prof: So the American government went to IBM to come up with a data encryption standard and they came up with ... Student: EBCDIC!