diff options
author | David Ungar <david.ungar@timesys.com> | 2010-10-11 14:22:02 -0400 |
---|---|---|
committer | David Ungar <david.ungar@timesys.com> | 2010-10-11 14:22:02 -0400 |
commit | b845332053375e0b40e9fa7e7502d269aeda1815 (patch) | |
tree | 965a431f6010eec30e8edef00867895a5e976896 /net | |
parent | eb1a4d0a471505c169bef19a73a60f8641f0b875 (diff) |
Logic PD u-boot base patch
Diffstat (limited to 'net')
-rw-r--r-- | net/tftp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/tftp.c b/net/tftp.c index fb98a346ea..abc579c785 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -85,7 +85,11 @@ extern flash_info_t flash_info[]; * Minus eth.hdrs thats 1468. Can get 2x better throughput with * almost-MTU block sizes. At least try... fall back to 512 if need be. */ +#if defined(CONFIG_TFTP_BLOCKSIZE_512) +#define TFTP_MTU_BLOCKSIZE 512 +#else #define TFTP_MTU_BLOCKSIZE 1468 +#endif static unsigned short TftpBlkSize=TFTP_BLOCK_SIZE; static unsigned short TftpBlkSizeOption=TFTP_MTU_BLOCKSIZE; |