Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp478155rdb; Thu, 1 Feb 2024 14:26:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNwSEWtpYhEMYsEOLszA8ybd++A9qx68kr2xbX5KKmypOVdWwwzfM8Xiaqhqki9QV4taJh X-Received: by 2002:a05:620a:2903:b0:785:53cf:f9f0 with SMTP id m3-20020a05620a290300b0078553cff9f0mr249002qkp.10.1706826370292; Thu, 01 Feb 2024 14:26:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706826370; cv=pass; d=google.com; s=arc-20160816; b=wc8tcBYDx1KrlqmKCm8HPiM9aYeNZ3NbhBmTcnJ3pMYrZpGbgKAZOgeM+TvmRuICx0 be0DQ/RT+vwaosB7yWfXeE32gG5XNI63NDft3H5z30gf6w/6yAtdrtPSLn6YEYC9ly8x IyrAKlU4PHrTXdg9buZ+8hnbFqUkyC1Il00Zbpx47VLYiNabCidlfBnZiiXvX918rKOJ VVaEPFaWBwzBc1Jut99gOzqIXlWas52x3N4PxydKt4PSYUhOaRT/pvzTUNflJkwV/rm4 BmVCjzWiC7fN5UkCKPtVd0mQdEZqau0sXSBYwGyKdqes3yh23CgQbJyZddwS7GIAVSiJ MsmA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=c5OGPe8fMGrZiGY/WsI9iHz2kC7stVcrU+hI6G07cdc=; fh=zgs19uDAFM7t+JcVkv+nx4YWMSkaMVzWpelQ86GDziE=; b=1FDjmGdADqIbaE4TlbtKIX0e6zi9cR67ab3jCAyrirEa9ZOC/5Vllw+NSHVJq6Mwag 95SJhbWP6+f/X/a8oZ7ecVtk/V5w17H9qii6rV9GANLyLwI8MdYEZW8JBle5ta/osrKp hq2dXff4ZhTPrMBegcLGcCg0tOoK08C6YtbgJMCUJRzg5Yku1eMIxBVDmAjB/nRrdW4M G9ZQfO4C8x8qZEiuSmunLn8vSuuc/ktcv0+PX1/Ryt7QIXpMHnf5QEUVBKroQ6rZwNae pmm4yvJudHhbugLHhhHFqaOCBP5HIHqUlhR0z+06lhOkh8O8YM4l4hoB2HXXfn+/sCiI olHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=jIWCv5KV; arc=pass (i=1 spf=pass spfdomain=arista.com dkim=pass dkdomain=arista.com dmarc=pass fromdomain=arista.com); spf=pass (google.com: domain of linux-kernel+bounces-48940-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48940-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=arista.com X-Forwarded-Encrypted: i=1; AJvYcCUYeXyTVIF5Ouqnm2Knvn0bgbpxnRfaq9Ch16sR4Q6lo+SGS0HVkz9dd3ES7Db5N+g2QuC6szVwf9OuPcF304j2vPLTE0r85RLJQpuqkA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o13-20020ae9f50d000000b00784029b7e2dsi567375qkg.467.2024.02.01.14.26.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 14:26:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48940-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=jIWCv5KV; arc=pass (i=1 spf=pass spfdomain=arista.com dkim=pass dkdomain=arista.com dmarc=pass fromdomain=arista.com); spf=pass (google.com: domain of linux-kernel+bounces-48940-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48940-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=arista.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id DC1EB1C20DE9 for ; Thu, 1 Feb 2024 22:26:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DFCBD40BE1; Thu, 1 Feb 2024 22:25:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arista.com header.i=@arista.com header.b="jIWCv5KV" Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 3B8273FB34 for ; Thu, 1 Feb 2024 22:25:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706826356; cv=none; b=EKAR2QNBEA1/2AFi7u1fAhKaKS149rzEkLzkcGTuM4TY0r653Q7+dX/RZBwE24+NN8zl/9KzessmZ/MFhWMM5XH5OnIc8gcLTf1I/LvZkxSHtNArepp4FBD7sqHAIdNacY6H6xPT0m5N+57l+KZJO3lcrQMkW5pXEzLpWqUoTR4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706826356; c=relaxed/simple; bh=eWqkLADtb5bW5/KCLBfbk+adOyumfQDzQziJ/NBFwoc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=lpqEr1d/iULRCdVYLpkuIPZiFWVsLqt1o8LxMpNMlhqDUwySbz2VtLhLUIYyxaJyhslyj6u91zv2H181VJ1lsYIawU1Na451g2Uv0xyQGMZzhhmRUu6i76SWcQZjWkoHR/Cs3pfnsLBFgBwptnMQH4+4oBBJC6ovSeHTyPpAwaA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=arista.com; spf=pass smtp.mailfrom=arista.com; dkim=pass (2048-bit key) header.d=arista.com header.i=@arista.com header.b=jIWCv5KV; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=arista.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arista.com Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-40fc2e36eeeso5504165e9.3 for ; Thu, 01 Feb 2024 14:25:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=google; t=1706826352; x=1707431152; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=c5OGPe8fMGrZiGY/WsI9iHz2kC7stVcrU+hI6G07cdc=; b=jIWCv5KVbes7Dkqg2yfTU5zPEMLJFEt6cIm1V1hUmd+WiFk9qefcSRlucE6mYuQErA aq8XZCFz7mxeowi4v+YkYMy6g6chCjQZKG8nTkC/1t3NXhBNcYgvYUrclkGF0gbOGn8W HWsQXnIe814CRxw0d8FY9ZLgvQJvQTx5u8tZIVKqg7/Q531Ijpsscy/Ib05lrknm1/n0 ZmfGAPflejNTBcvOyx5MtiBPknrYJpZew4HnMmvWoetTVRwbLDbdtklVRzPUMFCuErSl KYn8JKyebl6zCLIJ5mOh+lE059JBV378ItOAnPXgGrXdPq0E30x6rzUkoFmBQdiNtyT9 Wckw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706826352; x=1707431152; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=c5OGPe8fMGrZiGY/WsI9iHz2kC7stVcrU+hI6G07cdc=; b=g3qLHQ/wq8mwW6U66FcHfpJL/0QwKzSeM/XZ6KDRr9u9lUFNFFx7z9WpCLGAIWMe8P Vz7m9hOmCIgTw+LEwCBSr7KY0l8CQNvM3m8e2d3peNUBWgvgy6jMHmlyyT/dKHAxqWYq WunxdCxWcHRM0SNwjpyoygtGfeASCs6qt6KzUMDhgpCXGoPcmuIul5z0cGwt/GmusLpj 2/Yofe9CWO0/qteqF15+FnvjBU2TyIjMWGhCqPKk4UDaPIV3SQaH3GkA7BRAOQXUZAVA F2X58R4VsEFu0OBevAdvENRiXmqKubSE6x8qkrWz9EmIPdg6qI85sIrCoOyr44qjHO+O 8SCA== X-Gm-Message-State: AOJu0Yx0FHCLVNCSrqr7dKSqvwuua7rz1lxJF8FYplPHENn1srnAZlpw xjdYU6AJioP+c2CAme9bB3PJcLNoBsD7ZWhEGUQ2WKwkIyWD3ncylnKRuyLyrA== X-Received: by 2002:a05:600c:5013:b0:40e:ce9e:b543 with SMTP id n19-20020a05600c501300b0040ece9eb543mr248751wmr.41.1706826352441; Thu, 01 Feb 2024 14:25:52 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXy2nimmidc/lYZx7u9YKm1nj46/fBI4e61H7l2395qPbs3tuoy2lL4ELsBGA4/o4wY7trYHkfLvvpzO/mAiDj1NDSpihDrusdKXVV5fV16aDBOydVQRlnaBlMpKQZLM8zIH39YheO/P7iCPw2HMZ+BKgWTfsOwUqOxXP1CyySXj8MyOyQsQBOhtOWt4FdtE5U5z7sS5n6bVYfXDZeMC/KoLQz4QtXSOdwk7zr/9GGNrPNAG1jNAyxcil/94qZgD3sJG7R52n7cauQuq10ac6qnLeEaOGcnMTpZWCh0/VKlLeU2wEzORYSlIsVnxqEtlgQfJ3P+Z3sR7N12v6/R1Mf/o7tYh6ZuK9WYz74/ Received: from [10.83.37.178] ([217.173.96.166]) by smtp.gmail.com with ESMTPSA id p18-20020a5d4e12000000b0033afcb5b5d2sm456479wrt.80.2024.02.01.14.25.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Feb 2024 14:25:51 -0800 (PST) Message-ID: <44d893b4-10b0-4876-bbf7-f6a81940b300@arista.com> Date: Thu, 1 Feb 2024 22:25:45 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/3] selftests/net: A couple of typos fixes in key-management/rst tests Content-Language: en-US To: Jakub Kicinski Cc: "David S. Miller" , Eric Dumazet , Paolo Abeni , Shuah Khan , Dmitry Safonov <0x7f454c46@gmail.com>, Mohammad Nassiri , Simon Horman , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240130-tcp-ao-test-key-mgmt-v2-0-d190430a6c60@arista.com> <20240131163630.31309ee0@kernel.org> <20240201132153.4d68f45e@kernel.org> From: Dmitry Safonov In-Reply-To: <20240201132153.4d68f45e@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Jakub, On 2/1/24 21:21, Jakub Kicinski wrote: > On Thu, 1 Feb 2024 00:50:46 +0000 Dmitry Safonov wrote: >> Please, let me know if there will be other issues with tcp-ao tests :) >> >> Going to work on tracepoints and some other TCP-AO stuff for net-next. > > Since you're being nice and helpful I figured I'll try testing TCP-AO > with debug options enabled :) (kernel/configs/debug.config and > kernel/configs/x86_debug.config included), Haha :) > that slows things down > and causes a bit of flakiness in unsigned-md5-* tests: > > https://netdev.bots.linux.dev/flakes.html?br-cnt=75&tn-needle=tcp-ao > > This has links to outputs: > https://netdev.bots.linux.dev/contest.html?executor=vmksft-tcp-ao-dbg&pass=0 > > If it's a timing thing - FWIW we started exporting > KSFT_MACHINE_SLOW=yes on the slow runners. I think, I know what happens here: # ok 8 AO server (AO_REQUIRED): AO client: counter TCPAOGood increased 4 => 6 # ok 9 AO server (AO_REQUIRED): unsigned client # ok 10 AO server (AO_REQUIRED): unsigned client: counter TCPAORequired increased 1 => 2 # not ok 11 AO server (AO_REQUIRED): unsigned client: Counter netns_ao_good was not expected to increase 7 => 8 for each of tests the server listens at a new port, but re-uses the same namespaces+veth. If the node/machine is quite slow, I guess a segment might have been retransmitted and the test that initiated it had already finished. And as result, the per-namespace counters are incremented, which makes the test fail (IOW, the test expects all segments in ns being dropped). So, I should do one of the options: 1. relax per-namespace checks (the per-socket and per-key counters are checked) 2. unshare(net) + veth setup for each test 3. split the selftest on smaller ones (as they create new net-ns in initialization) I'd probably prefer (2), albeit it slows down that slow machine even more, but I don't think creating 2 net-ns + veth pair per each test would add a lot more overhead even on some rpi board. But let's see, maybe I'll just go with (1) as that's really easy. I'll cook a patch this week. Thanks, Dmitry