Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp24183lqr; Tue, 4 Jun 2024 19:21:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFwTjWWbPWe1szd9z3I4i9VQfD/6Qz4A47Nkr2LUxkynJWIYAOznaeYHNfcY12+UrObVyOIRLA6AHHY2ebBJKIBcVg3TNqIrNT3hLS8Q== X-Google-Smtp-Source: AGHT+IFCPTLNvj8ricPqJsAjXz9XHfd4yaHosiyA1oWGcWaIvjV1A6+HTCjn4qgkIJ6UmyTe7h2f X-Received: by 2002:a17:906:c348:b0:a68:ceca:db04 with SMTP id a640c23a62f3a-a699fac1feamr67170566b.36.1717554069643; Tue, 04 Jun 2024 19:21:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717554069; cv=pass; d=google.com; s=arc-20160816; b=OKt9QwJB0Xw2Ev3HliQKTtnxxyH73e/2Ysg9i4rd5LQlhMozegxfomG8p2uelFz6lB b9oe0ZUVjoXvOBBPpH0p6mXbsIinNDvIzrWDNobWAAQdLR50jS2ALPfBgAzxoQZoQ3+D nJn5bUC2o7XVsjFrFiX5nhHpC/Mb7dsvsFoB3rISTjkcsM62pehrhXJ/rgL/kzISyHac b7XV+tT7os79DUUfPizeI9DA701q/TVPy/i1gveI8BySBjInUh+xb0RPgQj5iCm/kPto wG+FqzMNMTQ545/ONuR5Ux0t7kI4Ra8ZuZTml+kEdkT5VYsqqLSlUeP2JqQE8ZPPh8Kj qdTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:from:dkim-signature; bh=YXgUTpBTyYbbnPo97zBpQ/bi4fs8KBYJ7ZF85oLi4xY=; fh=Nedj/Vrt7g720fea/k+6nmkVAb0uLutxfpisOQ2NqiQ=; b=TkVVZX+jt5QQObKbn0158R1CP4CfGGZgRKXS53h1QTlFBnJ+ysQfqUCxo/E/0oLksu FjqonefjQ8W7Uhoy5D+zVEEMNnBVRUc9MbqFLowUjIN6xw7Dyt57GiRfuar/px+koNbe 40Yy9w3n80862ANtd149bnQNC9x99KvKsNbOUI3Wf32PPU4g3wCGpnUH7e8KchVXsJU7 c+CKKf/JdVtbBCbbttcNl1TahMwydFEFZloWzH30H2Q2BEnxL6hpO5dI1qVUkWT9/xJt 05rpdEzge6gGccGmCtmirXU9ZRiY3gRbhRDkhh2H1GOhXnS87SIAiozErn0xLvWv6hSg zYqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tp4vdK6G; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201678-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201678-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a686342afcdsi501543466b.967.2024.06.04.19.21.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 19:21:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201678-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tp4vdK6G; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201678-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201678-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6040C1F25DD6 for ; Wed, 5 Jun 2024 02:21:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 081D178C94; Wed, 5 Jun 2024 02:20:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Tp4vdK6G" 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 05E912744E; Wed, 5 Jun 2024 02:20:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717554032; cv=none; b=hJGAspW788u2YfRO3lIhDmgo33CLCkgTIbWeW9+90ccDqkHvtfp9ldCf/hi4OmctS+sLC7K7PqZ+PW7fI3yT5OLgVYLz1mAzcmbOYlq6DXPrxfEGjRIKGPKJUgQ+1eN2mjoDCr8BdGBqnkaPUgdtUjXiSMkET72ntuPMA1ArpN8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717554032; c=relaxed/simple; bh=08b//uzEqLqk0Nl2SSIOHmj2RvoFoSkpZUV6ZyaQgQY=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=IaRazvz6OfSTBDNf815cLbeAz5ct2qIkJgs6kvAL00aQmBejbZfXYhAcS9WVA74hfOLKkKEY3kD2mnQkuHuixdPmlQiN4Tdb8chl+yuqHn/L6i3cHhnCMpW2he47JrJsF3Mool2R+uwsvtV84wbGs9X17ClMpsYJ44TOtjn8Cic= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Tp4vdK6G; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 91474C2BBFC; Wed, 5 Jun 2024 02:20:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717554031; bh=08b//uzEqLqk0Nl2SSIOHmj2RvoFoSkpZUV6ZyaQgQY=; h=From:Subject:Date:To:Cc:Reply-To:From; b=Tp4vdK6G85uxI6PeMLSbifQinw4Acp0/UMmlwvW/KeOTaIq7EcVqymnnYa9MgS4q5 cEeF4yYTXx91EGHK+dzkrnjl/XznapKRxMxH2GDXZITF5vMLReRB9nUwrvYr8/12oL Kx7mf1XT3f1xubgxAJimOjboTiq8k6lLabppB9GAhoU9YhXhj7NYSq6llH5phJEkdR LaC9D9sx5xSNdavQiviDzn4lV0acVPc6qb2dnkr7yhn57rW0h01jzSnQN/C/b4qAK4 cjea4FunarRHQ0R5X02XsKqYXpLxyfsv24wyw3ifjdt8qUcVroGbdolraN1yCppdCn yLdjUr1RfvdlA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77DF0C25B78; Wed, 5 Jun 2024 02:20:31 +0000 (UTC) From: Dmitry Safonov via B4 Relay Subject: [PATCH net-next v2 0/6] net/tcp: TCP-AO and TCP-MD5 tracepoints Date: Wed, 05 Jun 2024 03:20:01 +0100 Message-Id: <20240605-tcp_ao-tracepoints-v2-0-e91e161282ef@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAFHLX2YC/12OwQqDMBBEf0X23G2TqAg99T+KlDVuag4mkgSxi P/eGOilx2GY92aHyMFyhHu1Q+DVRutdDupSgZ7IvRntmDMooRrR1hKTXl7kMQXSvHjrUkRDimX D0ohxhDxcAhu7FegTHCd0vCXoczNQZBwCOT2d0F93m8m6cznZmHz4lDerLPsiVqo5xfgnXiUKl K2p5dCZWlD3oJAJdNV+hv44ji81NbuC3wAAAA== To: Eric Dumazet , "David S. Miller" , Jakub Kicinski , Paolo Abeni , David Ahern , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Jonathan Corbet Cc: Mohammad Nassiri , Simon Horman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Dmitry Safonov <0x7f454c46@gmail.com> X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1717554029; l=1682; i=0x7f454c46@gmail.com; s=20240410; h=from:subject:message-id; bh=08b//uzEqLqk0Nl2SSIOHmj2RvoFoSkpZUV6ZyaQgQY=; b=udDy88sE7uRWWaTJ4YsZBsDtpsCY2MWcWS33lc++xo+jeEiE4cCGOkwYZUnFrEZaR9TvdCDN9TXr 16ekEXZLCdDL19+LuYWiuXoXItVyhUUo6sBV3bGBA+GvGXA0r9nM X-Developer-Key: i=0x7f454c46@gmail.com; a=ed25519; pk=cFSWovqtkx0HrT5O9jFCEC/Cef4DY8a2FPeqP4THeZQ= X-Endpoint-Received: by B4 Relay for 0x7f454c46@gmail.com/20240410 with auth_id=152 X-Original-From: Dmitry Safonov <0x7f454c46@gmail.com> Reply-To: 0x7f454c46@gmail.com Signed-off-by: Dmitry Safonov <0x7f454c46@gmail.com> --- Changes in v2: - Fix the build with CONFIG_IPV6=m (Eric Dumazet) - Move unused keyid/rnext/maclen later in the series to the patch that uses them (Simon Horman) - Reworked tcp_ao selftest lib to allow async tracing non-tcp events (was working on a stress-test that needs trace_kfree_skb() event, not in this series). - Separated selftest changes from kernel, as they now have a couple of unrelated to tracepoints changes - Wrote a few lines of Documentation/ - Link to v1: https://lore.kernel.org/r/20240224-tcp-ao-tracepoints-v1-0-15f31b7f30a7@arista.com --- Dmitry Safonov (6): net/tcp: Use static_branch_tcp_{md5,ao} to drop ifdefs net/tcp: Add a helper tcp_ao_hdr_maclen() net/tcp: Move tcp_inbound_hash() from headers net/tcp: Add tcp-md5 and tcp-ao tracepoints net/tcp: Remove tcp_hash_fail() Documentation/tcp-ao: Add a few lines on tracepoints Documentation/networking/tcp_ao.rst | 9 + include/net/tcp.h | 79 +-------- include/net/tcp_ao.h | 42 +---- include/trace/events/tcp.h | 317 ++++++++++++++++++++++++++++++++++++ net/ipv4/tcp.c | 87 ++++++++-- net/ipv4/tcp_ao.c | 24 +-- net/ipv4/tcp_input.c | 8 +- net/ipv4/tcp_ipv4.c | 8 +- net/ipv4/tcp_output.c | 2 + 9 files changed, 434 insertions(+), 142 deletions(-) --- base-commit: a6ba5125f10bd7307e775e585ad21a8f7eda1b59 change-id: 20240531-tcp_ao-tracepoints-fa2e14e1f0dd Best regards, -- Dmitry Safonov <0x7f454c46@gmail.com>