Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1295338rbb; Mon, 26 Feb 2024 05:14:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVBX1XUMsr/X0Tbjlf21HEf2Nfm9pqaRiqgJ7Jo69NknmLzbtEQI3O4OCt8H4vyjGQx7gAqVZ8yiMCdAbRj2lSUaqtkigtfQKx8dcPpzQ== X-Google-Smtp-Source: AGHT+IEfvJYVz25UiWuC93FPlhACwoRfTSzoceUxEMfjCNlSDXp+6zWlpIHaNaht5Hp8MxUwuYBj X-Received: by 2002:a17:903:24f:b0:1db:ccd0:e77e with SMTP id j15-20020a170903024f00b001dbccd0e77emr10246961plh.35.1708953285294; Mon, 26 Feb 2024 05:14:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708953285; cv=pass; d=google.com; s=arc-20160816; b=EPUqoPhEqB/3pgyuoJFFT39Z/+mX0r5TTwO29V5TxHBLEg5h/SuoihEsqieSjI/2A/ 8k4U9PHS6gczo8i+nWj/dBeuLmStUzoUMylwKfZeLhOL9lrkhiEcycHE5ZnvhXoBZ3v2 x4GyTn1/+kchP9jOWGYsVmVyxx2WCgHbxs264RFn+HXz695LqMoKOSsn6inP1NjsLPcF +nbHgbvIdk5hbhZxT9oi8AiOYMyIqXf7C2E+qWaU0xo9RCUTxwdoCjMoHonmJ1bNfsqY mqgSY9y+muSi47SCwXdfk3QfSbQZ2mMDpxPPX08s7++QK3otdrdtA+L47f+kKVRJ10kH O1Bg== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-filter; bh=YND8YDjnCKUnnw5aps81Jl33wEbPNlCkIx5CZfyc34w=; fh=1UEXF8WEdTRZGz3zsBPr9blJ8rxkIELeUsA6ymhnv1o=; b=YUPOPKpDjDXOUchxQ010749q3Q3zfh3BZcYSAAAEROH8a3EqpBf2ugWTxAJ/ucyAFE mSyDuCSZiCg52wyEaq+5hfXCTXijr4I1Sj8sren0/GIN49Z2UD/rmdrpxDjEUafHRYjW zQJ0CAMAEZ0VyLAp4br/wX2AN2eyCJI7PuUyr7bH9KhKlmcJSOCTuQWa0QvtMdHnKhHR kh0BBpMjK4zLxaXBokLXXcN/1a/BmqaCH/KOcIIJBQLkeVmS40fQ5gYLbRJtbaJ2sg5g K4f/1iZXnA0qGkUo2qS0nRrvtrOibhKs2oRsM8sW78qKv4iIqrdPrDf2hCo8PtNJ9zAZ X9vw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@uliege.be header.s=ulg20190529 header.b=MzVOEbQx; 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-81458-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81458-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=uliege.be Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p1-20020a1709026b8100b001dc4b6c737dsi3596340plk.338.2024.02.26.05.14.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 05:14:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81458-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=@uliege.be header.s=ulg20190529 header.b=MzVOEbQx; 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-81458-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81458-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 050DC28D96A for ; Mon, 26 Feb 2024 13:14:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6C2A126F0B; Mon, 26 Feb 2024 13:14:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=uliege.be header.i=@uliege.be header.b="MzVOEbQx" 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 3E78E8529F; Mon, 26 Feb 2024 13:14:34 +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=1708953277; cv=none; b=mVzcyULBoo6VaSlLttA/i2fajdjypoNDEOAQh3RPNADYnD1W0c0FYA2QU03ltyJupbT2/dnltbiT+I2OaDnsN+dC31/g08lppcjyjUqoRHiM7CiymyqLqRDOkC43/8JY2U7FbX8oC/aHr0eO5nOQB1gNgvfuT7SzhehpMMXU8Jw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708953277; c=relaxed/simple; bh=y1rHoM1PmsWaO0MLcbhFFvY5L+UAqwxsnigGbmSxneQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=eaWudIkWCeabpf+zp/2XApRPyMRQxv2p09y8dn0f+EtgB0UFVFy/5GCcNOKSXtCAarDVGtkjzzBgXQwmf2zAxN4f0Aiz+ltqu5gU2Z3YFXtwVW+YasCixTxSCTvt7ZUqEHKeVs29QSs08sBfyk7G1KWTRmnEMcH677xFbgxnVG8= 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=MzVOEbQx; 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 6B899200F809; Mon, 26 Feb 2024 14:14:33 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 serv108.segi.ulg.ac.be 6B899200F809 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uliege.be; s=ulg20190529; t=1708953273; bh=YND8YDjnCKUnnw5aps81Jl33wEbPNlCkIx5CZfyc34w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MzVOEbQxv4GAtYgk3T1NDIpY0BGvSoionFEZ+xB6j2cWF58/eB8jccXawu4EmuvfS JCRZoer1UUej5tbHGRxtdbx/+zGNvsnW6oBXXkV3alfEEvGENXK0frKn+2NjL89JkM BO/FvMO8arE+hT7hYYk36wdnybQbGLtEM21Lg2OFm4mj12SN5iPRBETPK9MiCCRHqt WZ6gXEf0noI0+6fWeD7MJjvmkyFB3h8aPWSUfPmyMacL44hi4YdeI8gV1RPmto8uhj PW7pWL6mg2Zuxhy9apxPZ4yTZAliIX+uFCNzblJNT55AmLwz9B3wj2aCvKoZH6uVpQ uHfjri6u4IGiQ== 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 v5 1/3] uapi: ioam6: API for netlink multicast events Date: Mon, 26 Feb 2024 14:14:10 +0100 Message-Id: <20240226131412.10214-2-justin.iurman@uliege.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240226131412.10214-1-justin.iurman@uliege.be> References: <20240226131412.10214-1-justin.iurman@uliege.be> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add new api to support ioam6 events for generic netlink multicast. A first "trace" event is added to the list of ioam6 events, which will represent an IOAM Pre-allocated Trace Option-Type. It provides another solution to share IOAM data with user space. Reviewed-by: David Ahern Signed-off-by: Justin Iurman --- include/uapi/linux/ioam6_genl.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/include/uapi/linux/ioam6_genl.h b/include/uapi/linux/ioam6_genl.h index ca4b22833754..1733fbc51fb5 100644 --- a/include/uapi/linux/ioam6_genl.h +++ b/include/uapi/linux/ioam6_genl.h @@ -49,4 +49,24 @@ enum { #define IOAM6_CMD_MAX (__IOAM6_CMD_MAX - 1) +#define IOAM6_GENL_EV_GRP_NAME "ioam6_events" + +enum ioam6_event_type { + IOAM6_EVENT_UNSPEC, + IOAM6_EVENT_TRACE, +}; + +enum ioam6_event_attr { + IOAM6_EVENT_ATTR_UNSPEC, + + IOAM6_EVENT_ATTR_TRACE_NAMESPACE, /* u16 */ + IOAM6_EVENT_ATTR_TRACE_NODELEN, /* u8 */ + IOAM6_EVENT_ATTR_TRACE_TYPE, /* u32 */ + IOAM6_EVENT_ATTR_TRACE_DATA, /* Binary */ + + __IOAM6_EVENT_ATTR_MAX +}; + +#define IOAM6_EVENT_ATTR_MAX (__IOAM6_EVENT_ATTR_MAX - 1) + #endif /* _UAPI_LINUX_IOAM6_GENL_H */ -- 2.34.1