Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1250744rwr; Thu, 27 Apr 2023 14:55:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/A94jF/aANf8FZodJzorfy7Y5hs/Ll5WhbgbJusgcKPdfAAobZAfwAzhGHZy8ABNHiaZn X-Received: by 2002:a17:903:244d:b0:1a8:1f41:59ba with SMTP id l13-20020a170903244d00b001a81f4159bamr3525550pls.38.1682632556242; Thu, 27 Apr 2023 14:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682632556; cv=none; d=google.com; s=arc-20160816; b=euS9qkqI0xuJV0pO3nrwo1KQzdg0jq5D8LbuU2kLbnvY0hTEr2twet5/jzQnkZHyGY WiBvLzj/WfT2iU0Mu2oT0kCRXJmKM9p/9qYbWmfD13D6gOxJzX0kqeM6j1boC3ULORMg /FEUKByRXoNnu0L8M2NcNa+RwbHvtoQchPRUQmIOv9iM5NpBgKxljjwec96RU7dMTjfo 4yDZ4eWdPqXuzBjLiyn3i1BYLVwSMUIRWn2WK0r+u0W+G5vgNyxO/I/Ds/5/ZoIrvbmm PppjZbcu/WdB9WRWmyK2ebj3NQhtA5T9pAeKFzaqwp+Uc8i76ufLEBdNYuMIQQENjcqm 0GzA== 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=xgNr8XA5wcONi2MjfU7XWCjiJFR+F9qx+iZCnI9Q68g=; b=OF9gai0LifLV0CKLJhj0Zsy4/E1ALI8Kx5z5sZnp2qAUrBfc6Yp0CRNwKm6M+h+qUD 7JvFqc/7LJsTgv0bR9ljrNQQ8EgSkUVJF+iB24/w2Z9p8Mo4emIQe2BK7Xl/B7L/gbB6 D79zUAXJ+IPwKwamWlhdxBtzn6uyqf8kUCvtm9y0QIhd8cBqzgPqAMNV2pUIBOse3dYk IbCsSatv9mNOYc77oB9DkMLHFPoJ6Y1LD8niPRrFFAGI/gjHqJKmyxehVi9MNunpkl9A g62ImThq3MMCdd9n1e1G1RVbzqVEIEynmwxIY3CcljtCoMhSuHyso4wvDP5Adzur5Mjy zwag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="WD563Sc/"; 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 e2-20020a170902cf4200b0019937768786si20820803plg.290.2023.04.27.14.55.42; Thu, 27 Apr 2023 14:55:56 -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="WD563Sc/"; 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 S1344155AbjD0Vyf (ORCPT + 99 others); Thu, 27 Apr 2023 17:54:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344148AbjD0Vy0 (ORCPT ); Thu, 27 Apr 2023 17:54:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 529882D69; Thu, 27 Apr 2023 14:54:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E4FEA63FA2; Thu, 27 Apr 2023 21:54:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E5C9C433D2; Thu, 27 Apr 2023 21:54:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682632461; bh=5jyq9pCiWcfs3d6AHx9K4T1jjd8/Liwe3W5FVncTTcY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=WD563Sc/B5aCQDh6w4nraFRJhPwMDKHFvw05UZKotrhnaa1Gv+vRQCzI57YMon1lN nGHlqCd2L20afda2t6w2aMD63Ua/pXHdnRN6qj3++OK81r7ogAbxHn0uaYg95sgucf dYiiG6GQ+dcjZhCA1h3nKmaImDg1ofFulA/8D8wO+0CZV1FWmtuBIOuswsoI8ILYR2 wVyiJzzDO5EqXaUHNKWCFJ2lRgIfciZz5qpSzGMYY+eQDJ9VqONHtkmJA2Vd2lqAql z0UDUaGoa0J+f5fmxr6hLUVz5gRHEPWpilyQUPqkbaqARIuap9BCZQQ1VhpdAL9Lsl q0oIZFzOrja/A== Message-ID: <46a3adcb-856c-9f62-b31e-053ff92f9673@kernel.org> Date: Thu, 27 Apr 2023 15:54:19 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [net] selftests: srv6: make srv6_end_dt46_l3vpn_test more robust 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: <20230427094923.20432-1-andrea.mayer@uniroma2.it> From: David Ahern In-Reply-To: <20230427094923.20432-1-andrea.mayer@uniroma2.it> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.0 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_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 4/27/23 3:49 AM, Andrea Mayer wrote: > On some distributions, the rp_filter is automatically set (=1) by > default on a netdev basis (also on VRFs). > In an SRv6 End.DT46 behavior, decapsulated IPv4 packets are routed using > the table associated with the VRF bound to that tunnel. During lookup > operations, the rp_filter can lead to packet loss when activated on the > VRF. > Therefore, we chose to make this selftest more robust by explicitly > disabling the rp_filter during tests (as it is automatically set by some > Linux distributions). > > Fixes: 03a0b567a03d ("selftests: seg6: add selftest for SRv6 End.DT46 Behavior") > Reported-by: Hangbin Liu > Signed-off-by: Andrea Mayer > Tested-by: Hangbin Liu > --- > .../testing/selftests/net/srv6_end_dt46_l3vpn_test.sh | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > Reviewed-by: David Ahern