summaryrefslogtreecommitdiff
path: root/net/tftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tftp.c')
-rw-r--r--net/tftp.c4
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;