Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1184282rdb; Fri, 19 Jan 2024 10:38:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHb76hnvIoAIDJJf79ZTmfrko4s428ht2NqAODNcKXEEmnhYteUpjTJb9qq/e+bkpZzXGjk X-Received: by 2002:a17:903:11cf:b0:1d5:6b6c:1a0f with SMTP id q15-20020a17090311cf00b001d56b6c1a0fmr296500plh.30.1705689492093; Fri, 19 Jan 2024 10:38:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705689492; cv=pass; d=google.com; s=arc-20160816; b=ft6ACCe5+ToiWMTW12RejCKmOeuOLr3dDaBnPA1uC3NBBY5Yx5q7Oo4osq+JzAUCXo j+lLnrcoTeeRT+2yA63pwb1xuFW6nmrxxUbuWFQawxQshwNE5yFG+skbR/Ycm2wJc9RY u33kjzaWZrh5K1/poLmpB3KgHs+L9dzLxdSc5mXhLT2pcso+nbejIUaD2+lwkgxyV64U /4rAWBG/k87Xob05bgUNHBG02N14pwHcvxHl9zsILafNj9/nANHWb9NCQebBm+DCrnoj pEId/0NCAT8ROpUWTfCTmtlOnQpGC9P9vg9HWzv3H/L3lxZmp3TCdD6V7uq9Q3zy9+cj Q/LQ== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=0bAylKPD/2AUXEJVvzIJSovCcFzQteP7UpA1x2mx61w=; fh=cubqSoWygNugP8DsRoqQGvkHlnJ8EFqvNzSdASNmrjY=; b=LVmUFpBSO8XNuGBUWP8y1L6GmVEJRDSy/FZ/lD+2i7LvJdh5Q3Ey7u9W6wk6J1XMxK jZoi8rdvJnulrd1zZK5MCZ39+Gsd71x40zw5qilU4GEuoOhE25Zi9PkSt+DyI+atf5pK 5fKbM2Yr6ZVc+o76uSmCb9PKao8mOvhUbyNm14jhVuxB/ISacmVjfA65SzNDKqmZ0DZ9 HeR1/nRHPftbmKT+ZOkvc8oUbBvaUvOqE1xCKy+LK3xRy4ikuMHgB8IJVQsugExZeE2v unCG3fQDbB/LJsFGPloWwkS34ezDnVVkiuAwm1wDwH+pgvnWX5SyNm6oHqlsxYvanOl+ cI+Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=NRPwmz8K; 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-31493-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31493-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=arista.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p21-20020a1709028a9500b001cfdbd5fe0bsi3623239plo.551.2024.01.19.10.38.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 10:38:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31493-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=NRPwmz8K; 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-31493-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31493-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 221A3B23301 for ; Fri, 19 Jan 2024 18:35:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 945C74F60E; Fri, 19 Jan 2024 18:35:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arista.com header.i=@arista.com header.b="NRPwmz8K" Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 57153200DA for ; Fri, 19 Jan 2024 18:35:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705689315; cv=none; b=UzCUVjLeoFB1ohSmvArieKZOk7jFzXHk1Li78K0Rhkt8k0m/6XB4QGMdSwojMphZbl5u0B/C3o1hlw0wYnv3c4NO9M1vSRUawC+x1fdNt0RA5O7bhDJRfIcWigRWPc6vAlnNy4xagL9h+tJ8hOhJAPjNJI5ov2SeMKdxQz7/nhM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705689315; c=relaxed/simple; bh=xuCFgyn4cz0wIPZBSCrD3dL2scimn4xxXHNjvci2OOE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZfpediIjz0ecls+31mgdMl1QPakuiqSQdnwItLfgNjvgite1g3Tq/WwtSmO+KhdFYWPqQSDAJKW7ZlhwtUxTjzPMNKvP3vXzLFmEawfKsW6ud0YQtB4BXo7EqKN0I2D1MSu8FAIVEcoflj2gRcpl7SsPOUmAFIBeEv5iuEOmIak= 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=NRPwmz8K; arc=none smtp.client-ip=209.85.221.41 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-wr1-f41.google.com with SMTP id ffacd0b85a97d-337b583453bso990034f8f.2 for ; Fri, 19 Jan 2024 10:35:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=google; t=1705689311; x=1706294111; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=0bAylKPD/2AUXEJVvzIJSovCcFzQteP7UpA1x2mx61w=; b=NRPwmz8KWOGYdUHpGk74fx2fq9BfCUYTrQq/A3zT1adsIaHy0p1Nt2xBEp3V2XCq66 M9kp5FhgJ58/LorqW9IrGhk2pRnnLHwh5ontQq5sEcC0A7VxxkoR/H9qeXP6rWrsT1I4 HhFFP2PLjl3qSdrwW8XBgRuD0piEPjTlSl7dZ1+o49PuiLNPLcuIEyWr0YNW2W+gWxYZ dX1SK7Mhw6PTaBj7izRtM77xgDkAnrVsmspsPdm0PsDQFpd7t4lBXeepLyLnpxzaNJQO blWV9q2U+C1tWnzx3lQ2ngoby6vA8NUXEeWUGLDFug1A21I9Ar88eFcyPIOZQMQD9YnL ZoUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705689311; x=1706294111; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0bAylKPD/2AUXEJVvzIJSovCcFzQteP7UpA1x2mx61w=; b=TDVpK3MQh/KemvKBz4GTldceFQsUnaq1WGXLiKMIzD1GYem+i5DtOvYqcep87P3Hxe Hqym1Grf9XTwByJ/xzXqy5xU1jYuFCMStpyPwa0C6jvAYAihxmDIJrX7uHEPgUzh3iF4 YxDf760y0bB6As31VS7EF5bHZVsw0IpP7JwoWt+qsJlgJtItRqj/CcXBe/Fmd1ymBR6B 82jXyTE91fkluqe9thZLqNLKHcXxrmYSKPflfVRe1qTY9PFAJke70tzRFM/mygLlJvmQ JQF+b25zlOJorvyYH8cwkwRrg/9YWKMiyVZ00Y6aKD3SeyLPrskHhAP9/ev/mveGqWpm PI8w== X-Gm-Message-State: AOJu0YwV89Rmg66IPDRCI33MBBnGFO4XjO7TlhqRulVreAWuuD+LBu8P JldVLAOkpi4Xgl0WdPYgvjMG6ifF1HYO2d1phweWalP9THDP3l/xs5yF68aqMg== X-Received: by 2002:adf:f20e:0:b0:336:c4c1:2d7d with SMTP id p14-20020adff20e000000b00336c4c12d7dmr63401wro.60.1705689311453; Fri, 19 Jan 2024 10:35:11 -0800 (PST) Received: from [10.83.37.178] ([217.173.96.166]) by smtp.gmail.com with ESMTPSA id u11-20020adfa18b000000b00337d2d1e0ecsm4362582wru.104.2024.01.19.10.35.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Jan 2024 10:35:10 -0800 (PST) Message-ID: Date: Fri, 19 Jan 2024 18:35:08 +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 1/3] selftests/net: Argument value mismatch when calling verify_counters() To: Simon Horman Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , Dmitry Safonov <0x7f454c46@gmail.com>, Mohammad Nassiri , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240118-tcp-ao-test-key-mgmt-v1-0-3583ca147113@arista.com> <20240118-tcp-ao-test-key-mgmt-v1-1-3583ca147113@arista.com> <20240119162652.GG89683@kernel.org> Content-Language: en-US From: Dmitry Safonov In-Reply-To: <20240119162652.GG89683@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Simon, On 1/19/24 16:26, Simon Horman wrote: > On Thu, Jan 18, 2024 at 02:51:34AM +0000, Dmitry Safonov wrote: >> From: Mohammad Nassiri >> >> The end_server() function only operates in the server thread >> and always takes an accept socket instead of a listen socket as >> its input argument. To align with this, invert the boolean values >> used when calling verify_counters() within the end_server() function. > > Hi Dmitry, > > I see that this is correct, but I am wondering > if it fixes a user-visible bug. If so, could > some text about that go here? Yep. The test as the result doesn't correctly check tcp counters for non-symmetrical scenario, where peer-A uses a key to send data, but peer-B uses key to send its data. So, in simple terms, different keys for TX and RX on peers. I'll send v2 with an improved patch message. >> Fixes: 3c3ead555648 ("selftests/net: Add TCP-AO key-management test") >> Signed-off-by: Mohammad Nassiri >> Link: https://lore.kernel.org/all/934627c5-eebb-4626-be23-cfb134c01d1a@arista.com/ >> [amended 'Fixes' tag and carried-over to lkml] >> Signed-off-by: Dmitry Safonov > > ... Thanks, Dmitry