From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 802A914AD0D for ; Fri, 10 Jul 2026 13:32:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.125.188.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783690324; cv=none; b=iGMBBN/dw8ynH5YYu7D04qbZdlzsRQoL/Zv7xC1fB4kJ1tbWuzIhtK2qVddwPTDIbtKFPtKMQrOnHSiXesI4+urBV3sEUEBXXgEZwM4/1ZSHUgDxCm3FRtv0YkD+2RbNePuDngiZzvQ6m3xEYYdJ5fhNo5bQZmC+Zycz6V2ElYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783690324; c=relaxed/simple; bh=0kCTodwMNybNFHvFl8c20+Pfoq3qaWcGnR+gA/Fw/Ow=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fsRrEEq/vIq6OA+JGY1TJ8/0rFROLrTam6TnqURkq8h6wS/2hqVQOddT85IPl23yCAhXwZu06cSgBc5JVzhLlD/AUmc5lqS4CAILJm8ThHO/+StvJxBNCHM6fVU2aD2KcZK546m3pUsDiOqs0FbwE2992p6S4zq7iiPG59sIgVU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=canonical.com; spf=pass smtp.mailfrom=canonical.com; dkim=pass (4096-bit key) header.d=canonical.com header.i=@canonical.com header.b=YVmQEGeK; arc=none smtp.client-ip=185.125.188.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=canonical.com header.i=@canonical.com header.b="YVmQEGeK" Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 82E973F7D1 for ; Fri, 10 Jul 2026 13:31:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20251003; t=1783690313; bh=CRjw6u/TimhdsdLAKCBwY2E0h0Xmbg9SBDdL+xLx6es=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=YVmQEGeKY5DNRktZoKSqGEt8BiPYMVyZMYXPgU/duGMIcAGT8so5ZTKE9pQODcdxN uq4uZoAwgapyNhL1DxwOkT22AcOAXxTjTEl5EhEou+iMbA6klRphIfmU/b1mCjO7YS fBXs7N9iSaiVX3MFqj0bo3BtDMSxohPzMLqNhTMHXKMwrdK77/39wGakakqEqLu8N1 ncVK3i4ufqzAbNXjLI8Hob+DmDmG0JY6QhhbSjEborizmi+8Nmi9ZHyaFRX8gd8/8l lY4GkRR/qCsF6B8S4kr4CDh6NXmYQxrq7CoBRAWoDuhnkAeIZzIQHFbTdUl3xnGUQl ux/4ZH+7UfKlfh84CiKUMIp3mCbxeV452p5uAv/+fHv+jCD9o2h2b71vUPP+NLvZCg fANV4XgU2Mkl70mFvYL6Kjkg9MTCOcXbXdNB1GEBhFo46Ax0ipoB81Dv3gsImEgTYb dae5uye8XvblBKttKflPEw6JRph5zRunfaxD5lrIDYWUljGIX2kaApGBtM8hgd1DX2 qr9FFltEubEugJ11dYGKZk9vCNzoBuR+H1CQytRDAJEV1HJ4dJBtpe+CnE8vy50qgk T11LuQ4T5AigknyEQP8+CLIqI3Ynlr0mug9u++JHcjNzBn2hV0HvZiHtpCyeuAXOFf ShSveZyy8NtOnks/5MG897C4= Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-492714d002cso6794555e9.0 for ; Fri, 10 Jul 2026 06:31:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783690313; x=1784295113; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=CRjw6u/TimhdsdLAKCBwY2E0h0Xmbg9SBDdL+xLx6es=; b=IW9B5AMYb+9aRnt2nNMMhpu3SMnjYw8v5MYRsh1iWztkxgWxUMXUml2nISMIfUO0jZ zkR1DLH7etkyvi3tLenf4Aq4h9CXH0Rve82nPA0KzJKaC47PS5S89WbfS+FnecsbAg2X 8ReJTqhSm6h2yQ+kKHyof6LM6E1vnH/AhJPR5bd6q+FHQk4GvUEbssjkhhT1P01TombL tVrYRhOrDOnOUOclQwqcY0DcSVJ1lcvlLkXBlkw1bG1/YC5mFUebR5cAHe9kiGD6Rx8T f9iaciLunr/i5Ozgts08rlBEkJhXCE4zL/3bF3COcjRv13WKFviIKd8JMrzm8t6ACzYX jkvg== X-Forwarded-Encrypted: i=1; AHgh+RrDU0e5HWhDsL6EcBd4/u1ZQhOhPq4/j0OW4C6XIDT0IVaqu+irH+qfLoQD0NBiUPXMnDEMvGlWr49fVvAdISQ=@vger.kernel.org X-Gm-Message-State: AOJu0YwBPZlfs/7rdyHKF6iRH9VbOQkHesyEIoZ2V9PNbYQqwVXiyG64 r8CmHnqnlYxU9BPWkCFrTGV5sBT8ATyaAU4/NyNsaUZdwIUcctqvvxAu6YMSFcZtvn3v4kUxeR0 f2v0rt5zOpW575IqU7D1NQGvcnQi3EdoIsIv0hO6mO/SbojJcPpxgOSN93fwfJoAqa97SiS0lJT I0d+3hkqvIclc3Vbff5Q== X-Gm-Gg: AfdE7ckbeHjcdsDVs1EJ20Vz7OJ+eCBJiziLBO7EFy9Guv01W2tFZcsF/gflvqxEhYf j4prpED8qptzB+Q4WZ/G2Gg2KsRLw9BPsrMue2MAne0182Q4RfYOrqWsyZDDZclGN5fxdHdEbX9 p6U1dOEydPuX2jIjp1M9wx+GzmGhop3x04W30RjaJPqMCRSHoAr9jtHdP0KPiE3TFy5+NC/428Z qSrcNY/KTrtZcxw4qJmHuelSlM+YuhLXG+iIaEwbr2gu5Yhdp6b6hZg1CrYGQZX7B4LyFbmJqEp Hn0N5x/djUHBF0nmn5vR11HsqAY0aADe8jOk1PX8zsVPQ6gd+9qgy7aEDF2P8vgYyS+EOgqZBem 12JGpfTRr6C7ZEeCA3mfBFupJAizO1vmltIeddbHiwMvPBnBtv8+cmcuQLBurecdrmv3nL9F0Fp CpDMeB/Q== X-Received: by 2002:a05:600c:4692:b0:493:b750:bd20 with SMTP id 5b1f17b1804b1-493e68a5f91mr120361665e9.15.1783690312838; Fri, 10 Jul 2026 06:31:52 -0700 (PDT) X-Received: by 2002:a05:600c:4692:b0:493:b750:bd20 with SMTP id 5b1f17b1804b1-493e68a5f91mr120360905e9.15.1783690312205; Fri, 10 Jul 2026 06:31:52 -0700 (PDT) Received: from localhost (93-40-74-111.ip37.fastwebnet.it. [93.40.74.111]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-493f567eadfsm37394065e9.6.2026.07.10.06.31.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2026 06:31:51 -0700 (PDT) Date: Fri, 10 Jul 2026 15:31:50 +0200 From: Alessio Faina To: Andrea Mayer Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, Po-Hsu Lin , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , stefano.salsano@uniroma2.it, Andrea Mayer Subject: Re: [PATCH net-next] selftests/net: Skip srv6_end_dt46_l3vpn_test::host_vpn_tests if iproute2 too old Message-ID: References: <20260708152745.2430714-1-alessio.faina@canonical.com> <20260710152211.63eb25d604ea0aa2b3707d68@common-net.org> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260710152211.63eb25d604ea0aa2b3707d68@common-net.org> On Fri, Jul 10, 2026 at 03:22:11PM +0200, Andrea Mayer wrote: > On Wed, 8 Jul 2026 17:27:45 +0200 > Alessio Faina wrote: > > > In case iproute2 is older than version 5.14.0, released ~Sept 1, 2021, > > the End.DT46 support is not available and the host_vpn_tests test contained > > in the srv6_end_dt46_l3vpn_test.sh file is failing in some kernel backports. > > This is the result of those tests: > > > > ################################################################################ > > TEST SECTION: SRv6 VPN connectivity test among hosts in the same tenant > > ################################################################################ > > > > TEST: IPv6 Hosts connectivity: hs-t100-1 -> hs-t100-2 (tenant 100) [ FAIL ] > > > > TEST: IPv4 Hosts connectivity: hs-t100-1 -> hs-t100-2 (tenant 100) [ FAIL ] > > > > TEST: IPv6 Hosts connectivity: hs-t100-2 -> hs-t100-1 (tenant 100) [ FAIL ] > > > > TEST: IPv4 Hosts connectivity: hs-t100-2 -> hs-t100-1 (tenant 100) [ FAIL ] > > > > TEST: IPv6 Hosts connectivity: hs-t200-3 -> hs-t200-4 (tenant 200) [ FAIL ] > > > > TEST: IPv4 Hosts connectivity: hs-t200-3 -> hs-t200-4 (tenant 200) [ FAIL ] > > > > TEST: IPv6 Hosts connectivity: hs-t200-4 -> hs-t200-3 (tenant 200) [ FAIL ] > > > > TEST: IPv4 Hosts connectivity: hs-t200-4 -> hs-t200-3 (tenant 200) [ FAIL ] > > > > To amend this, check the current running iproute2 supports the required > > feature and, if not, just skip the test to avoid a failure. > > > > > > Signed-off-by: Alessio Faina > > --- > > .../selftests/net/srv6_end_dt46_l3vpn_test.sh | 13 ++++++++----- > > 1 file changed, 8 insertions(+), 5 deletions(-) > > > > diff --git a/tools/testing/selftests/net/srv6_end_dt46_l3vpn_test.sh b/tools/testing/selftests/net/srv6_end_dt46_l3vpn_test.sh > > index a5e959a080bb..406c6a3d253e 100755 > > --- a/tools/testing/selftests/net/srv6_end_dt46_l3vpn_test.sh > > +++ b/tools/testing/selftests/net/srv6_end_dt46_l3vpn_test.sh > > @@ -510,12 +510,15 @@ host2gateway_tests() > > host_vpn_tests() > > { > > log_section "SRv6 VPN connectivity test among hosts in the same tenant" > > + if ip route add help 2>&1 | grep -q -i End.DT46; then > > + check_and_log_hs_connectivity 1 2 100 > > + check_and_log_hs_connectivity 2 1 100 > > > > - check_and_log_hs_connectivity 1 2 100 > > - check_and_log_hs_connectivity 2 1 100 > > - > > - check_and_log_hs_connectivity 3 4 200 > > - check_and_log_hs_connectivity 4 3 200 > > + check_and_log_hs_connectivity 3 4 200 > > + check_and_log_hs_connectivity 4 3 200 > > + else > > + echo "SKIP: SRv6 End.DT46 is unsupported by the installed iproute2 version" > > + fi > > } > > Hi Alessio, > > Rather than inlining the check inside host_vpn_tests(), I think it would be > better to follow the pattern already used in srv6_hencap_red_l3vpn_test.sh, > where test_iproute2_supp_or_ksft_skip() is called before setup(). A similar > function here could exit the whole script with $ksft_skip if End.DT46 is not > supported by the installed iproute2. > > Thanks, > > Ciao > Andrea Hi Andrea, Thanks for your feedback, I will send a V2 with the requested changes. Kind regards, -Alessio