Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8011F27446 for ; Tue, 10 Oct 2023 15:21:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="g34fVlju" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B3B0C433C7; Tue, 10 Oct 2023 15:21:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696951288; bh=V7L1P+EZAtwdElzEwCGdF7YC48NTaOOFglzR1FdvmzQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=g34fVljuX4kOTXEop7zYvN91Z9/vKbmPqqSwEWORPb9Fju1zboNr/YIyujP9fLqYt f6XAMeuVM1hPAzOwcQu/TQ5Pokj59WN+LV+bldPQ/HkSBY4zcLhLjhg/mWs7y6IdVQ 2gmOtUcX18tzbikqhgSAqG1uAqzAhq155NDEH5D4h54i8AFRnTzo7b62poxev5YzjE D70dgUxDbICIVoMzm2MB0ws0EoVkxu/y7leBOy4RAE/NG5jTKx6hQ2P3T5Jb5Ttc5m SvtyMmYivHsnSArykDPtLfY82ZSIf4iJpHtPskhfZ4Dc2+gabUlTTDCb7xtaUKq/jn dtu4hBzFx8Wrg== Message-ID: Date: Tue, 10 Oct 2023 09:21:26 -0600 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH net 1/2] selftests: fib_tests: Disable RP filter in multipath list receive test Content-Language: en-US To: Ido Schimmel , netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, edumazet@google.com, dsahern@gmail.com, sriram.yagnaraman@est.tech, oliver.sang@intel.com, mlxsw@nvidia.com References: <20231010132113.3014691-1-idosch@nvidia.com> <20231010132113.3014691-2-idosch@nvidia.com> From: David Ahern In-Reply-To: <20231010132113.3014691-2-idosch@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 10/10/23 7:21 AM, Ido Schimmel wrote: > The test relies on the fib:fib_table_lookup trace point being triggered > once for each forwarded packet. If RP filter is not disabled, the trace > point will be triggered twice for each packet (for source validation and > forwarding), potentially masking actual bugs. Fix by explicitly > disabling RP filter. > > Before: > > # ./fib_tests.sh -t ipv4_mpath_list > > IPv4 multipath list receive tests > TEST: Multipath route hit ratio (1.99) [ OK ] > > After: > > # ./fib_tests.sh -t ipv4_mpath_list > > IPv4 multipath list receive tests > TEST: Multipath route hit ratio (.99) [ OK ] > > Fixes: 8ae9efb859c0 ("selftests: fib_tests: Add multipath list receive tests") > Reported-by: kernel test robot > Closes: https://lore.kernel.org/netdev/202309191658.c00d8b8-oliver.sang@intel.com/ > Tested-by: kernel test robot > Signed-off-by: Ido Schimmel > --- > tools/testing/selftests/net/fib_tests.sh | 3 +++ > 1 file changed, 3 insertions(+) > Reviewed-by: David Ahern