From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=160.80.4.32 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== 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== 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 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) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 995A6606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uniroma2.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=uniroma2.it 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 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 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) 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== 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== Date: Sat, 5 Dec 2026 05:16:07 +0100 From: Andrea Mayer To: Hangbin Liu Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Hangbin Liu , Stefano Salsano , Andrea Mayer , Andrea Mayer Subject: Re: [PATCH net-next v6 5/6] selftests: seg6: verify PSP flavor on the installed probe route Message-Id: <20261205051607.b335121a042af3a6a48c8ef7@uniroma2.it> In-Reply-To: <20261202-srv6_flavors_endx-v6-5-4e50b828e702@kylinos.cn> References: <20261202-srv6_flavors_endx-v6-0-4e50b828e702@kylinos.cn> <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: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.100.0 at smtp-2015 X-Virus-Status: Clean On Wed, 02 Dec 2026 16:46:31 +0800 Hangbin Liu wrote: > From: Hangbin Liu > > 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 > [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 Thanks, Andrea