From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E794C3A7195 for ; Thu, 16 Jul 2026 09:46:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784195180; cv=none; b=t2XHBTCEDpEL0IA0AJ6CeuOPXjzPiihBJVkkoazm4wNZll58B8iz5YYvbQ+HmD5Ww/nOPoP/tLgFM09eDcnrZ2ppoiQHTR7Zj7i+hUr+FdpVbHf2aaqBAhuHnGFY4jfBzLW6SXtd8qPQUAxr7PSh9H/DdgWnVdHpoM2aktX+5hI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784195180; c=relaxed/simple; bh=xVT23QRkqhJ4KVE6Xjupxflg0Om9cDeSJhRc8LkXLOM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jiVP+lvkbddqvz/9Yag/OWS90tL02OE1seqMqzmv8iTu/MDa9uBNYCnZyXv9GkzOVepygNfbc/VYmaTFra8YV6heaK5+onR8UiO0KszRmVhbZQW/BaBUJvwvx9DZrfXpEJpE4OgqhZczS6lyqhSIfwABPLZLRFavbFql2TGifTQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=6wind.com; spf=pass smtp.mailfrom=6wind.com; dkim=pass (2048-bit key) header.d=6wind.com header.i=@6wind.com header.b=L6cViECS; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=6wind.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=6wind.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=6wind.com header.i=@6wind.com header.b="L6cViECS" Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-69e0f4eb4ecso371736a12.0 for ; Thu, 16 Jul 2026 02:46:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; t=1784195177; x=1784799977; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:organization :content-language:from:references:cc:to:subject:reply-to:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to:content-type; bh=KTxkaZPHUXOJmJBzLSBM+27rd0POVSJE0Fpas4J7vAQ=; b=L6cViECSmyGEaWsbZQNXFOQ3cErfZtQGeow/R/n5cKPpg6Ggp6dz9gkPKzLq9dZiU1 Lpw5YilP4ASXTUnZglymBmI6OLQkfYK6lRWxoug2TO4sLJFHyj8gyDJCGqdulFbK5EQa M/T16pl7M2jyS5hr4doIMPuPam4Xmv2CiF3QHbOtIU5ZZuLs0/eMCXNHfLWdaVgP6+Qe xFzHj7fubuy5wr6/+x4kWnAUBQnQYpW6eiNktifwTkMnIXyIxcUF7GHa1oiE76CtfOlg 9pVEFduOFocY81D3UidfVH8MlGuK7b+tmkbX+CAW5106k38ZXhGq8eY8aXUcVJnj9vtE jgaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784195177; x=1784799977; h=content-transfer-encoding:content-type:in-reply-to:organization :content-language:from:references:cc:to:subject:reply-to:user-agent :mime-version:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=KTxkaZPHUXOJmJBzLSBM+27rd0POVSJE0Fpas4J7vAQ=; b=YdZT5o6Zx+znqTj1LmMmbiFoLI71QzFSoNdqcdfPocHpGNFH6ODUpomsK3v7Tt+Wbb 3M2PwTC8pq9F9OVFVs3+uicC4SeSYT4He03AhJE0OAV89MgxcOUw7UHSxmt1CQYYm+TL PYc/j9wyXzxUfKIDj6uoxppiDnY0xz1k26YNexdSht+Cg9Vbu/QnSdSM/Qzyvucm+HF5 1UJT019kPXRBiPbR/HDDm1YVB0tJjZO6qj1MuYP/xXxCfN+ynKVUfnJFJpsWHHE8VXza NsPp2KE93+11VKfP0MOH/FWv12ga5Rkk5NLz9qNRnl1rr4w/g7KnorEalTpN6hHGsuNF ihkQ== X-Forwarded-Encrypted: i=1; AHgh+RorTVKUiPHOpZ9C+p43CKLJpsWq2+vvZVyWyV6QyihtAXx4V+NDQNy15dKpPbjLkAwQqAmFObCELw1vucE=@vger.kernel.org X-Gm-Message-State: AOJu0Yyp/4Z893FCnE82X2attHVMhJrksu+//s/81/UPfhVZ7XT6wSLv scqrZ4GThCtv3jX4n+giMOydGxvTEo+QYjTpqyupEVQ4lmMXp+UuJcm/i+LN7Kgj0Kw= X-Gm-Gg: AfdE7cmML8LcGVvxjLdIEGBwkg3zoAdDaom0CALsbtsUjQ6cEcOHrgb6iiryxF/GRa6 nnyV1iSzdXKIQrVLntJQ2RjQG1mTy0hHu9bVvXHW9JCbjdIWv3SL+HN6bO2ven3DKkM87Oga4Tr m2D5atWH2d2SNOED+OqLQwTGxhGGpysrclap/NCR+S11KnL31lg6SPKmu03O//hTELJ/QqdovCN 85K8sNMzWbiNvNt0YAptpB2VwhUEPuijd2034dR9MMn67CUdaNNk+tR848w23Dw0LkDRcDTm9Xu 9GML+RAPzFmZ0lAeS151EGneDEA96b9OGUt866yed04wC0wsONYj4d3/dDc7B0S1XAUl9SRkGuC z8kbr0Z/nqrB3W/nbU0yUo802+pY7HZXxjkcRenm/5344OzkBaP3eiON27qDT/tBPVkVY4MxhO+ JnWQ5zqD6v02O79n+dy0nzpyV0CfhhSL5021XEU+PA6gnPMexqKxNTZ50= X-Received: by 2002:a17:907:3e21:b0:c16:1290:11a7 with SMTP id a640c23a62f3a-c161e923432mr637290166b.1.1784195177041; Thu, 16 Jul 2026 02:46:17 -0700 (PDT) Received: from ?IPV6:2a01:e0a:ab7:2110:6a1d:efff:fe52:1959? ([2a01:e0a:ab7:2110:6a1d:efff:fe52:1959]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c16871262casm175544166b.6.2026.07.16.02.46.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Jul 2026 02:46:16 -0700 (PDT) Message-ID: Date: Thu, 16 Jul 2026 11:46:15 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: nicolas.dichtel@6wind.com Subject: Re: [PATCH net-next 2/2] selftests: seg6: add test for post-encap SID route lookup To: Andrea Mayer , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: David Ahern , Simon Horman , Shuah Khan , Justin Iurman , Anthony Doeraene , Stefano Salsano , Ahmed Abdelsalam , Paolo Lungaroni , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260711162907.6521-1-andrea.mayer@uniroma2.it> <20260711162907.6521-3-andrea.mayer@uniroma2.it> From: Nicolas Dichtel Content-Language: en-US Organization: 6WIND In-Reply-To: <20260711162907.6521-3-andrea.mayer@uniroma2.it> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le 11/07/2026 à 18:29, Andrea Mayer a écrit : > Add a selftest for the SEG6_IPTUNNEL_TABLE attribute, which selects the FIB > table for the post-encap SID route lookup. This looks up the route for the > first SID, the outer destination of the encapsulated packet. > > Two routers provide L3 VPN services over an IPv6 underlay. Each router uses > a separate VRF per tenant, with default blackhole routes (IPv4 and IPv6) > that drop unmatched traffic. Tenant traffic is encapsulated, then > decapsulated with an End.DT46. > The encap routes are installed in the tenant VRF, but the routes that match > the first SIDs live in a separate underlay table (500). The "lookup 500" > attribute points the lookup there rather than to the VRF. > > The test covers both the input path, where forwarded host traffic triggers > encapsulation, and the output path, where a router originates traffic from > its own loopback inside a VRF. > With the "lookup" attribute, traffic reaches its destination on both paths. > Without it, on the input path the lookup stays in the VRF and hits the > blackhole, and on the output path it falls through to the main table, which > has no matching route. > > Signed-off-by: Andrea Mayer Reviewed-by: Nicolas Dichtel