Article View: linux.kernel.netdev
Article #27239Re: [PATCH net-next v6 5/6] selftests: seg6: verify PSP flavor on the installed probe route
From: Andrea Mayer
Date: Sat, 05 Dec 2026 04:16
Date: Sat, 05 Dec 2026 04:16
39 lines
11110 bytes
11110 bytes
On Wed, 02 Dec 2026 16:46:31 +0800
Hangbin Liu <hangbin.liu@linux.dev> wrote:
> From: Hangbin Liu <liuhangbin@kylinos.cn>
>
> Older kernels (v6.0) can accept an End PSP route while ignoring the
> flavor attribute. A successful route add then lets the selftest proceed,
> and the PSP tests fail instead of being skipped.
>
> Read back the probe route and check that it reports the requested
> flavor before running the tests.
>
> Split the probe into check_kernel_support() so the follow-up End.X
> tests can handle probe failure independently. Keep the existing
> kselftest skip behavior for End.
>
> Signed-off-by: Hangbin Liu <liuhangbin@kylinos.cn>
> [snip]
> -test_kernel_supp_or_ksft_skip()
> +check_kernel_support()
> {
> - local flavor="$1"
> + local action="$1"
> + local flavor="$2"
> local test_netns
> + local policy=()
Style nit: policy is assigned just below, so the "=()" is not really
needed. Just something to consider for a v7.
>
> test_netns="kflv-$(mktemp -u XXXXXXXX)"
> + policy=(action "${action}" flavors "${flavor}")
Reviewed-by: Andrea Mayer <andrea.mayer@uniroma2.it>
Thanks,
Andrea
Technical Details
Message-ID:
<20261205051607.b335121a042af3a6a48c8ef7@uniroma2.it>Path:
mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer05.iad!feed-me.highwinds-media.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377825-linux-kernel-netdev=dewy.ruReferences:
<20261202-srv6_flavors_endx-v6-0-4e50b828e702@kylinos.cn> <20261202-srv6_flavors_endx-v6-5-4e50b828e702@kylinos.cn>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer05.iad!feed-me.highwinds-media.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377825-linux-kernel-netdev=dewy.ru From: andrea.mayer@uniroma2.it (Andrea Mayer) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v6 5/6] selftests: seg6: verify PSP flavor on the installed probe route Date: Sat, 5 Dec 2026 05:16:07 +0100 Organization: Usenet Network Message-ID: <20261205051607.b335121a042af3a6a48c8ef7@uniroma2.it> References: <20261202-srv6_flavors_endx-v6-0-4e50b828e702@kylinos.cn> <20261202-srv6_flavors_endx-v6-5-4e50b828e702@kylinos.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="2951223"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:h3ac8z+LX2asVbfdroF5vx3XdmY= sha256:jgnim7H8hHD1oPVV752U2GQcTkyTRz9K+PoHTLJS0Ws= sha1:9K0asEq+gJcN7AN5lQbfic99rPg= sha256:ASjsJ0o8xia0JJT4TPONRt7uypDP9D49/FL8ZXvT+Rw= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 166BB117A03; Sat, 5 Dec 2026 07:17:07 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -4.399 X-Spam-Status: No, score=-4.399 tagged_above=-9999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, MAILING_LIST_MULTI=-1, NICE_REPLY_A=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=uniroma2.it header.b=laELZqBU; dkim=pass (2048-bit key) header.d=uniroma2.it header.b=YMwlXvxk X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XwZmcrqKY0CD; Sat, 5 Dec 2026 07:17:00 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-377825-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=uniroma2.it X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 4D5BE116DB3; Sat, 5 Dec 2026 07:16:44 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 864F62A1F2; Sat, 5 Dec 2026 04:16:42 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796444202; b=Qkbks/ik/HYo4cwCqVjnPPQUVrIHeFgJ0z/Ha2WG1jMUy5lTolQytP73BTAJJDrix+OI JBXEcNY5V18gjjqB56f2UfOJCJ1zOuw9L6PsumcL0V0hHkY+fY10tIbqV3QXajLl2imQM QlEIQm0pZB+X3T1t2iR8Tx9HJEHItWdyuxxRUkdsi6NEjPv+FrMoPiU7Mh5SJQ+DwKi9S OfMiix8VjsA+TYy2OUGJ7iCNE9qAZRq/o3QOe5Knrd3psJLG4Dl9BG1DL7YpL5MbIJakj nHMbmPN68HWDWXtYNpAfGJPwBssieEkg75iv6R6kVFiNpupd+RGhRZ0BsuV0C9QY6Rg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796444202; h=X-Original-To:Received:DMARC-Filter:Received:Received:DKIM-Signature: DKIM-Signature:Date:From:To:Cc:Subject:Message-Id:In-Reply-To: References:X-Mailer:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:Mime-Version: Content-Type:Content-Transfer-Encoding:X-Virus-Scanned: X-Virus-Status; bh=ikrb1wJZDlyvKMD+ap+Z7gB4nO6lBi8N7Hx147y56FU=; b=oyvQyntHy1G746MMWvdFDvj44gw/sCOxlIbwDJUT5Y6/MedRYeV4k1D+EU87u/k6/++J L1ylGPgBI7XqQu/EjZDWZEI/i6rSQIO1W1ijlEqnyVm0FzfsyGIjr5nAGZnYallv4Dqkg vKgDydg6FZGqjN+Otrr9CiBWQai0qzOlmyhQ+ZVVpizxpN6eQweWRslb5sKcAxpCyvyRW 7hkXaox0PdxPtUvuQcKUZLDkskdbCv6z3gmMDz0FoE55ZDpwQIdn0j1X1aOFLPdJ19gQY BQWaYaQGjg5K3H2VEtGf1y+1zyTf+QnYBz9oxJTfFj1Qv09mGKc1NSOfEP0OEmjZOqw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=uniroma2.it header.i=@uniroma2.it header.a=ed25519-sha256 header.s=ed201904 header.b=laELZqBU; dkim=pass header.d=uniroma2.it header.i=@uniroma2.it header.a=rsa-sha256 header.s=rsa201904 header.b=YMwlXvxk; dmarc=pass header.from=uniroma2.it; spf=pass smtp.mailfrom=uniroma2.it; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49791606A32F; Sat, 5 Dec 2026 04:16:42 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass header.d=uniroma2.it header.i=@uniroma2.it header.a=ed25519-sha256 header.s=ed201904 header.b=laELZqBU; dkim=pass (2048-bit key) header.d=uniroma2.it header.i=@uniroma2.it header.a=rsa-sha256 header.s=rsa201904 header.b=YMwlXvxk X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=160.80.4.32 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796444201; b=NYKmKDpg34F32XE4nMTY75iMe581vBETMWYirroKYb4QeuXE1cr5i2yKlZjOF0RABP0W unGdRicHacGE9Aog/zaTbFe4phfoFrGpnC0eikkDqABszfC9lV1arYNaRJszCJVW6AIQK s0B0ZfjMNH3ujeE0TIvgtg1Vkwdp33rX+8eD5weapqGcOIt/tcbqfd6KdwYj7skfJ30JH xTqRCdlmLug9uXJdSOlYk8Qb0lQ3HS2RJ1yux7YcLcOCQ4+5/F80xWyZgKcFPge6g5Kp/ 3sEm+krCcOc1PkfMQujALZ2JR/MQyPYhRo1IUj0/fGVuaWpPjJ5ezAmITNgoKbSBlTA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796444201; h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature:Date: From:To:Cc:Subject:Message-Id:In-Reply-To:References:X-Mailer: Mime-Version:Content-Type:Content-Transfer-Encoding:X-Virus-Scanned: X-Virus-Status; bh=ikrb1wJZDlyvKMD+ap+Z7gB4nO6lBi8N7Hx147y56FU=; b=pdYeP+2cZdPvkHnl0n/rFrpViGMgmsokyrxZ1oN9BMq63pDV7NLEZLVoR7IdPVEI1dLM qZWa+MAyJlod74TnWKS6xv4Bl3Fq6EwLD5+UnCzIYdgu9PKxq1h/29hLnKheXUAdKdR4L ABKYEBuCvAQqCXrwsMh6UaNmOqTY9/8xG+8QynYVM6yBm5IbQyC9zOZq56rtT869/euKp UqO/LaFtDx8ln16+BkqsyJrywjpCzHP1YzJ12tIq9EY8hT22gq++rbOXLue6izgLZBxNU c3JyeYhxiOftsAh+v48/z6bWBcE/60PmMtVRbJ3G4mpManucELd+SCaY2g9FF/Yz2qQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=uniroma2.it; spf=pass smtp.mailfrom=uniroma2.it; dkim=pass header.d=uniroma2.it header.i=@uniroma2.it header.a=ed25519-sha256 header.s=ed201904 header.b=laELZqBU; dkim=pass header.d=uniroma2.it header.i=@uniroma2.it header.a=rsa-sha256 header.s=rsa201904 header.b=YMwlXvxk; arc=none smtp.remote-ip=160.80.4.32 X-Received: from smtp.uniroma2.it (smtp-2015.uniroma2.it [160.80.4.32]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 995A6606A330; Sat, 5 Dec 2026 04:16:39 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 995A6606A330 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uniroma2.it X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=uniroma2.it X-Received: from smtpauth-2019-1.uniroma2.it (smtpauth-2019-1.uniroma2.it [160.80.5.46]) by smtp-2015.uniroma2.it (8.14.4/8.14.4/Debian-8) with ESMTP id 6B54GBxZ009486; Sat, 5 Dec 2026 05:16:16 +0100 X-Received: from lubuntu-18.04 (unknown [160.80.103.126]) by smtpauth-2019-1.uniroma2.it (Postfix) with ESMTPSA id 6FB4712287D; Sat, 5 Dec 2026 05:16:07 +0100 (CET) X-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=uniroma2.it; s=ed201904; t=1796444167; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ikrb1wJZDlyvKMD+ap+Z7gB4nO6lBi8N7Hx147y56FU=; b=laELZqBUrTfWT9Pn1VZzwOr1lKkqenbc9bV03lsmBfU8Cn5XkXjkQkLlVWZls5Ybe1eNly 4potNyKmtsRUICCw== X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniroma2.it; s=rsa201904; t=1796444167; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ikrb1wJZDlyvKMD+ap+Z7gB4nO6lBi8N7Hx147y56FU=; b=YMwlXvxkUPoghaA/MNOEOOZIq//7Nq86L3zfwWNHriT4NR9EPsrYSX6g2rnp94xT+pUqS7 ulXOCEjljYOI4mTgU4w5aC/YoCgIBEiJTCIfgXpvn7lIkFWpdM2KoDnIgjUKKtAnlP8GxR iE4sTBpjiGT/50SiY8dGCrOR9Z7ZpITO6toNmfOyaDUyO8KCf+hfHRVTnxEelOqf1h0Ma9 7sOAmpXblgPfwHc4lZrMh60WEF0ov1dSdjR4/lCDXuCVj3KCsbrik9FwpgAA8xQ/GUoftB IU74RGH9cqVWZDftN5byTBq/Ch5DJ0n2tJiOs4WnrNHBaURFHBDqPNrtjVqbiw== X-Cc: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Shuah Khan <shuah@kernel.org>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Hangbin Liu <liuhangbin@kylinos.cn>, Stefano Salsano <stefano.salsano@uniroma2.it>, Andrea Mayer <andrea@common-net.org>, Andrea Mayer <andrea.mayer@uniroma2.it> X-In-Reply-To: <20261202-srv6_flavors_endx-v6-5-4e50b828e702@kylinos.cn> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-Virus-Scanned: clamav-milter 0.100.0 at smtp-2015 X-Virus-Status: Clean X-Received-Bytes: 10913