Message ID | 86cbe8adc7cd7130571f5b4d4eaf3828c222d6fe.1724419624.git.jerome.forissier@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:e044:0:b0:367:895a:4699 with SMTP id w4csp388235wrh; Fri, 23 Aug 2024 06:54:26 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXBPsXpZ5n8hOT1Ne1ZPw1cR3332G+yr01YxVLVohkpSL3lIP8YJkCUCcs9muBTEG2mBcSw/g==@linaro.org X-Google-Smtp-Source: AGHT+IGJ//S8q47Q48bTn+G39eMOkzzb5IdialNyHS9nS9ZQbd6+/N9F6CTpFGTnG/I2nQoA33he X-Received: by 2002:a05:600c:5491:b0:426:6f1e:ce93 with SMTP id 5b1f17b1804b1-42acd5e2dffmr13878105e9.33.1724421265936; Fri, 23 Aug 2024 06:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724421265; cv=none; d=google.com; s=arc-20240605; b=F4r7W46oEHhlbd3+BsILiDzDLvOZ/Ib5NDUhwqFtPhDbwIUYVFaqQRIsDtxQBoRt9F BQ1A3fM7WMvo1wj15R3piFoly0e8EIQuUIjQ9B/lQq0QMRjKmsMMNOO+w3u95KrsZAH4 AoB8fqqnQ016jyjJNRX7uMYmATONSQwhtQTPPiTCV4n3/lyN66C7atTHPxJaMn/b79KT DCN8cllzbv/nT7JyURjq1beMpEjeEJNgQcrt/kWAoDVpV33nXfWUPjxg7cAMHRwdyYgT S3aeZ1Yg7hcYua1nroJ98b+2BeGttOLDfgn1ag4DaTiov1QTMwIhhGiL3bEeApTbhZe6 nL6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=w5Ti40FD60twAqgTogRIah0zrrRbOJ+6aN+DRYhjcLI=; fh=8LAzHPYFumYV4f2J8/2jQOtKLAr6TBnp6a+gbEwg0U4=; b=UzN8h1ALUUdegbPFM/40ASzZ6rL0NS51ZjW57qK8lo27J+52oYsgt4wm8f48nqFrnU +Y0GqUXGg0RrHu7XBqSWazsyo0xSgDEXeUPnFVmbFa7e2y8ex2y5CDLd6HWMEEJ3CFoc zHPx+qoXhg+sbHDCky98/iRpQv9V/wjukw/RZfIShbGw3C2VrxT5dYge83kunQ5va544 TsXqHrYtib/v1SZ72Xtw9hsTADnxaIiWr0ibkK4VpjAQ6CT3h/hLYbxH6ZtCSj6HvYsn R9QrUs3M63BlWB5VQGNovNZblyDuQtfGfVxDO1DlRppH7r8pzDP5fAvrF6BMfH/efWWf /chA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Srfv0ADQ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id 5b1f17b1804b1-42ac5180447si18936455e9.178.2024.08.23.06.54.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Aug 2024 06:54:25 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Srfv0ADQ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E158C88C15; Fri, 23 Aug 2024 15:50:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Srfv0ADQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DE62688C6D; Fri, 23 Aug 2024 15:50:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id F388E88C13 for <u-boot@lists.denx.de>; Fri, 23 Aug 2024 15:50:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jerome.forissier@linaro.org Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-3719398eafcso1043388f8f.1 for <u-boot@lists.denx.de>; Fri, 23 Aug 2024 06:50:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724421010; x=1725025810; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=w5Ti40FD60twAqgTogRIah0zrrRbOJ+6aN+DRYhjcLI=; b=Srfv0ADQMWrxUDvTEvjlS2ps2Mvm+f9/T9YgUyAWaMixc3qngAMc7EuSQsT66UF8ei 1X55UU3iKefvJmof+5lu0rs8ulq7hvDG4ge6eUnnfQARV4XtGHBPiq7wz2VOuBZ11Oy3 FwlnNqWIm33Fquwy1UUN0mFvxfNkG6bmyg3joprT7xxz9Np8OSE62HF+rRYdsi+J1Ky3 GDMeaUl2IZamy6+RMubmIlruBLJTUbv2YOCp05zw9ofOVmdqBeJaITYh9O9SE/xiLyEw YBh50DnK1FD/moSaA21RjOcjQUZ8JIMIcm9anW44E39VyZU2OPWsQc90kopwWLJMa38v CtUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724421010; x=1725025810; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w5Ti40FD60twAqgTogRIah0zrrRbOJ+6aN+DRYhjcLI=; b=CorjnwZaAfIC9OPVkF3ToOnNvJXTTJ+8JZ7Ei9Uzn4aRjhHsIaylAdAA8wHm0/MFQM h8hDrQ/9TglXwCbv9+kJfJDro62KPD3fvIlVPspOQaqi2g2Q9zxaN59PtendGYtYSHI5 P2BX2NwWZHqEfJhpUIKOqhW5RCPBPEGl4haVffWkFvcoQOaonmxpp9H7ypoZrsfaokkv hOrJd6WQlyxf/u7FhLDJ+Y4MtMh1ZeV+Y2ZwWHobg7ZNLe1ZQydFg5xhp46fWIwGE4vo lkm0Lt1ZTgfeEiOArrE4QkYJpaj4N1yU4FMAW26ki94wASuSXEpITrYgCFJEx5ZAu4et 4PVg== X-Gm-Message-State: AOJu0YyvEOXdZsChA3/aqE/pdNn+rA23qPMSoA3MK1goQazo/kDEatcX bxDyj3bkkjK1ZsFlIzaCoIv8pFUDjgqnjLi8Uby3ZOJ4erUceMnWsfDf7m1AT2ceyjYa0FNYGpg jzwLPCLbH X-Received: by 2002:adf:fd41:0:b0:367:8a87:ada2 with SMTP id ffacd0b85a97d-37311876fadmr1505479f8f.26.1724421010155; Fri, 23 Aug 2024 06:50:10 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:e668:dc94:35c7:8064]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-373081ffb40sm4201665f8f.76.2024.08.23.06.50.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Aug 2024 06:50:09 -0700 (PDT) From: Jerome Forissier <jerome.forissier@linaro.org> To: u-boot@lists.denx.de Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>, Javier Tia <javier.tia@linaro.org>, Raymond Mao <raymond.mao@linaro.org>, Maxim Uvarov <muvarov@gmail.com>, Tim Harvey <tharvey@gateworks.com>, Anton Antonov <Anton.Antonov@arm.com>, Jerome Forissier <jerome.forissier@linaro.org>, Joe Hershberger <joe.hershberger@ni.com>, Ramon Fried <rfried.dev@gmail.com>, Tom Rini <trini@konsulko.com>, Baruch Siach <baruch@tkos.co.il>, Simon Glass <sjg@chromium.org>, Anand Moon <linux.amoon@gmail.com> Subject: [PATCH v9 30/37] net-lwip: add TFTP_BLOCKSIZE Date: Fri, 23 Aug 2024 15:48:34 +0200 Message-Id: <86cbe8adc7cd7130571f5b4d4eaf3828c222d6fe.1724419624.git.jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <cover.1724419624.git.jerome.forissier@linaro.org> References: <cover.1724419624.git.jerome.forissier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
Introduce the lwIP network stack
|
expand
|
diff --git a/net/Kconfig b/net/Kconfig index 16a9de47e94..76ab7d91eeb 100644 --- a/net/Kconfig +++ b/net/Kconfig @@ -60,16 +60,6 @@ config SYS_FAULT_ECHO_LINK_DOWN this option is active, then CONFIG_SYS_FAULT_MII_ADDR also needs to be configured. -config TFTP_BLOCKSIZE - int "TFTP block size" - default 1468 - help - Default TFTP block size. - The MTU is typically 1500 for ethernet, so a TFTP block of - 1468 (MTU minus eth.hdrs) provides a good throughput with - almost-MTU block sizes. - You can also activate CONFIG_IP_DEFRAG to set a larger block. - config TFTP_PORT bool "Set TFTP UDP source/destination ports via the environment" help @@ -254,6 +244,16 @@ config NET_RANDOM_ETHADDR generated. It will be saved to the appropriate environment variable, too. +config TFTP_BLOCKSIZE + int "TFTP block size" + default 1468 + help + Default TFTP block size. + The MTU is typically 1500 for ethernet, so a TFTP block of + 1468 (MTU minus eth.hdrs) provides a good throughput with + almost-MTU block sizes. + You can also activate CONFIG_IP_DEFRAG to set a larger block. + endif # if NET || NET_LWIP config SYS_RX_ETH_BUFFER diff --git a/net/lwip/tftp.c b/net/lwip/tftp.c index 50b8fbad00d..51cd1e0207c 100644 --- a/net/lwip/tftp.c +++ b/net/lwip/tftp.c @@ -138,6 +138,8 @@ static int tftp_loop(struct udevice *udev, ulong addr, char *fname, if (!(err == ERR_OK || err == ERR_USE)) log_err("tftp_init_client err: %d\n", err); + tftp_client_set_blksize(CONFIG_TFTP_BLOCKSIZE); + ctx.start_time = get_timer(0); err = tftp_get(&ctx, &srvip, srvport, fname, TFTP_MODE_OCTET); /* might return different errors, like routing problems */