Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1614278rbb; Mon, 26 Feb 2024 15:52:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVWnl0FaLm/ZQzZs4vVVfV/P3E4r9BxKPt/p67ysXFC9lAmSkQlN2nmx61AnKSiJO2fU8/KHONkThyiqz2ysa7zW5/8EKnTU6O8LLYs7g== X-Google-Smtp-Source: AGHT+IHv+QIj+2PQBX9f5rQwYrY+c991VkNBTQRNcJjwIL/i+Nay8NWCgVKteCm1GMEuY1Sd789c X-Received: by 2002:a05:6870:1389:b0:220:1d9a:946c with SMTP id 9-20020a056870138900b002201d9a946cmr2532667oas.52.1708991531382; Mon, 26 Feb 2024 15:52:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708991531; cv=pass; d=google.com; s=arc-20160816; b=SVMdfqwuDDv2JdahXtYQhUBMlKTje7S/L/BIyzF1NNrRb/BUWStEn2XBXveOVuZg5y 2wS6FocPsJRFkhzGOfuLyQKxL2RRrfK8H4d6+HRhDpG3JWTqNYt/z9csNvUxC22DF0Mc ZygHXHJ/Yannfyt+fV3Xd3QTxCAGOoRVBMy04Dx8Go5VWD5pco6uyCHdFHnVABLgjQlD bbF7jtnRZ9DQNqcvmeGfprRRgP7GrV553REohxkigEU6CR+CMC8APdQLBip201k8Krh5 YuLkOmbRJToyUp81He+YvuVXT2OtB5fUW45/lqVZflBCs2YLsrrlcmrzWhLO/YJga67a PRWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=vyh7mdFRyjlmJV4fW69ox7tTTJCxGb5XPOBSz1bCTds=; fh=oKV80I3+z9B7s1vTelD9XHA9uqxFWQksdnKtUNceBHE=; b=Em4DxKmSJBWcWYEHR8b/lvVabmoRKCA9Q+UkMrcQK+UUhXxaNl4lO8tT/8dnByDWwZ X+SkF79J71rqMKUcdULLylNRoLt21rVSwzD5a79qDaZ4M3rkKf6qZVbtGTJxVbzN4dA7 4VJ9KfSkPZyQy2adZ8ETDGrCDWB8gaccE4ms2xaU0udfzJuQ8PpOsKNkvnmJvKafRA85 cF0VUDc8KTcd70D6Id3VoPfwezdmsq7C8VtoTP0O9y0rG7WfOvybv4RMdwPY5bPQ5wdR VQcL8iCs9bZMTEecEm3kqHaCAtt32Iy7dAdjVN/eTip1cm2Yby+h9AtJn9uLIbgK9a1a b9cw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=B6X5dYA3; 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-82455-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82455-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=arista.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q200-20020a632ad1000000b005e437941b3dsi4419978pgq.874.2024.02.26.15.52.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 15:52:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82455-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=B6X5dYA3; 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-82455-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82455-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0FC4128776C for ; Mon, 26 Feb 2024 23:52:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 631D6135A70; Mon, 26 Feb 2024 23:52:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arista.com header.i=@arista.com header.b="B6X5dYA3" Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 2F550135419 for ; Mon, 26 Feb 2024 23:52:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708991522; cv=none; b=rmoMlx2p0qPC/I1cJMJJ6ShiCwtGdi1To2Mm+qfxS0zcHrmhL+lITXsLN7rN4uHfVnil/ZNPYDF8MYLCT0ekmh9jPk1lB7hQgcvnbfBSjnGqFFCToN71aeD/9CUPqBeFbW//tpYPOszfB+Lyhfom1vSEw8w1Em9rqT7DeR6atbw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708991522; c=relaxed/simple; bh=8lUSqlHGMqI8I1r1rpRBEXkwRpZ7oqe4M8MCNf1etHA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=HdwFaAn5sET2UmSuwGSGTdyBQwtnI4DIZS1WzHLkH8yGWg9M87h3z1+X2eYzHtDnHiwnKUJRnQ7zaaaPcBoNX0piKA8ubDLhZYXek9foBEE0+ShI0beaub26MaMMPA5Egovf2aokp8iJESbwzjrsqwYmG3Z7vDcnTpRxXO0Y238= 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=B6X5dYA3; arc=none smtp.client-ip=209.85.214.180 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-pl1-f180.google.com with SMTP id d9443c01a7336-1dc09556599so32090015ad.1 for ; Mon, 26 Feb 2024 15:52:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=google; t=1708991520; x=1709596320; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vyh7mdFRyjlmJV4fW69ox7tTTJCxGb5XPOBSz1bCTds=; b=B6X5dYA3THgOp6st2c8F6tAXMRD1omasU5NmLQgv59huRvDdk544qAzWwMS1+dkokV Z2aMZgwNAjX5NbwbNDjudPSys5kedeAn67NLAm8AUCM0jrckZ0l+qbSYUvrUy7EgkDc1 TOKRoMdkJnZ1nULU19ChI3FxdQ1yCIvUUIjc9Sf9zqvpPqeKueHG6Msr1BgA/TDROXK+ FpHCdJ4F8Fx36Zghr07QNGX+lIWpX4s2DX60dJ6guEdzK0K4MOXFdjTEn5Z6SMjGKwKE qtyQGv0gfJTnxbKY2JsIWQEu9aOSaYfXP5mcPPCh0JL2M0ddPbNtTS8wPMyZnqeGaCaU Hj7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708991520; x=1709596320; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vyh7mdFRyjlmJV4fW69ox7tTTJCxGb5XPOBSz1bCTds=; b=mT4+CUm31fWnbAq/FbbTglPyMpbMdwQAQWxYVVlNhqRguv2p1/RjsjvYiuYSmaUx/C 85V7m8nsY4JttXGfdDarbbTchbOxlYqJEnDek83CtiMhaRIli2aOoTXeFyU4TywVhWA0 sFa/vCOBjYNtPl5ofS2cmvggXY/vezkF2ijYzk9Z9C1N5gqAMIOzc1op8w8+ch+ev0Xq gHsI1f2gebjp94rQcOYS4tQPyYFCg21RZ+Sk4so8kGakcNSC8259tIvgnJdSHI+qLxTf vov5Dx+wJn5bqlv3Gc4byu9vcUh9Slw2KHEey54Io1Smki8unmJ/0uKw3+g/5seiGiNs 8xdQ== X-Forwarded-Encrypted: i=1; AJvYcCVn0d1ArpabZsJZKLDfKIDitziQCxplbW6ojy5vpjW4vPw2DwbRbQ7EiNoUhxFz1Hj6pT7Nvyrw/bFGPE5o/55O/5hPi5h7LXm0c4d8 X-Gm-Message-State: AOJu0YzwNfvU8iPUME2YxiGbz/5usfq25VIcEcgZ0sndaQebVk2f2gtZ M7QxEqAb/pkmDuwkgwm5/p/t/4HH2NjD2tWTDr7vKBZPOaVkJ4QgfrYfyvqFjKT+MMgsIrZz72T otaL4TO92s0gV+9K+GtIV+usd4M/qLae9o9k6 X-Received: by 2002:a17:902:ebc6:b0:1dc:83b3:99a6 with SMTP id p6-20020a170902ebc600b001dc83b399a6mr9032283plg.41.1708991520569; Mon, 26 Feb 2024 15:52:00 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240224-tcp-ao-tracepoints-v1-0-15f31b7f30a7@arista.com> <20240224-tcp-ao-tracepoints-v1-3-15f31b7f30a7@arista.com> <20240226204142.GJ13129@kernel.org> In-Reply-To: <20240226204142.GJ13129@kernel.org> From: Dmitry Safonov Date: Mon, 26 Feb 2024 23:51:49 +0000 Message-ID: Subject: Re: [PATCH net-next 03/10] net/tcp: Move tcp_inbound_hash() from headers To: Simon Horman Cc: Eric Dumazet , "David S. Miller" , Jakub Kicinski , Paolo Abeni , David Ahern , Shuah Khan , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Dmitry Safonov <0x7f454c46@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Feb 26, 2024 at 8:43=E2=80=AFPM Simon Horman wro= te: > > On Sat, Feb 24, 2024 at 09:04:11AM +0000, Dmitry Safonov wrote: [..] > > + if (req) { > > + if (tcp_rsk_used_ao(req) !=3D !!aoh) { > > + u8 keyid, rnext, maclen; > > + > > + if (aoh) { > > + keyid =3D aoh->keyid; > > + rnext =3D aoh->rnext_keyid; > > + maclen =3D tcp_ao_hdr_maclen(aoh); > > + } else { > > + keyid =3D rnext =3D maclen =3D 0; > > + } > > Hi Dmitry, > > it looks like keyid is set but otherwise unused. > > Flagged by W=3D1 builds with gcc-13 and clang-17. Hi Simon, Yeah, I think I didn't notice it when I was splitting the WIP patch. It should be in the very next patch that uses them: + trace_tcp_ao_handshake_failure(sk, skb, keyid, rnext, maclen); Thanks for the report, going to fix in v2, Dmitry