From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4BC6C27C50 for ; Mon, 14 Aug 2023 16:30:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232885AbjHNQaB (ORCPT ); Mon, 14 Aug 2023 12:30:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232518AbjHNQ3a (ORCPT ); Mon, 14 Aug 2023 12:29:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8566FE0; Mon, 14 Aug 2023 09:29:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 221CC65218; Mon, 14 Aug 2023 16:29:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D344C43391; Mon, 14 Aug 2023 16:29:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692030566; bh=DNY59+l4eLHFd7cPF+IJT2wogfX2f9bA2o7xtjOlI0I=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=GXKkyKRjJrgG9ZKR4/KXM/ZQifAN3LmqgAJoTQwlcqp94JcyJIZogGfhJRr3yD56l 7S/JhwlMX+t9g1l4j04OKOiNu/sXlVUnksPsinCU7BlFH3flO5h/+inLouDz7Y1bpO VGyTuUg0V+uzdq6RD28Vzx7liNaFgq/k5tQ8OKR6Anbpc6QAK7BqoFvngM2GRMDJst yYo9S8r8j5Owfu9hs/Jq7gUwiGl+zUmH43+cdbvjs1mTutjgkQIPOddTewnFyAgUOm hlEs/nSOadUMNlkettYYJJkjXIsHjFs7qMZFyjtcgEaL6gAZ662gE7NmkhqrejY7JG jOWm+uADUauTA== Message-ID: Date: Mon, 14 Aug 2023 10:29:24 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [net-next v2 2/2] selftests: seg6: add selftest for NEXT-C-SID flavor in SRv6 End.X behavior Content-Language: en-US To: Andrea Mayer , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: Stefano Salsano , Paolo Lungaroni , Ahmed Abdelsalam , Hangbin Liu References: <20230812180926.16689-1-andrea.mayer@uniroma2.it> <20230812180926.16689-3-andrea.mayer@uniroma2.it> From: David Ahern In-Reply-To: <20230812180926.16689-3-andrea.mayer@uniroma2.it> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/12/23 12:09 PM, Andrea Mayer wrote: > From: Paolo Lungaroni > > This selftest is designed for testing the support of NEXT-C-SID flavor > for SRv6 End.X behavior. It instantiates a virtual network composed of > several nodes: hosts and SRv6 routers. Each node is realized using a > network namespace that is properly interconnected to others through veth > pairs, according to the topology depicted in the selftest script file. > The test considers SRv6 routers implementing IPv4/IPv6 L3 VPNs leveraged > by hosts for communicating with each other. Such routers i) apply > different SRv6 Policies to the traffic received from connected hosts, > considering the IPv4 or IPv6 protocols; ii) use the NEXT-C-SID > compression mechanism for encoding several SRv6 segments within a single > 128-bit SID address, referred to as a Compressed SID (C-SID) container. > > The NEXT-C-SID is provided as a "flavor" of the SRv6 End.X behavior, > enabling it to properly process the C-SID containers. The correct > execution of the enabled NEXT-C-SID SRv6 End.X behavior is verified > through reachability tests carried out between hosts belonging to the > same VPN. > > Signed-off-by: Paolo Lungaroni > Co-developed-by: Andrea Mayer > Signed-off-by: Andrea Mayer > --- > tools/testing/selftests/net/Makefile | 1 + > .../net/srv6_end_x_next_csid_l3vpn_test.sh | 1213 +++++++++++++++++ > 2 files changed, 1214 insertions(+) > create mode 100755 tools/testing/selftests/net/srv6_end_x_next_csid_l3vpn_test.sh > Reviewed-by: David Ahern