Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E80ECCD4F57 for ; Fri, 22 Sep 2023 10:57:07 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 54C758667B; Fri, 22 Sep 2023 12:57:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de 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; secure) header.d=gmx.de header.i=goldsimon@gmx.de header.b="go9ASZ0D"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4379686741; Fri, 22 Sep 2023 12:57:05 +0200 (CEST) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 049CB86679 for ; Fri, 22 Sep 2023 12:57:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=goldsimon@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1695380216; x=1695985016; i=goldsimon@gmx.de; bh=kAOITjjGx90C42azeSRYjX7Y/tKhT2KmmKKm4lbSOpc=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=go9ASZ0D0jWuedUbg4uFcKSszcjrToaatGblVC8+aF/tnZctV1s5HMISNvG/Nrc6irVfjU/flS4 LR5Dvs8LaH5lICqlfntf6kkhSmmXQwd1KJyYzmgnxN3uTJNyDZ/mfimTxFyrOoaHLHH/1fc5mfR25 ttGBsg+p13LcTJSyBuzbl6gEVMwFYQAAW553IGHL5WYHDSLAQywqDDHU6D8KUVykbVbaDExE1Lt3O YjEhjoJ/l0Y3akw7ucxFWv+FNeujBQuZQBRaBL6xrWppT1ld69EJftl9a3gUHZpNDfker9HUweDTH 0tzrzY+SWQpNAafkTVN8rq762g5Wij8bn/Tw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.2.88] ([176.199.209.230]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MGQnP-1qtECz2v5p-00Gswx; Fri, 22 Sep 2023 12:56:56 +0200 Message-ID: <0b714a3e-b46d-b954-e99f-a372d7124780@gmx.de> Date: Fri, 22 Sep 2023 12:56:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCHv8 00/15] net/lwip: add lwip library for the network stack To: Simon Glass , Maxim Uvarov Cc: Tom Rini , Peter Robinson , Ilias Apalodimas , u-boot@lists.denx.de, joe.hershberger@ni.com, rfried.dev@gmail.com References: <20230908135320.7066-1-maxim.uvarov@linaro.org> <20230908135922.GC305624@bill-the-cat> <93c9133d-b259-c093-64f4-2acdcedd0dc2@gmx.de> <20230913131423.GI305624@bill-the-cat> Content-Language: en-US From: Simon Goldschmidt In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:6VkBUXcAOcl4N18EPoMtYgQ/P8zgu584Y2jX/1iONGKbE9X31aH jRDXHTVovqboBoc1KnnNi2UW3KE2+e1uAMsm1A9I8vGUN00JFuGqs7gUEHV2kmVPriBuHim GQQp9XRakv4Sfmp2tIZSRUn5fa5Ue/CRkbl3wLNXiiB6/OgtFr67yJWsLNk2Y0553u9RaAe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Zt0k= X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 21.09.2023 18:29, Simon Glass wrote: > Hi, > > On Wed, 13 Sept 2023 at 07:35, Maxim Uvarov wr= ote: >> >> >> >> On Wed, 13 Sept 2023 at 19:14, Tom Rini wrote: >>> >>> On Wed, Sep 13, 2023 at 11:06:13AM +0100, Peter Robinson wrote: >>>>>>> Then if for development you need to pull he history of lwip, you = can do it with: >>>>>>> git pull -s subtree lwip master --allow-unrelated-histories >>>>>>> (but I think nobody will need this.) >>>>>>> >>>>>>> New update of the lwip net/lwip/lwip-external dir will be done wit= h: >>>>>>> git pull -s subtree lwip master --allow-unrelated-histories --squ= ash >>>>>>> Squash commit also has to be git format-patch friendly. >>>>>>> >>>>>>> If you are ok with that proposal I will send v9 with the first pat= ch created with steps above. >>>>>> >>>>>> We've gone through this before. The whole purpose of this is not >>>>>> having to maintain patches. >>>>>> Simon, instead of "I had problems in the past", can you elaborate a= bit more? >>>>>> >>>>>> Tom said he is fine with subtrees instead of submodules and I know = for >>>>>> a fact EDK2 doesn't have too many issues with submodules. >>>>>> Their documentation is pretty clear on building and requires >>>>>> >>>>>> git clone https://github.com/tianocore/edk2.git >>>>>> cd edk2 >>>>>> git submodule update --init >>>>>> >>>>>> Perhaps the situation has improved since you had issues? > > Nope. > >>>>> >>>>> While I don't really care how you solve this technically, I'd *stron= gly* >>>>> be interested for U-Boot to use *unmodified* lwIP sources where an >>>>> explicit reference to an lwIP commit is used. I'd rather integrate >>>>> bugfixes for U-Boot into lwIP than having the sources drift apart. >>>> >>>> Strongly agree here, we want to use upstream and all the combined >>>> development and reviews etc rather than forking off and ending up wit= h >>>> yet another slightly different IP stack. The whole advantage of >>>> adopting LWIP is the advantage of combined security, features and bug= s >>>> from a wide range of projects :-) >>> >>> Yes, this is what I want as well, and why I'm perhaps more agreeable >>> with the approaches where it's a lot harder for us to start forking >>> things unintentionally. I gather submodule rather than subtree would = be >>> better for that case? >>> >>> -- >>> Tom >> >> >> Yes, submodule will be a much better solution for us. And I also don't = think that today >> there are any issues with submodules. It works well of OE, RPM and DEB = builds, >> distributions should not have problems with it. > > My particular experience is with coreboot. Some problems I have: > > 1. Updating the modules doesn't work and I need to reset, try the > --init thing, fetch things manually, etc. etc. > 2. In ChromiumOS coreboot we can't use submodules internally since > each package has its own build script. E.g. we need to build coreboot > separately from its blobs, fsp, external libraries, etc. At least > there we can do this, but if U-Boot adopts a submodule for a core > feature, this is going to create no end of problems. > 3. It makes it impossible to patch lwip for any fix we need for a releas= e > 4. We still have to 'fast forward' to a new commit every now and then, > which really is no easier than doing a merge commit for the changes > since the last sync, is it? > > Really, we need a maintainer for the lwip piece, if we are to adopt > it. Using submodules is not a substitute for that. As an lwIP maintainer, I cannot step up as a maintainer of lwIP in U-Boot, however, I can assure you I will do my best to work with you on integrating fixes into upstream lwIP if required. Without wanting to promote using submodules: all other examples of lwIP being copied into another repository have practically never resulted in bugfixes being sent back to us (ok, that's not 100% true, but we do get them only once in a while) and being like that, those projects are facing problems upgrading our stack in turn. I wouldn't want to be a maintainer of such code, either. Regards, Simon