mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-04 10:30:32 +00:00
16cdc2daa0
Commitb618b37076
("net: Convert CONFIG_TFTP_BLOCKSIZE to Kconfig") accidentally set the default *option* TFTP block size to 512 bytes, even though the comment in the code says that this is a terrible choice. Most boards didn't define the symbol before, so they got the default block size of 1468 bytes before, but now use 512 bytes, which is also the fallback. This leads to both abysmal performance and a lot of hashes printed on the screen (one character for every 5K), which is both annoying and slow over serial links. Set the default block size in Kconfig back to the value it had before. This improves TFTP performance from 2.8 MB/s to 6.9 MB/s on a Pine64. Fixes:b618b37076
("net: Convert CONFIG_TFTP_BLOCKSIZE to Kconfig") Signed-off-by: Andre Przywara <andre.przywara@arm.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
38 lines
816 B
Text
38 lines
816 B
Text
#
|
|
# Network configuration
|
|
#
|
|
|
|
menuconfig NET
|
|
bool "Networking support"
|
|
default y
|
|
|
|
if NET
|
|
|
|
config NET_RANDOM_ETHADDR
|
|
bool "Random ethaddr if unset"
|
|
help
|
|
Selecting this will allow the Ethernet interface to function
|
|
even when the ethaddr variable for that interface is unset.
|
|
A new MAC address will be generated on every boot and it will
|
|
not be added to the environment.
|
|
|
|
config NETCONSOLE
|
|
bool "NetConsole support"
|
|
help
|
|
Support the 'nc' input/output device for networked console.
|
|
See README.NetConsole for details.
|
|
|
|
config IP_DEFRAG
|
|
bool "Support IP datagram reassembly"
|
|
default n
|
|
help
|
|
Selecting this will enable IP datagram reassembly according
|
|
to the algorithm in RFC815.
|
|
|
|
config TFTP_BLOCKSIZE
|
|
int "TFTP block size"
|
|
default 1468
|
|
help
|
|
Default TFTP block size.
|
|
|
|
endif # if NET
|