Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp89377rdb; Mon, 14 Aug 2023 10:17:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFtyE1E4jL3JpjzZR7RVNwKuGgnIjkDVRoZDNQi0BiBxgc49dkK9zwdD0LJQiF1kOvu05UM X-Received: by 2002:a05:6a21:3286:b0:140:a6ec:de6b with SMTP id yt6-20020a056a21328600b00140a6ecde6bmr14650502pzb.51.1692033420583; Mon, 14 Aug 2023 10:17:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692033420; cv=none; d=google.com; s=arc-20160816; b=G6r5u+Z5BT0AtfjZfJY5EyPq1FoWEW6JxFjtaKF6ney7zmOgKud0LtyHLZ80rL0vMp 0Wh7GQ7wUp8QteJeDBYxb2DK2Aq50Ln3DpVo+frDm0eS3aoDBHU0pR1Nxh4nsK9Enbaw loZFD5XqCK2T+FYd4F1gm/xVSygoIbvIaS4kvLxLv7GfztTogt5poo0sM4+VlwmSxzy9 CWCzpmx8DK4XVMmp0EL882r4CNzP1YfhYumkkitybfhQNqcRif+SjKdd7rywfRnqHcaA oClu/Jy9pdASl5XxAPE91YWPXiLR4HEWqbK3Z57lLUo4JpVrrk2oiO9+lQDFg/yBaSBr rX2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=c4Apz3TvQElNqk4Z5Y5dLrQTz22DVTjBwlwVRO2Louk=; fh=6MJbBRVegF0PcbQCxFd5vTMEVzjDFXhLECtPKWACNRY=; b=OBV9cZXDIfKzQp2ptSTsLyGwlu+G8exagbtCl39dAhCWBu8xItOfxJVPS5UQQF7wbq rwgIw3zP36RhfD4Azt9W4Rp60fsbkD4bUUvJtaiLBUeQ7eL9TyaHqec2Jf9eOAN4oirC NwSgJaKoXQC6Gnmt+WtQeyMgBzzCx9uuxuR3B0TMWj8+Cfj7MGwu8NEH06/5WhA1e/it KGExEfDKi2ZGxM8ZDz+KoYvAuX3mskZHhpI8MKpfC5srk/u1XKgs4H9Ixc5rDy1H5lFh HWRy+aH+tiAOEMk5N2/drBXzE+bmz4XXMKtjFuLtdveA8jiFWk6j3OUSFEIk+++HUMpN HQrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GXKkyKRj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020a6568cb000000b005653cdf711dsi8312846pgt.854.2023.08.14.10.16.33; Mon, 14 Aug 2023 10:17:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GXKkyKRj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232870AbjHNQaA (ORCPT + 99 others); Mon, 14 Aug 2023 12:30:00 -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 X-Spam-Status: No, score=-9.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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