Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp702328lqt; Thu, 6 Jun 2024 16:28:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUnPI+ZqlubLdzh+7urqs60QbrHYG6oJrjiEXRx2SsOiDkN0UC0eiAbqJDWy2aoUsz2ZFGwNQccByVzgrMysigio7V6rj3ssf6i9Wq39Q== X-Google-Smtp-Source: AGHT+IHotrV3KODM6IUjgMWPYynt/4fkqhFDbN5ivTtotFcDqlTXVZsW/RY3xZ0YWtc2M70TN/DK X-Received: by 2002:a05:6a21:3401:b0:1a7:9b0e:ded3 with SMTP id adf61e73a8af0-1b2e70a2977mr969976637.11.1717716493820; Thu, 06 Jun 2024 16:28:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717716493; cv=pass; d=google.com; s=arc-20160816; b=hlrKUcuRLEDwz8WUOdp1iSk9V6vEk+2GSulcMcrraFI9ynFvc6h2euAtXGMTme62Q8 nQIsTC5rbDJ09TFuVUwMIundWWq/ZA8qUEFW502nP3GUnYLOP3/F/vtpRJuPA1VvCdzW TdDcVUIX845jO3QdSBjeZ+fi6I9lHjNfD98JNEupB6U6P/7f8detQ0xrL2LOiCQWZ/O0 TnT/J8Mm8JGdj+rL+6edmiQR80ZDtY9NQiVZVP7qnwYtlNdBKRhuVz340BXXDSFpP5H4 iaMM9fpnHdRUAT9DuVb2+S/Jhfv9j9S7CzV7855Tvj82pGY6BaFj9WsNJBumdlYwFd1N 8AYw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=V99LVwI1X6LSbW6E48ypzIEJHi7egnEWuhB59uezJvI=; fh=Nedj/Vrt7g720fea/k+6nmkVAb0uLutxfpisOQ2NqiQ=; b=L0VoesuP9CxDtECs37K867m8BOXLeYS2E2y1ZsGGNtKb+MwG4T1qAWRg7rRc559y+s xv/5Z7k4KU9KIHy5HjbRuVzfNsqWjO/sfDDnK5Tx4lQ7//+yJ0nW/7X+EA1qEgZ5s2HO QL2s5seqa+oXOI/VWivy0aS/nzn4wGjAEy5jkd/Mm8GsKgATgXFSSz0hkvfP657DXWru z1cJ1/2Ct+mvZBcF3DqKOCTHh72KfFZzSjId9NqZP9niyo1sMpFBHjTp7JS8Oj3weVQE 3Nm22OnCfv99lTbrh0y5lCd8oop+reTCuVcSd7zgsbQlY/eG6cqpXXIWtc+GkG0lmkQC F9SA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hablaiup; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205157-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205157-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2a84583esi1878670a12.820.2024.06.06.16.28.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 16:28:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205157-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=@kernel.org header.s=k20201202 header.b=hablaiup; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205157-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205157-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D0E8F282C92 for ; Thu, 6 Jun 2024 23:28:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B6CE514F120; Thu, 6 Jun 2024 23:26:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hablaiup" 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 B5F0613E3FF; 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=g14kQYaSXg8z20JMq2w+TESbz9Z2yUYJ7iScgUqUfPOeJSL0B1t4TWJkkYooTPdXBqCBsXxpC/wuk+Ya1DEeI3iZqk55CM4eGMADfg7CUxRHhiwFHGpOKSL09muOb/HMBn+u7g1uHUjL1Srtp9gd3FkCJaqFY8QCMzIlbMaofHw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717716374; c=relaxed/simple; bh=RJxbRfrwSVRgqNfS+0yMIlRN2XvFthWU7xqbwkPAwrc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cOWhWITYDbnz+5bx1AlycosB8jcmJcWp8bHJMQXWompowaAz9eKH/Qw2AcIekxeI3ea2XVfCTKMpALa3b8It/w8lItSy9/JH6UG+bGRaA7i0gqvfF3c8agsUUg5cWi2JPSjH+PH4lq9LTplh1fful6vEq9kCq/ByApeHomWGtrY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hablaiup; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 65A91C4AF49; 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=RJxbRfrwSVRgqNfS+0yMIlRN2XvFthWU7xqbwkPAwrc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=hablaiup5tuFY/nHjVpPMK7XMWflfCfDT5LOp2auDxk/IsWIMpVrtxJKZ3j9b4cJd Gd2k2Yl8CzyiF53jqxeUBxeRwuJbYYosXkacp5ZCsaM5eexSw4+zUGH9DurAIfsidQ 4MMJsiwqJe5DYl7HmcCEZyJfQkUfkU6lPkFBaxJTVejCc3o1fp4sO2isKBq7pc1rns rSRKEUPVpt6jgFmHU4Uw1eB75UWDCIssjP/DT1ALOOV8GyJllbtg3yYt3Me1X1pGS4 xRifQ35nCguu2hrudLrf354z7Kb2oBYMPnbYEFAvwOje05ObSX2bBsDAjYa5od5USc 1XP2vxzpcJ+OQ== 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 5A5E1C27C52; Thu, 6 Jun 2024 23:26:14 +0000 (UTC) From: Dmitry Safonov via B4 Relay Date: Fri, 07 Jun 2024 00:26:00 +0100 Subject: [PATCH net-next v4 6/6] Documentation/tcp-ao: Add a few lines on tracepoints 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 Message-Id: <20240607-tcp_ao-tracepoints-v4-6-88dc245c1f39@gmail.com> References: <20240607-tcp_ao-tracepoints-v4-0-88dc245c1f39@gmail.com> In-Reply-To: <20240607-tcp_ao-tracepoints-v4-0-88dc245c1f39@gmail.com> 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=1312; i=0x7f454c46@gmail.com; s=20240410; h=from:subject:message-id; bh=YTvLVmZiUq3+/gRlZqmFldpsbcd2Jw9oBAFB4f9XdXg=; b=yBoZ3XI+U9N6yjIg9OPIw3XAbfb8H+9R7O49RdavjZgRFul6opVKoRDnbgKXoKGQovgFtKxRwu+n /JokHbbvCr7fWvjB6R2vjraI3PWvVf5wugCuxEAWZ2bR5C3ZQDss 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 From: Dmitry Safonov <0x7f454c46@gmail.com> Signed-off-by: Dmitry Safonov <0x7f454c46@gmail.com> --- Documentation/networking/tcp_ao.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/networking/tcp_ao.rst b/Documentation/networking/tcp_ao.rst index 8a58321acce7..e96e62d1dab3 100644 --- a/Documentation/networking/tcp_ao.rst +++ b/Documentation/networking/tcp_ao.rst @@ -337,6 +337,15 @@ TCP-AO per-socket counters are also duplicated with per-netns counters, exposed with SNMP. Those are ``TCPAOGood``, ``TCPAOBad``, ``TCPAOKeyNotFound``, ``TCPAORequired`` and ``TCPAODroppedIcmps``. +For monitoring purposes, there are following TCP-AO trace events: +``tcp_hash_bad_header``, ``tcp_hash_ao_required``, ``tcp_ao_handshake_failure``, +``tcp_ao_wrong_maclen``, ``tcp_ao_wrong_maclen``, ``tcp_ao_key_not_found``, +``tcp_ao_rnext_request``, ``tcp_ao_synack_no_key``, ``tcp_ao_snd_sne_update``, +``tcp_ao_rcv_sne_update``. It's possible to separately enable any of them and +one can filter them by net-namespace, 4-tuple, family, L3 index, and TCP header +flags. If a segment has a TCP-AO header, the filters may also include +keyid, rnext, and maclen. SNE updates include the rolled-over numbers. + RFC 5925 very permissively specifies how TCP port matching can be done for MKTs:: -- 2.42.0