Received: by 2002:ac8:156:0:b0:3e0:cd10:60c8 with SMTP id f22csp265835qtg; Fri, 31 Mar 2023 00:49:42 -0700 (PDT) X-Google-Smtp-Source: AKy350aCxUqddqPhnq2fmqmPYr/I17423M27O3Vzt9FXuMkToxiKo3K7I10HOoCSMrRLwaQD1xhp X-Received: by 2002:a05:6a00:2987:b0:624:bf7e:9d8c with SMTP id cj7-20020a056a00298700b00624bf7e9d8cmr5295013pfb.1.1680248981714; Fri, 31 Mar 2023 00:49:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680248981; cv=none; d=google.com; s=arc-20160816; b=KWWSC1vp34HQ+Ui7B4vZ2+WTcPaiOJztegLXqIB0dLimWRjkN+IusObWDtnUm6v7/2 ku8paSQoF7s3LSnC14cO7jJBBC4kA5Uw6LX8nh7VechLL4APSElxlqlZIMhLJG2spjDW LDfcoPxl4QXaM396ltmEV/qIvyj/N2jz50kXcnpG68YxOv7G/Uy+KfwWTApaD2Wq6I7X bdOjqiU964+iuPWdNjOejqoogDYWc57aPtN7dHKDwkmb6CYKAuuHRbDtOGOd00f48/1L u8wSHlRnIgoa+BTr5OdS7LMvJt0KnLmut8tFUfqTJLf1x+Jm5d+3d5xorvoKr6QPwjFt nTIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=H4FZS7f2QcQo+xOlYEiKZmDS6e6ydZTR3nfdyJP2hTM=; b=QnbslkyErfSQYZY65mLnERTXekiu478YpPaZKHwnP6Kz6gooirz2TbwjTREGgU+Fg8 FPyhR3QablWWzWYQw9WJ+ltdXxPNeD8P/oRzgzVcClAU8Cv8KGs5MereRHq+D0QYbbub OPeya2MeIRiOLPTOf7jFjmfAdIUFzNKpU7hNvptdopFcoyhhCYMe+ymkuRU8+JsgPuNH Yyv7sm3ewMDr/ereRWy63BuGICavPc/AFW21Yq2JPX/x4GiBJW4x08ktfcXSFmCacc17 pPZS2n5JD/OAJCjd1Pp9SImXCoUKxDGNbWCPs25I32GHY88J0wts02XV/u/dmvbYxriK oRSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a188-20020a624dc5000000b00624eb57b45dsi1807817pfb.74.2023.03.31.00.49.29; Fri, 31 Mar 2023 00:49:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231299AbjCaHrA (ORCPT + 99 others); Fri, 31 Mar 2023 03:47:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231148AbjCaHqX (ORCPT ); Fri, 31 Mar 2023 03:46:23 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D30E1A943; Fri, 31 Mar 2023 00:46:18 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 63BFC188443E; Fri, 31 Mar 2023 07:46:15 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 3241325038AA; Fri, 31 Mar 2023 07:46:15 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 21C839B403F4; Fri, 31 Mar 2023 07:46:15 +0000 (UTC) X-Screener-Id: e32ae469fa6e394734d05373d3a705875723cf1e Received: from fujitsu (2-104-116-184-cable.dk.customer.tdc.net [2.104.116.184]) by smtp.gigahost.dk (Postfix) with ESMTPSA id 6920D91201E3; Fri, 31 Mar 2023 07:46:14 +0000 (UTC) From: Hans Schultz To: Vladimir Oltean Cc: Ido Schimmel , davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Florian Fainelli , Andrew Lunn , Eric Dumazet , Paolo Abeni , Kurt Kanzenbach , Hauke Mehrtens , Woojung Huh , "maintainer:MICROCHIP KSZ SERIES ETHERNET SWITCH DRIVER" , Sean Wang , Landen Chao , DENG Qingfang , Matthias Brugger , AngeloGioacchino Del Regno , Claudiu Manoil , Alexandre Belloni , =?utf-8?Q?Cl=C3=A9ment_L=C3=A9ger?= , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Shuah Khan , Christian Marangi , open list , "moderated list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" , "open list:RENESAS RZ/N1 A5PSW SWITCH DRIVER" , "moderated list:ETHERNET BRIDGE" , "open list:KERNEL SELFTEST FRAMEWORK" Subject: Re: [PATCH v2 net-next 6/6] selftests: forwarding: add dynamic FDB test In-Reply-To: <20230330192714.oqosvifrftirshej@skbuf> References: <20230318141010.513424-1-netdev@kapio-technology.com> <20230318141010.513424-7-netdev@kapio-technology.com> <87a5zzh65p.fsf@kapio-technology.com> <874jq22h2u.fsf@kapio-technology.com> <20230330192714.oqosvifrftirshej@skbuf> Date: Fri, 31 Mar 2023 09:43:34 +0200 Message-ID: <874jq1mkm1.fsf@kapio-technology.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 30, 2023 at 22:27, Vladimir Oltean wrote: > On Thu, Mar 30, 2023 at 09:07:53PM +0200, Hans Schultz wrote: >> Not true, it reveals that I forgot to put it in the patch, that's all. As >> I cannot run several of these tests because of memory constraints I link >> the file to a copy in a rw area where I modify the list and just run one >> of the subtests at a time. If I try to run the whole it always fails >> after a couple of sub-tests with an error. >> >> It seems to me that these scripts are quite memory consuming as they >> accumulate memory consuption in relation to what is loaded along the >> way. A major problem with my system. > > I'm sorry for perhaps asking something entirely obvious, but have you tried: > > kernel-dir $ rsync -avr tools/testing/selftests/ root@$board:selftests/ > board $ cd selftests/drivers/net/dsa/ > board $ ./bridge_locked_port.sh lan0 lan1 lan2 lan3 > > ? > > This is how I always run them, and it worked fine with both Debian > (where it's easy to add missing packages to the rootfs) or with a more > embedded-oriented Buildroot. I am not entirely clear of your idea. You need somehow to boot into a system with the patched net-next kernel or you have a virtual machine boot into a virtual OS. I guess it is the last option you refer to using Debian?