Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6141376rdb; Thu, 14 Dec 2023 09:17:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHL8NuI0TzUmGW3IQZ6wcOC72YuzzpI/4mOyXpckEAQiVEepuWuOZi9zTXLnNJ+qqdwPA9Q X-Received: by 2002:a05:6a00:181f:b0:6ce:4587:4d7b with SMTP id y31-20020a056a00181f00b006ce45874d7bmr14644831pfa.24.1702574254689; Thu, 14 Dec 2023 09:17:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702574254; cv=none; d=google.com; s=arc-20160816; b=EzneMtz764FIuEdkmGYk/EQOghexGjBwMauEpcfCe00dG9TiCYrAPQC5rKNiZ8D6Wo uvjl8FZZXb9CPKk9IAWGIQrSLY4hWv5Uesrus+FxjD6P3SkM2KtGQfUBelC04IvR/xVR OXfcGQs42M0rvMpxCy5F1x01FEh01a8KoJwJPVHWB49VhScH8PBMgMrQizLBzsYmodZ5 1umWDw1/k21eAU6uaJQDO9CHPEQeSXziEeRSHACvFKh1nzKq9ZjCp9Yuvnj6tssnWwM7 jZ1dGhpjh6Xx4pCLZG0ytHlbf+Ocvfvit0PcU2V4gC6LBHVfMycjdonfCCOd3oAwYTWL YGVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=WhisvxorMT8gLOWLpdO0dpN3mn3xiYsrtCZnuTYbkxE=; fh=hDY7ol3vlzYnIt6j1OcbGoBzm77b42dQaZ4AhtYhGR4=; b=X/0YOfxcgKCudKlTo4TlI5PvT5K2XUmCKMtQb0fcSeNR6uMjpsS9ZGd7dAjPqY64dw z5I7UgZdUusT8o1Aq0Jgi9l2r+K/IfeH08kfX6E41GBlhi5nCa59iTS6SRhbs3J4PaKj JIO/ncP6jNgz8jTxSTcctpoRwjlxIMeO8sCB+vxL4VyMV+RDaUVNgr23ju9e0MLbjaY6 lADEU6n6QF83uNiXDNkVv24tZ6XknjGAL/XXTqsmxxZ5uEnfJPbrxMTurVTr3wkFGhdT DaQzRH/Y5Pfjok5i9+xvosBhsz1fECGUeXsIcCZplZxQR4UXyoODyTrC9okjYr84d66B 055w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PoIlIpUN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id f15-20020a056a001acf00b006be30cdc3d8si11460245pfv.163.2023.12.14.09.17.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 09:17:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PoIlIpUN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 155FC8269C71; Thu, 14 Dec 2023 09:17:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235664AbjLNRRG (ORCPT + 99 others); Thu, 14 Dec 2023 12:17:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444260AbjLNRQl (ORCPT ); Thu, 14 Dec 2023 12:16:41 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E30F10C6 for ; Thu, 14 Dec 2023 09:16:46 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B767C433C8; Thu, 14 Dec 2023 17:16:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702574205; bh=j3EMGBksbzz4Fe6xhN1+uDIfhW9IPxgGEJtUJDyFcyE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=PoIlIpUNIR39MHVocMfe0vArZzH5sDUcqpS6ePbYC5lZXvkgGElatv6DzofTv1CJ/ paHWCzCnPMxzeGzVXQyw14lQzntAWCkJPTNpZurcncamYZops8rIwfOmxTDFOgNxZh AMFGs4BCR58nrL6o/pwoLOFNtM74mEX/NaoTaGBsmQTtFwRho60ZI4IjvfFbeyOeS4 dn5RdnZf5OICu+n3oXefF67i/KvZ335zRJeojUqKUE+QYsHtVyTJv86LKdCrTRCrZ8 cM6lbJKJtFIHlTUKRHUmzPdCaa4hgWHFkwZuhNYpw6MCz2BpnMaPYXi1iXlVBQf/ep ovwT6vQ6DgkVw== Message-ID: <5e0e18da-6141-4d28-9316-f796be7489d9@kernel.org> Date: Thu, 14 Dec 2023 19:16:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8 net-next 02/11] selftests: forwarding: ethtool_mm: fall back to aggregate if device does not report pMAC stats To: Vladimir Oltean Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, shuah@kernel.org, s-vadapalli@ti.com, r-gunasekaran@ti.com, vigneshr@ti.com, srk@ti.com, horms@kernel.org, p-varis@ti.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231213110721.69154-1-rogerq@kernel.org> <20231213110721.69154-3-rogerq@kernel.org> <20231214141646.kdf5rnldpyglwvdd@skbuf> Content-Language: en-US From: Roger Quadros In-Reply-To: <20231214141646.kdf5rnldpyglwvdd@skbuf> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 14 Dec 2023 09:17:31 -0800 (PST) On 14/12/2023 16:16, Vladimir Oltean wrote: > On Wed, Dec 13, 2023 at 01:07:12PM +0200, Roger Quadros wrote: >> diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forwarding/lib.sh >> index 8f6ca458af9a..763c262a3453 100755 >> --- a/tools/testing/selftests/net/forwarding/lib.sh >> +++ b/tools/testing/selftests/net/forwarding/lib.sh >> @@ -146,6 +146,15 @@ check_ethtool_mm_support() >> fi >> } >> >> +check_ethtool_pmac_std_stats_support() >> +{ >> + local dev=$1; shift >> + local grp=$1; shift >> + >> + [ 0 -ne $(ethtool --json -S $dev --all-groups --src pmac 2>/dev/null \ >> + | jq '.[]."$grp" | length') ] >> +} >> + >> check_locked_port_support() >> { >> if ! bridge -d link show | grep -q " locked"; then >> -- >> 2.34.1 >> > > FYI, there's another submitted patch that touches the exact same spot, > and it looks like it has a good chance of getting merged. > https://patchwork.kernel.org/project/netdevbpf/patch/20231214135029.383595-9-tobias@waldekranz.com/ > > You need to pay attention to merge conflicts, so you don't waste a patch > iteration just because of that one thing. > > I guess you might be able to wing it, because the other patch does this: > > diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forwarding/lib.sh > index 8f6ca458af9a..e3740163c384 100755 > --- a/tools/testing/selftests/net/forwarding/lib.sh > +++ b/tools/testing/selftests/net/forwarding/lib.sh > @@ -146,6 +146,15 @@ check_ethtool_mm_support() > fi > } > > +check_ethtool_counter_group_support() > +{ > + ethtool --help 2>&1| grep -- '--all-groups' &> /dev/null > + if [[ $? -ne 0 ]]; then > + echo "SKIP: ethtool too old; it is missing standard counter group support" > + exit $ksft_skip > + fi > +} > + > check_locked_port_support() > { > if ! bridge -d link show | grep -q " locked"; then > > which quite coincidentally does not change what your patch sees in its > upper context, aka 3 lines like this: > > ---- > fi > } > > ---- > > You can check if your patch set applies on top of Tobias', by formatting > it as patch files on top of net-next/main, resetting HEAD to net-next, > applying Tobias' series and then your patches. Thanks for the heads up :) -- cheers, -roger