From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DB3F445459; Wed, 19 Jun 2024 12:08:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4202D42E45; Wed, 19 Jun 2024 12:08:22 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2120.outbound.protection.outlook.com [40.107.236.120]) by mails.dpdk.org (Postfix) with ESMTP id 2789042DC5 for ; Wed, 19 Jun 2024 12:08:19 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MZUPOWgdVMxTXJMEnhB0g4ZKa/xg/nLAfJIjrMmwWEC96emx/Zv1o88SMwng2ciA28BwZY65fHVhGaT7NHHVghBioItpbABWnE20Qg2Sv0GGJsGvIehQccvrss3PxRlKI66IOL8f/B/k92UH8wVa5hzH6RTWc5VaKZem0Me1CWbzf444gtGffjJH1E6YrztDL4K0PwR6RhtrOEfJ4XN6ujJzNanOT2dyaCPmb8yPK2T9g4rGxVobxxWCgljpafob9C6cI2T20aJXnuKDK1paO7GQiyaWZxyFbk6VUblm9vMtTxuURPQVyIYnetGrpGBCSvEaRwvnB0q7d7WOrOxwwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=p4e6HRzfSYxzVZBhJ77J7hipmXMRNPwDhT9w9ihVes4=; b=XrizE2I3S1YbqNulLOdPIH3gc2ZLNr5vkoyohSlQFTh/eIkw68896WopgVuQLQrgv3CbwEtDQ8KWWWpU0IgXo3jQ40cFt48/gOxrZgvdSjipi1meeUChWlipxR+yVuJUf9vQdSqAOuFU0YlK+ltv7PUz+rIZcKyxQI44W885WhhUBGEPcPaK8oyJeZx/jBKrG8eWV9X7gssBDlR7mXE5j3z6M/tKrxzuqzdYAELRNIB61Uo4C/v+TDbm4nKsjyx9bwsMp71kMP9jLllZtiD8EhO7coYqYIaJo7hg4AI9ycHV7S4oq9LCc3rcm4R0t9e9KRbdRrvMLiiA6U/jeDBlVg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p4e6HRzfSYxzVZBhJ77J7hipmXMRNPwDhT9w9ihVes4=; b=LAQmLgm4WRQiURMZWQmPkWTYHy5w6fsoyBH/lCnn6HRT5Za0PRl2wRDrk2SyN3ceXgvA9I7mR1OAh8TeDK73jNOeXhhovwbo3nBEcKGl+98+qJ4n75t8UX8AG8lY+I9DDWqkOR3UxIxVViZsKe9P1FxOWmR/5Bn6V/VbPXw7Fu8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by MWHPR13MB7153.namprd13.prod.outlook.com (2603:10b6:303:283::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.19; Wed, 19 Jun 2024 10:08:17 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833%4]) with mapi id 15.20.7677.030; Wed, 19 Jun 2024 10:08:17 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He , Long Wu , Peng Zhang Subject: [PATCH 3/7] net/nfp: add trace point about Qos Date: Wed, 19 Jun 2024 18:07:50 +0800 Message-Id: <20240619100754.3480077-4-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240619100754.3480077-1-chaoyong.he@corigine.com> References: <20240619100754.3480077-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BYAPR06CA0003.namprd06.prod.outlook.com (2603:10b6:a03:d4::16) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|MWHPR13MB7153:EE_ X-MS-Office365-Filtering-Correlation-Id: 6d6137ed-ded4-42f2-b788-08dc9047bd08 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230037|52116011|376011|1800799021|366013|38350700011; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?MTjKYTpPTKt9llrv5FFttPEqoTO51bnVaRlTFw2f/sG/1jc4yE72vnFDxOsq?= =?us-ascii?Q?F54JeNfEUL/C/su5HqBwVtajgpJup/hYlNzCxKXt/WnMzodzG29dLoNYV2zn?= =?us-ascii?Q?PhEV06rbjDU9C2oPeBgqDPPANaWy1FXruPq5X3E5OTNjAiVWzVgd4oLq+kji?= =?us-ascii?Q?uQEyPlNYQkCp3encMI28j6/AC/+ngNmT9LQ++SVz4flY28n4k00rtAh+5yWB?= =?us-ascii?Q?cGG+AB7vSTd7y0D7nHPAPOgg26PFVGDZsdixjqjiqFQeMeDTWayb/w6a8UyY?= =?us-ascii?Q?zndC6sdsWY+WaUutQIsLReVQyyKwin/exZ1gmP+pVdBG+bOVnaQfJ1tB58Hy?= =?us-ascii?Q?WwBgnk34ulyVFPZlAGf+rAdTVCF5ibZPJuEBg5YPzq+af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eVlHiCwzapYW3Z5jjTOBn2NvBL9JLKcUvyuEJ1wsaYQOyqn?= =?us-ascii?Q?YyL03nN4sYosIYpnsrUMcGbStK5+P5Xlk6wzBwqdsW1WbCDSAKLj86uSnxsP?= =?us-ascii?Q?5kQLq9Y=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230037)(52116011)(376011)(1800799021)(366013)(38350700011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?9+QgyyEEdDowGVUhUddiHogUgQ7tW/lP/ReAgA6apScy3c2ZpMEjDiAqSvsS?= =?us-ascii?Q?UYcYlWfN2tOFLoqlaGXSX1hyt4dCXkfj21o3unzQdnxDRM1SjKwAnBjG8kAg?= =?us-ascii?Q?CjSLVnrsZ4d02BjQf6q8ycVtd3vaHJRmH6yJjSDtExgTe2t7prZA8Sh30XQ/?= =?us-ascii?Q?At9pnAEq/OT2EpYaviFDmCnNsnFLe4vJWjO+4f/rI3aGgQF5Gm9nEHov28sY?= =?us-ascii?Q?7+6ucz1BsZj/TjCW9kwnKbYd2xYr3DBRVaZspRE+Eaxz4lLubtf/RdA1SqA0?= =?us-ascii?Q?1FkFUQsFCc9CFKwHOzbD8AiVYzWPardqcHYDQIuJRCzK/dtVSRr2+GeB0xwq?= =?us-ascii?Q?oOeJHqjaEUJFjdbP26EE82ChzPCppi9QpS9Kwxl/rbLc7IflvTUyRiFfhsb9?= =?us-ascii?Q?m6KplVv0GbEjWjcJzStYO7NfNt2tZpMdQJFAUKvDSb9m0KhhIYjOW66amKbV?= =?us-ascii?Q?QcsAkYu0FRuFN5NwUFYIna9l2KgVWJJGdmickaFL9RWPBOOx09QJOxSBrX4/?= =?us-ascii?Q?2oB4j/XpIt+FFrnnfwrBIVr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?Q?87cxqUCbFDUSDjUZv+kTBiqD0CfC34fewwIJG2wgWuPUjcIH6AQwCzQIuRC4?= =?us-ascii?Q?8O9gZeCDdFvhGo++O5Bcji+Xvbynw0oq6Djj5HVd1eiBF4SQ/ETnisZNZipw?= =?us-ascii?Q?DkTqpptj2YzPw9o05Ne2j/3NNVmR+EQIJ695Qm8IsPsWgsLjq1oKTvd8Vhyl?= =?us-ascii?Q?Lw=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6d6137ed-ded4-42f2-b788-08dc9047bd08 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2024 10:08:17.1315 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9TfIJwUvz/GAwjICyM31E5CYxxOCdmuzsW1dtRPNW1X9ybA0pImw5jvaIl6cH0PzSnG1VBADp+s8L7y1SMb7OwjxkvM5E2btqov/O/mJlUI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR13MB7153 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Add 1 trace point of control message related with Qos. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/net/nfp/flower/nfp_flower_cmsg.c | 4 ++++ drivers/net/nfp/nfp_trace.c | 3 +++ drivers/net/nfp/nfp_trace.h | 29 ++++++++++++++++++++++++ 3 files changed, 36 insertions(+) diff --git a/drivers/net/nfp/flower/nfp_flower_cmsg.c b/drivers/net/nfp/flower/nfp_flower_cmsg.c index 30ce68b42d..b07cea9921 100644 --- a/drivers/net/nfp/flower/nfp_flower_cmsg.c +++ b/drivers/net/nfp/flower/nfp_flower_cmsg.c @@ -528,6 +528,8 @@ nfp_flower_cmsg_qos_add(struct nfp_app_fw_flower *app_fw_flower, return -EIO; } + rte_pmd_nfp_trace_cmsg_qos_rule("cmsg_qos_add", msg); + return 0; } @@ -558,6 +560,8 @@ nfp_flower_cmsg_qos_delete(struct nfp_app_fw_flower *app_fw_flower, return -EIO; } + rte_pmd_nfp_trace_cmsg_qos_rule("cmsg_qos_delete", msg); + return 0; } diff --git a/drivers/net/nfp/nfp_trace.c b/drivers/net/nfp/nfp_trace.c index 730ffaa32e..529399e1a8 100644 --- a/drivers/net/nfp/nfp_trace.c +++ b/drivers/net/nfp/nfp_trace.c @@ -33,3 +33,6 @@ RTE_TRACE_POINT_REGISTER(rte_pmd_nfp_trace_cmsg_pre_tun, RTE_TRACE_POINT_REGISTER(rte_pmd_nfp_trace_cmsg_tun_mac, pmd.net.nfp.cmsg.tun.mac_rule) + +RTE_TRACE_POINT_REGISTER(rte_pmd_nfp_trace_cmsg_qos_rule, + pmd.net.nfp.cmsg.qos.rule) diff --git a/drivers/net/nfp/nfp_trace.h b/drivers/net/nfp/nfp_trace.h index 48a14efd3a..5f8f3c373b 100644 --- a/drivers/net/nfp/nfp_trace.h +++ b/drivers/net/nfp/nfp_trace.h @@ -192,4 +192,33 @@ RTE_TRACE_POINT( rte_trace_point_emit_blob(addr_bytes, len); ) +RTE_TRACE_POINT( + rte_pmd_nfp_trace_cmsg_qos_rule, + RTE_TRACE_POINT_ARGS(const char *name, void *cmsg), + + rte_trace_point_emit_string(name); + + struct nfp_profile_conf *msg = cmsg; + uint32_t bkt_tkn_p = rte_be_to_cpu_32(msg->bkt_tkn_p); + uint32_t bkt_tkn_c = rte_be_to_cpu_32(msg->bkt_tkn_c); + uint32_t pbs = rte_be_to_cpu_32(msg->pbs); + uint32_t cbs = rte_be_to_cpu_32(msg->cbs); + uint32_t pir = rte_be_to_cpu_32(msg->pir); + uint32_t cir = rte_be_to_cpu_32(msg->cir); + + struct nfp_cfg_head *head = &msg->head; + uint32_t flags_opts = rte_be_to_cpu_32(head->flags_opts); + uint32_t profile_id = rte_be_to_cpu_32(head->profile_id); + + rte_trace_point_emit_u32(flags_opts); + rte_trace_point_emit_u32(profile_id); + + rte_trace_point_emit_u32(bkt_tkn_p); + rte_trace_point_emit_u32(bkt_tkn_c); + rte_trace_point_emit_u32(pbs); + rte_trace_point_emit_u32(cbs); + rte_trace_point_emit_u32(pir); + rte_trace_point_emit_u32(cir); +) + #endif /* __NFP_TRACE_H__ */ -- 2.39.1