From 2be45bfe2779043bc3566e879e7ec279412012dc Mon Sep 17 00:00:00 2001 From: Fu Siyuan Date: Fri, 6 May 2016 10:30:09 +0800 Subject: ShellPkg: Add argument to set block size for tftp command. TFTP block size has a big impact on the transmit performance, this patch is to add new argument [-s ] for shell "tftp" command to configure the block size for file download. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan Reviewed-by: Ye Ting Reviewed-by: Qiu Shumin Reviewed-by: Jaben Carsey --- .../Library/UefiShellTftpCommandLib/UefiShellTftpCommandLib.uni | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ShellPkg/Library/UefiShellTftpCommandLib/UefiShellTftpCommandLib.uni') diff --git a/ShellPkg/Library/UefiShellTftpCommandLib/UefiShellTftpCommandLib.uni b/ShellPkg/Library/UefiShellTftpCommandLib/UefiShellTftpCommandLib.uni index 33a8944504..a16265c16e 100644 --- a/ShellPkg/Library/UefiShellTftpCommandLib/UefiShellTftpCommandLib.uni +++ b/ShellPkg/Library/UefiShellTftpCommandLib/UefiShellTftpCommandLib.uni @@ -1,7 +1,7 @@ // /** // // (C) Copyright 2015 Hewlett Packard Enterprise Development LP
-// Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.
+// Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.
// This program and the accompanying materials // are licensed and made available under the terms and conditions of the BSD License // which accompanies this distribution. The full text of the license may be found at @@ -50,7 +50,7 @@ ".SH SYNOPSIS\r\n" " \r\n" "TFTP [-i interface] [-l ] [-r ] [-c ] [-t ]\r\n" -" host remotefilepath [localfilepath]\r\n" +" [-s ] host remotefilepath [localfilepath]\r\n" ".SH OPTIONS\r\n" " \r\n" " -i interface - Specifies an adapter name, i.e., eth0.\r\n" @@ -61,6 +61,8 @@ " wait for a response. The default value is 6.\r\n" " -t - The number of seconds to wait for a response after\r\n" " sending a request packet. Default value is 4s.\r\n" +" -s - Specifies the TFTP blksize option as defined in RFC 2348.\r\n" +" Valid range is between 8 and 65464, default value is 512.\r\n" " host - Specify TFTP Server IPv4 address.\r\n" " remotefilepath - TFTP server file path to download the file.\r\n" " localfilepath - Local destination file path.\r\n" -- cgit v1.2.3