Message ID | 20240224-tcp-ao-tracepoints-v1-0-15f31b7f30a7@arista.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-79520-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1056288dyb; Sat, 24 Feb 2024 01:05:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX94xMU6X4NDApQdJPcT+z5TifkEWD0Kv+6/Zpaelfx38Zqdpxtdpj1PV5T5j82HB8qJ7RUzaogZGyvbwjq6nd40Dw6OA== X-Google-Smtp-Source: AGHT+IFk1ukrAtibw/zQgvRJPQQXyOMeqeLc3JAmhfS7RfU3WyAn/ODad/NyLyW1/Hza+iSKT6rn X-Received: by 2002:a05:6359:4287:b0:17b:5fda:a544 with SMTP id kp7-20020a056359428700b0017b5fdaa544mr2684011rwb.24.1708765537486; Sat, 24 Feb 2024 01:05:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708765537; cv=pass; d=google.com; s=arc-20160816; b=ZigDEueWlKILH6Dg584OwpKO5yY0hVomOKjrqb9WXV5Nv1sSJlBtN4hlXjFfzFXg48 4Kbppd9NUCuamD177rAgG8pIpcSm9bCcDOAGZlSUuJX/VM30qhsWTAh6FxTL5BTmLtO6 DiWQiqsDFEjQ4AncJQcxye45BmNGUSTxeuKixghhJbBKwxLZj9R5qE7V5fGagIsdY9h0 ey8YjHMCaY6g2dIvOe9ccdT3wkK5vqRbNaxA/uYZq1oBQACtYJTrFPQ9XMiNlJOm7WeZ Y6zzdBtilk3bjJZ5L2Eus6s0xR7rg5hHLsiQ9ChmUH4Y3iNhLBmGGLKF2IKTs5Ewq/6C LGXQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Y9oap1u4maFj8x6QB6Yv5BBkUdae4vegOH6+ONA60ss=; fh=IbKG4KNnQBNjR0UOA8AcrJImysGQrq1RzWJ8l1/Fwrc=; b=EEscqoN8uaEDpdG1UHi6I+Isg+9imJxwBaoCojFjR+ZdCt5hbjgVEvjc4uAtd3Grfk AmvMqsZHvv17JKfWk4PQivjMI7MsnBCVrO0njcrqSQogm7aLuNRVZQ45GOcx+g0bG5Jt rd3yGKfu2kD4tLS5iWQtgZ+WSjTL7ztqM78KflpZfincfyk5gt43nnXy0RgBectuAhdj F4w/FFCkx6XS0HhOom3SkZ48XFu2TqTodw6I5ZoPJ1l7nPA6UXV8gH8ODFgjt/4tJwPx An/GubGU8ezl9zT7k8PnTvznA4nttssCwcMohij1wPAHxEV379k9/dmwd9n78pyfZMfr fm7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=Y548vkAX; 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-79520-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79520-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=arista.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c12-20020ac853cc000000b0042e5b90c37csi699099qtq.149.2024.02.24.01.05.37 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 01:05:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79520-ouuuleilei=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=Y548vkAX; 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-79520-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79520-ouuuleilei=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 408DF1C21095 for <ouuuleilei@gmail.com>; Sat, 24 Feb 2024 09:05:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 123BC2233A; Sat, 24 Feb 2024 09:04:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arista.com header.i=@arista.com header.b="Y548vkAX" 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 B871A175BF for <linux-kernel@vger.kernel.org>; Sat, 24 Feb 2024 09:04:43 +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=1708765486; cv=none; b=TnkgzzicaRkGjKFdgtnfLCnY6QAJaxg01BoikrBtT0uFa5uTrqvSZJYZ4o8E71pG1p3LWj+Gu04OYFJ8wNBWjxeNXLYSIXv2dsXrmgBqrINcKOiM49kWupeDBSLAEyDS9TJyAz3sN8bmcVPARDbJ4dfWrI0XoD1nLb30QULb18Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708765486; c=relaxed/simple; bh=2bvz0RaABemvB2mAnUI+y9KXZ+nJBiW2+3XKY5GafdE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ajregrXzLOoE6bmPhokuDvo5Wa8VB8S2Ykl/b1nu6uQA1Q/52icaUUwiS5p9zzqXGK0oCF4n4LiiQfrdZEMoZZoD+Jw7LSfKY8ypuihnwuyj8ySPBOYaN8vs97d4UxUeD65FTmW+0XDVcn/ywUGwaeUHVFBB54nr5FxrBkCsiZw= 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=Y548vkAX; 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-4129f33d2e8so291535e9.1 for <linux-kernel@vger.kernel.org>; Sat, 24 Feb 2024 01:04:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=google; t=1708765482; x=1709370282; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Y9oap1u4maFj8x6QB6Yv5BBkUdae4vegOH6+ONA60ss=; b=Y548vkAXhubs8Z/ze6bQEzkKASCNo93gyEsT+0s9GIxzq/KL1q9hMtmWnHCPzXIP28 kqQ+u3RMfxCkJXsOF9zF87r+VDTCSz+K56ZxMS3IunmHfct0Aa1npsrWdDFi1TCZbHC2 /KIJHrohkamm9HdpalxaX5NwdG+Y7nrhwcMxtaJRseYm99++aX34Lo75QNYa4qaWyJRH j1bkoYHUWYxT6R2rpBhWhue1jAf02CP4Q2O448rP0dCwuHMIv3aVJDeQOvhphJOgDMVZ wRhmGGgYfEV/ICw9Q0rFEjhQdeEXG7D01IFTENx++zW42bWU+95s4S3JUG0PSqc2AeQg hlzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708765482; x=1709370282; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Y9oap1u4maFj8x6QB6Yv5BBkUdae4vegOH6+ONA60ss=; b=NEKc6IevUZL3xA4OpUWBNr7iU90HY/TBHuahV488eJYjdZSe7osEk+6E4iHCjoIWpT 5tNaD2weA9tAoXQA0R8zZXARlsKsHN7kkbPHsSr+4vU7iX0fWBmaKa3TOjYb4zriIHr0 h/4/RBsU//GqHYt5nBZ98oj078AlhUSuMCVYYoEBWK1Hn5TWbjxGaoNfgZ3QIEOEEJKI nhIZUaoQc+Ioep6TMGmzj9Rb4dbFCeEQm9iv6pKjTc2g0RFg4+dYlRrxaHX2Yx9p0o55 6I+ZouasEWHD7W0E1LF4Wg34tTR3YZfXpU2v6yWVGCWDSzM5STX7CCWt0E63Cgh82G92 kb9Q== X-Forwarded-Encrypted: i=1; AJvYcCWst+g+INII7hQTGqSCJz/2GgL+fZddiXe46G8ZhOo7w74r6eoDn5C2XRnxDCekEuD89JN4TdW0g5Ty8P8lqCOrOcBmFWZq15RR1La8 X-Gm-Message-State: AOJu0YwaHvAVIYz9h7su5Ahd4Nx4KuFtvbFQd/J2+NFQPM5pb93xoLLF O5KnlES8mKxOCfU0uEx68AbKLyh0Ph0x+lMvGj2YA3l+txKoEZeQpe6xF56WZg== X-Received: by 2002:a05:600c:5023:b0:411:eb73:243b with SMTP id n35-20020a05600c502300b00411eb73243bmr1255421wmr.5.1708765482074; Sat, 24 Feb 2024 01:04:42 -0800 (PST) Received: from Mindolluin.ire.aristanetworks.com ([217.173.96.166]) by smtp.gmail.com with ESMTPSA id m6-20020a7bce06000000b00410bca333b7sm5320593wmc.27.2024.02.24.01.04.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 01:04:41 -0800 (PST) From: Dmitry Safonov <dima@arista.com> To: Eric Dumazet <edumazet@google.com>, "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, David Ahern <dsahern@kernel.org>, Shuah Khan <shuah@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Masami Hiramatsu <mhiramat@kernel.org>, Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Dmitry Safonov <dima@arista.com>, 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> Subject: [PATCH net-next 00/10] net/tcp: TCP-AO and TCP-MD5 tracepoints Date: Sat, 24 Feb 2024 09:04:08 +0000 Message-ID: <20240224-tcp-ao-tracepoints-v1-0-15f31b7f30a7@arista.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Mailer: b4 0.13-dev-b6b4b X-Developer-Signature: v=1; a=ed25519-sha256; t=1708765347; l=2977; i=dima@arista.com; s=20231212; h=from:subject:message-id; bh=lLZCReK3ZzYvXtLqDF+R0iwQ1yaEauus+KvH0+vWic8=; b=NugEbW75fCKkDgfn3+AcpEDu+0iEc0KVHGPrv1p3Os/iJMBhc+JXO8gFuW0FLA47yz2UET5GM WFA4lYfgHGlAbGlH144UecbPi9h9XBX2QkDHrzHPXMwxBJOvBO8pKkn X-Developer-Key: i=dima@arista.com; a=ed25519; pk=hXINUhX25b0D/zWBKvd6zkvH7W2rcwh/CH6cjEa3OTk= Content-Transfer-Encoding: quoted-printable X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791770532386453452 X-GMAIL-MSGID: 1791770532386453452 |
Series |
net/tcp: TCP-AO and TCP-MD5 tracepoints
|
|
Message
Dmitry Safonov
Feb. 24, 2024, 9:04 a.m. UTC
I tried to split it a bit, maybe I could even go further and split by
TRACE_EVENT_CLASS() changes, but not sure if it adds any value.
But at least all preparation patches are separate.
I wasn't sure if I should just remove tcp_hash_fail() as I did in this
version, or rather put it under CONFIG_TCP_..., making it disabled by
default and with a warning of deprecated, scheduled for removal.
Maybe this won't cause any problems for anybody and I'm just too
cautious of breaking others.
Anyways, version 1, thanks for any reviews!
Signed-off-by: Dmitry Safonov <dima@arista.com>
---
Dmitry Safonov (10):
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()
selftests/net: Clean-up double assignment
selftests/net: Provide test_snprintf() helper
selftests/net: Be consistnat in kconfig checks
selftests/net: Don't forget to close nsfd after switch_save_ns()
selftest/net: Add trace events matching to tcp_ao
include/net/tcp.h | 79 +-
include/net/tcp_ao.h | 42 +-
include/trace/events/tcp.h | 317 ++++++++
net/ipv4/tcp.c | 86 ++-
net/ipv4/tcp_ao.c | 24 +-
net/ipv4/tcp_input.c | 8 +-
net/ipv4/tcp_ipv4.c | 8 +-
net/ipv4/tcp_output.c | 2 +
tools/testing/selftests/net/tcp_ao/Makefile | 2 +-
tools/testing/selftests/net/tcp_ao/bench-lookups.c | 2 +-
tools/testing/selftests/net/tcp_ao/connect-deny.c | 18 +-
tools/testing/selftests/net/tcp_ao/connect.c | 2 +-
tools/testing/selftests/net/tcp_ao/icmps-discard.c | 2 +-
.../testing/selftests/net/tcp_ao/key-management.c | 18 +-
tools/testing/selftests/net/tcp_ao/lib/aolib.h | 150 +++-
tools/testing/selftests/net/tcp_ao/lib/ftrace.c | 846 +++++++++++++++++++++
tools/testing/selftests/net/tcp_ao/lib/kconfig.c | 31 +-
tools/testing/selftests/net/tcp_ao/lib/setup.c | 15 +-
tools/testing/selftests/net/tcp_ao/lib/sock.c | 1 -
tools/testing/selftests/net/tcp_ao/lib/utils.c | 26 +
tools/testing/selftests/net/tcp_ao/restore.c | 18 +-
tools/testing/selftests/net/tcp_ao/rst.c | 2 +-
tools/testing/selftests/net/tcp_ao/self-connect.c | 19 +-
tools/testing/selftests/net/tcp_ao/seq-ext.c | 10 +-
.../selftests/net/tcp_ao/setsockopt-closed.c | 2 +-
tools/testing/selftests/net/tcp_ao/unsigned-md5.c | 28 +-
26 files changed, 1576 insertions(+), 182 deletions(-)
---
base-commit: d662c5b3ce6dbed9d0991bc83001bbcc4a9bc2f8
change-id: 20240224-tcp-ao-tracepoints-0ea8ba11467a
Best regards,
--
Dmitry Safonov <dima@arista.com>