Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp703676lqt; Thu, 6 Jun 2024 16:31:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0U92BJf4CXTZeIH0Yf4MgNBq6WPHu9G1EKZ1pyi1c4bohoZTZnINKnIYZgLoMmKXs46oBF3Kf54IPh7f9zEBpQMF9huR++wgUFHHSsw== X-Google-Smtp-Source: AGHT+IEMAjJb4gNMfvx5qqN15alGFwFoBVgnvpx2irqQj9yQ7A2QJjmhPxn7xeRHMWhlOlxzb2+l X-Received: by 2002:a05:6a00:17a6:b0:6eb:1d5:6e43 with SMTP id d2e1a72fcca58-7040c65b093mr935577b3a.11.1717716707390; Thu, 06 Jun 2024 16:31:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717716707; cv=pass; d=google.com; s=arc-20160816; b=BC0RKEAr4+JTPBKfI15kZ0/fzilUTbk9FONmAuc9cWHlEsprRWaMjXBVsms9z1fr1+ GC8G57lpTkcmQgSz3Yn/cQGjpnb2gXeTCo1dF1jTrtSLYpHwFbTxjQjD2K12jPi/hKCX vDq99vge3vFZCKU3AzfH9w9ZHRuaV3H8or1UMe9agf4wnEM66jfrxNtUdbPJyn2GCgiV X4gFboHY/neNgH/haTgKvCsNuTQceGunYMOOVEECb2AB0mctuYkhlJy9bTeIA6e9+cM5 /mREXSRmimmzQgAb7Zs8RCfRVT03ddXlQlzz6s7SI8EdTXyooV7bDYz7zxnaJ1h92z25 CBoQ== 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=ACpHwP1fXftzOjRgzAaJ+WVTHtBe5eoGjFR0UKSOUa8=; fh=Nedj/Vrt7g720fea/k+6nmkVAb0uLutxfpisOQ2NqiQ=; b=B0tafUFAhNEQCDegHkM8wwsSOxIaMJwudRuaLyieoVo9SBxdgYJ84Nw1fmvsIJR6dG sH/+LbafH8BTMxWUH9dBNkHQ2DluFmNwonUkA71RdA96NNZe/BCPk742k4kKWb/hAHJU /cI4x9tydaIesRiZ/2Z03B3AFkGajNC0MtbXMumM9Srbu9W2ic7R4rOz39qhf4FAkcmo SM/H6z0QNoHFpavRDQG7lSnq48Vp+2Br3yd1EKAOes6zPTad8DOC/MRY+FrxtrU+Dq/5 8f3Xm3gvtQ7+6k3PCMle4Fgpga1Aohb33f75pkr1bGRPtP0ICJwc7JsVHoakP3HWgbjq KznQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NRxD75ps; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205152-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205152-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-703fd582f7dsi1820467b3a.389.2024.06.06.16.31.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 16:31:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205152-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NRxD75ps; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205152-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205152-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id AFA0CB24F78 for ; Thu, 6 Jun 2024 23:26:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 669AB145322; Thu, 6 Jun 2024 23:26:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NRxD75ps" 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 6B1AC6D1B9; Thu, 6 Jun 2024 23:26:14 +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=1717716374; cv=none; b=otfXpgfSGxnTQTnde839n6HgiWkpjKcWiHVNaA89PWIlMkROaLf9m9zNdt61XeQ0PXm5poyyNd7m2/ZBSgWx4CeSiJcdcVz02fSqaCfU6ijXR1T7m67QIXLWF8B1Dz35f47pJGLT8LQ11TiNqIraNRPasFkMIHSoNCrQwCK54dU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717716374; c=relaxed/simple; bh=llottDhQKaURlXE/wW1YxOb8Cyb6//i4SbVQqw7++1g=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=JYxvqCeLZYVlb9xBrgjeVWSLGGj82M0HmRsb6egZsqp5kv73lF4Ih4MtwVckY4BOp0yU+rKrxgqXHH03ZjmS5VPd4M5mQ95nqCvLdlMmfdS95KW8KXdB3SZ68yYIjFm0RZKbgZ5XhS5t63zVLEFtVnpHO4thIhCgrAOPmjaSnus= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NRxD75ps; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 09D25C2BD10; Thu, 6 Jun 2024 23:26:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717716374; bh=llottDhQKaURlXE/wW1YxOb8Cyb6//i4SbVQqw7++1g=; h=From:Subject:Date:To:Cc:Reply-To:From; b=NRxD75pswYoXVg3psi9+MR1RoqgqOHd9STzMomK4/4zDQ1ID6k2f3Lu1sY+WkNSSw WBkIAv9pdccohacKZRq114jaQ/UdaXoJGDtIcteajfV5fyc+TsQhS2Xx0Y2J8ls/HN W2PsmVFfp08w+6WAtz6nym7CBbadN18C5XtMThscq7dfPEJRppXwVlVTfch5pDMQzg AjCJcxXeJXOtSRYSC46JDkxfCvH+maXDZAoDoS8V0xdvHXeS0yzTEuo4po5f7OBW/z 8HO5LiSr78R/4m0h+4AkPH4I/utrxl7r+P6uQNsM7PtrOBkIxr8gxj0NmmT0W9Nqv3 LCSc3TYjnlm5A== 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 E31E4C27C52; Thu, 6 Jun 2024 23:26:13 +0000 (UTC) From: Dmitry Safonov via B4 Relay Subject: [PATCH net-next v4 0/6] net/tcp: TCP-AO and TCP-MD5 tracepoints Date: Fri, 07 Jun 2024 00:25:54 +0100 Message-Id: <20240607-tcp_ao-tracepoints-v4-0-88dc245c1f39@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=H4sIAINFYmYC/23OQWrDMBAF0KsEratWM7Idu6vco5QylkexoJGMJ ERK8N0rG0rakuUw/Pf/TSSOjpN4PdxE5OKSC74ezdNBmJn8maWb6i1QYaNaDTKb5YOCzJEML8H 5nKQlZGgYrJomUYNLZOuuO/omPGfp+ZrFe/2MlFiOkbyZN/Tn93Ih57fk7FIO8WtfU2DP78WIz VYs/xUXkEpCazWMR6sVHU8Uq0DPJlz2voJ3o1Pto/EFq8EDMHSAPbI9neuazzuhfxPdQ0JvM3S HMPS9UcMfYl3Xb1NMPTRlAQAA 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=1717716372; l=2059; i=0x7f454c46@gmail.com; s=20240410; h=from:subject:message-id; bh=llottDhQKaURlXE/wW1YxOb8Cyb6//i4SbVQqw7++1g=; b=+Z3xNAjQb4voEBX4c6KwxL7PqDNBav+hy3mtePPR/DpLG4FW629l6x10sW8ZwP7VLFGCDpVoHUpE Kc4YOLubCW5wcsAOYEzrV3PFrNP5Z/DrYNeGMAOd0G+PeBIpnPJV 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 v4: - Fix the build for CONFIG_TCP_MD5SIG=n (Matthieu Baerts, netdev dashboard) - Link to v3: https://lore.kernel.org/r/20240606-tcp_ao-tracepoints-v3-0-13621988c09f@gmail.com Changes in v3: - Unexported tcp_inbound_ao_hash() and made static (Eric Dumazet) - Link to v2: https://lore.kernel.org/r/20240605-tcp_ao-tracepoints-v2-0-e91e161282ef@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 | 92 +---------- include/net/tcp_ao.h | 42 +---- include/trace/events/tcp.h | 317 ++++++++++++++++++++++++++++++++++++ net/ipv4/tcp.c | 98 +++++++++-- 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, 443 insertions(+), 157 deletions(-) --- base-commit: 62b5bf58b928f0f4fcc8bb633b63795517825d31 change-id: 20240531-tcp_ao-tracepoints-fa2e14e1f0dd Best regards, -- Dmitry Safonov <0x7f454c46@gmail.com>