From patchwork Tue Feb 20 19:44:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Iurman X-Patchwork-Id: 20686 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp627991dyc; Tue, 20 Feb 2024 11:46:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV2wlFi15G8K+w8IbZjvvYGYSDGDVxLpGMx94YGxVLIWdUz7YQYe5C1MgtuaWo3rsQPeK6ywmrv6CE+GPpFOTpBDeWmng== X-Google-Smtp-Source: AGHT+IH2wy7NV1J0tgTAF4fxlvApevZjJSH8hhhgGyFmxZEf+S284zDcQjTRTU+HNpvFgMzitFOk X-Received: by 2002:a05:6808:2390:b0:3bf:e41a:c1fc with SMTP id bp16-20020a056808239000b003bfe41ac1fcmr20457206oib.3.1708458390884; Tue, 20 Feb 2024 11:46:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708458390; cv=pass; d=google.com; s=arc-20160816; b=S0dpLbizSIMFXAzqXrBH877JHSbvcTuLAhA0bXJqiiUw5Mo6XV5lZUcjAqZP787nLV QTQ3usISjSD/pAGSrOLEwCpKNO/2RA5YDeOZojwG4heAWLrGh4WXlUCLs2r7UI9Pc64n 7n9T6SnBG5G+Jk5Pa/wmfxRCmJ/e4ukeF1v8PKNUiBKRIF2tXA94YLGRzoiH5BtiADdH WayJ/keFmXPh3sw3Vzh/AMuYybZ50IpS0vgvOhqeo24Iy6jPEbtZMKeiOUTWdRs5F4FR +tL95qbLibS209x8Gm56ZhsKhCZ0Y/0Bda2zn/H9DIQnBprMc0SWcSS9lGA2gjx/swZo 1ltg== 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:dkim-filter; bh=h7EcwSW71SSSDL0dnFc82jgR2ymx/wCW+Xnzy4FBRVk=; fh=1UEXF8WEdTRZGz3zsBPr9blJ8rxkIELeUsA6ymhnv1o=; b=Zno7RfYLf8q+iiHNuGh6F8uxhM2QnNc5Hy5ffuHXwOs2prM22HBzccZ2Gq1BMySVKS /1LT134aP8RU+xQ5CejK+3fjZ87D6S2PchSXgpyKYAY31gjGc3hGxVuBFEe7bVossp8x 0njvQmfTsNk+HHPvBRlEJ+xP77nMBmBbzarX8meWVXrYOA06magOR9r58w9rRGiKzPaj ESNLfw2pBtIXzad3pZGtikJdfnKI65LJVVjS3FHXTRNciO/iwf1FJFMnMLGo8GWGVOvF VdYosf2DUEkCt7J0uN7njNaVYxUPdIwPwTNAihxkE/HtEOhsb0cFaIErtCogVicMurvB 1BmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@uliege.be header.s=ulg20190529 header.b=C4LgFSah; arc=pass (i=1 spf=pass spfdomain=uliege.be dkim=pass dkdomain=uliege.be dmarc=pass fromdomain=uliege.be); spf=pass (google.com: domain of linux-kernel+bounces-73613-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73613-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=uliege.be Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jz5-20020a0562140e6500b0068f2edfdad6si8197989qvb.270.2024.02.20.11.46.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 11:46:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73613-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=@uliege.be header.s=ulg20190529 header.b=C4LgFSah; arc=pass (i=1 spf=pass spfdomain=uliege.be dkim=pass dkdomain=uliege.be dmarc=pass fromdomain=uliege.be); spf=pass (google.com: domain of linux-kernel+bounces-73613-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73613-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=uliege.be 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 C88451C22AC4 for ; Tue, 20 Feb 2024 19:46:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 528E514E2E3; Tue, 20 Feb 2024 19:45:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=uliege.be header.i=@uliege.be header.b="C4LgFSah" Received: from serv108.segi.ulg.ac.be (serv108.segi.ulg.ac.be [139.165.32.111]) (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 7AF1914A0B6; Tue, 20 Feb 2024 19:45:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=139.165.32.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708458307; cv=none; b=Whdi/iDmdZV5yF5Ktsn0c7Wh3ea3nuar8fzR/t8+Q9hB6cu6dWztbgKqPe74jZNwBR1n7j7+Om0PMaxXgxDkxahJYztrB8cDKJhc3UBQ02Rihcf4n6vcTv+f0KOgEJQOC+FpiraNm+crr9t1uNqMl9KP4e9O2VUvAeI690juALQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708458307; c=relaxed/simple; bh=SQvynyntrh4mzXiFdzzGOqWMD8t0yJGwv9xwE/ScJU0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ij1j65tV0jDZFIxbXHiXvH7ejXL+BEsHzobYRal/HgBpA+KDtj995kt8/lCyMaLi24yMd6bvHns9o0fmClapyTvxj1FVPUhTm3D8mbcjT1LoUHrcCn/zFT4oV7HtkTHd1W60l8yxeMY87DfbAGQhD0uWysgky4JeQUE15hnjgL4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uliege.be; spf=pass smtp.mailfrom=uliege.be; dkim=pass (2048-bit key) header.d=uliege.be header.i=@uliege.be header.b=C4LgFSah; arc=none smtp.client-ip=139.165.32.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uliege.be Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=uliege.be Received: from localhost.localdomain (125.179-65-87.adsl-dyn.isp.belgacom.be [87.65.179.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by serv108.segi.ulg.ac.be (Postfix) with ESMTPSA id 16491200BE5F; Tue, 20 Feb 2024 20:44:57 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 serv108.segi.ulg.ac.be 16491200BE5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uliege.be; s=ulg20190529; t=1708458297; bh=h7EcwSW71SSSDL0dnFc82jgR2ymx/wCW+Xnzy4FBRVk=; h=From:To:Cc:Subject:Date:From; b=C4LgFSahEyCLpy/HMeEojNoufstQvHzsc0cLHBylkMjy5R6wKz0M2EThWqEWa1E3f aZbOQ2aC4LidvCdwG7rmoTVO0/fUmd5bc6oRKreqicN8V9IBzWaAbmCeCpnvHG+itB ARXZArvcM9LHzwUEBoRBMJ7ia6w8J63RLUOjzaDmaqXo4HuRiT2NhV22zptKf9d27S xAbKtDTAlGp0DNoksi2GLtzacI+fDiRgvx8O/HkEVoOJBRtAgb/NfCFmf5CMIivd9l BWs+zfTUk+WnOkqD3AS1VUrNfEBljTUUADxpLLsxNbO+2mf+oSEIO+oHXvilH2kYnx C2NPeZ6YtUc9g== From: Justin Iurman To: netdev@vger.kernel.org Cc: davem@davemloft.net, dsahern@kernel.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-kernel@vger.kernel.org, justin.iurman@uliege.be Subject: [PATCH net-next 0/3] multicast event support for ioam6 Date: Tue, 20 Feb 2024 20:44:41 +0100 Message-Id: <20240220194444.36127-1-justin.iurman@uliege.be> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791448465396076235 X-GMAIL-MSGID: 1791448465396076235 Add generic netlink multicast event support to ioam6 as another solution to share IOAM data with user space. The other one being via IPv6 raw sockets combined with ancillary data. This patchset focuses on the IOAM Pre-allocated Trace (the only Option-Type currently supported), and so on IOAM "trace" events. See an example of a consumer here [1]. [1] https://github.com/Advanced-Observability/ioam-agent-python/blob/netlink_event/ioam-agent.py Suggested-By: Paolo Abeni Justin Iurman (3): uapi: ioam6: API for netlink multicast events ioam6: multicast event net: exthdrs: ioam6: send trace event include/net/ioam6.h | 4 +++ include/uapi/linux/ioam6_genl.h | 20 +++++++++++ net/ipv6/exthdrs.c | 5 +++ net/ipv6/ioam6.c | 61 +++++++++++++++++++++++++++++++++ 4 files changed, 90 insertions(+) base-commit: a6e0cb150c514efba4aaba4069927de43d80bb59