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 7EA1D455C0; Mon, 8 Jul 2024 04:46:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BA46140B8C; Mon, 8 Jul 2024 04:46:11 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2105.outbound.protection.outlook.com [40.107.236.105]) by mails.dpdk.org (Postfix) with ESMTP id A065B402D5 for ; Mon, 8 Jul 2024 04:46:08 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WSNiko0DYu322kLg8580aU3VDbhnIC6K7TdoNuOSIDLvtTOeL0Kz3zZwRmWkB256QX1lyHUqvnEqgx20zTeG62crturq21GENtrV1Z/kHPH0o5nHoRH8g+diEbvOSP1XcEcZe7Q1j+QBhXrKjqsqi11mt4vWDRnKWBIuTziypqOACE+l9ePW7n6ZxXVu9eLmG4hzN1NE0CtX4WTZaQLCtrmzijKuTGrQWiTA3yXz60Ud2tvmPwnrEghxByKPy91/90S0MNUdno9d+tJOB1XI4947Y0wSUUEJJWixr4vbHNSV/HbTJ345yLLGAP3ZQZjQhpt1g6RTWA8B5rrEgZKJRA== 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=94BtSnsppAtEPfkHBYVABivARhvgybYAg1cZhTXDzmk=; b=FIPiF6n5UfUgAJ7/1iXWkMI8UkC/tEahAdVMDmx1kPztjTYYreTPxA52igxMLxOxYW/U/noQKvHS9jM1I++yfOUi+sG3/s1k3q1P2glsc9CTiqQToFos4AM3K9wBjZWUm2wTd8989jINUYt6Q83vOavQemOWVuQcUIq7tQK76PEQXeGUJgObocNide5oh81EeGzSnx58BAsGY/Gzvuw5UVhhmHsCp0A6LUObD1acq7wD4Y9uy9BKPcTPKwDGHMNr5ZR59+l/8kwyafon95vDBKyPOh30UbfI4K36LimsH3VGMWj7b6DpSeeU19BfO0OnmiSMVPA5l8XxgTd3qvOcnA== 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=94BtSnsppAtEPfkHBYVABivARhvgybYAg1cZhTXDzmk=; b=JqPcQWqjIDNhx6KP5J0AC1MVBccu4Ik6KSiTywa65f2baiWfy86+ZTIP0ZbOKzKN+AZFUo4VRRk30A5gDD1oZnT7TV+jOsCR8SKbA/rBHEw0zfQGLO6TtXbVfx4UGBF4NKJT/hc7YsbK4K1yuiXemVPT6w+rMQFClTNlQUnX72o= 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 LV8PR13MB6624.namprd13.prod.outlook.com (2603:10b6:408:22c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.35; Mon, 8 Jul 2024 02:46:07 +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.7741.033; Mon, 8 Jul 2024 02:46:07 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He , Long Wu , Peng Zhang Subject: [PATCH v2 1/7] net/nfp: add trace points about port Date: Mon, 8 Jul 2024 10:45:37 +0800 Message-Id: <20240708024543.77126-2-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240708024543.77126-1-chaoyong.he@corigine.com> References: <20240619100754.3480077-1-chaoyong.he@corigine.com> <20240708024543.77126-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0272.namprd03.prod.outlook.com (2603:10b6:a03:39e::7) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|LV8PR13MB6624:EE_ X-MS-Office365-Filtering-Correlation-Id: af514506-cdc7-45d2-abbd-08dc9ef81dca X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?AQkeCSrXKcAFHk91HA4xSj/QGvIxjdTS9slN+GzMY78LhDr9LN3W2TplGlQl?= =?us-ascii?Q?V1bohvysU3BqoUOI6idi82tmm3xV9dC+SWolScZr0WU+3P8ShJHMsHDJMF8F?= =?us-ascii?Q?o44DY2IJ2yRip7azMA/skY2O7h4fhXa66PLG3pf7hDH3znst8Wf0gRMIFO2I?= =?us-ascii?Q?kgjC0WQOrt+PVNL+kbX6KNrrbwDFvAY79OeT+QpxGoPWx79uIKkYbdSq7R//?= =?us-ascii?Q?dpG+pqp1d5q5mA0PZcXeqKguC7rCgVLINd2LF22b5V6J8A18pHb3yWen87V9?= =?us-ascii?Q?GnI5KK1a0ldwPu5i1hnKAt34O79wCr3EWIoqZ406fmAwD5cgnai/nx0fCu+d?= =?us-ascii?Q?uHTrJfD35zrvE+SKDYweL2JrgQnJoxETjfaRcZz/V5HvcElRe4BkCQYacLtm?= =?us-ascii?Q?PSoiVVkzM1WrTb6di+YM8DiF49+QzZzJNfmAHUAMxKw3IvN/2S78xERUhRK3?= =?us-ascii?Q?QW6VVTJwtfcmo/UcM9K3nnWta0ZlN6ks3O6fWsgp5HqtTepgdWp6I9y1V3oh?= =?us-ascii?Q?Fe9vYeoEkOVGN4NIwQGxTQhjhQ7GNSvm/dbcK0in7mkHvJ/Iv6L2U+tQQzO0?= =?us-ascii?Q?6C8gFE1e+z4VJOb4bO0xFqgicgs/iEe9/86pSppeGKzGInC4V7u4nJ1//4pd?= =?us-ascii?Q?n3pvhBhJ0WCsSm+cczTt76jZqQIwh+if4IZX+r/Dk/0aIxKOfsPazPSIST3R?= =?us-ascii?Q?sUiWGtkA5FbU7LooCogleIl5ZveYXQXMokeEK97v5GTghIjmDw0LykKh//m8?= =?us-ascii?Q?XQPhqC12yQ9Ng2Ydvhza0LXOGNFemvX22Os3A26a9M48DGbQhC05MrYmJEsv?= =?us-ascii?Q?lI+JDU+0oH2mkPYiumtzim4Y8Qn0mBoQYF2RL3HB0IsEGnICtupiNBdy2iBj?= =?us-ascii?Q?HCtgKCnZgmsxLx6znjQGv3A05OHlyNp3BHxKjH8Z8EWlmKAnXGu60WanfIAf?= =?us-ascii?Q?Xnf/sPHl3kcgxRbcRjbDWWxKc0xVeeoCtJf902Dxdn59pLPOxPyWb18sDJoF?= =?us-ascii?Q?hE+NGCVywFVsI+S9xvlq0vOAmMlQe5CSDF37+p4DTqSEOyv1Uyx18FkDRf5H?= =?us-ascii?Q?/S9fZABbGpHEq1qnLR9xKhkBlXPqAlI8N7Kcx/zPXmgARSNDn0hWnCsRmtkY?= =?us-ascii?Q?A+Yndsc360OEpvw2qEnilFoWh3SNvIa5TdGgCvLRdepD47EECT3rBCEFR4qF?= =?us-ascii?Q?U4+0SFRabJL3Y7Swq4e83rOFOMDTJE91jnF4RH+tVptTOr10xKSOGcMxSjci?= =?us-ascii?Q?SXY4hoo0AxS2AoXv0AwCBoIu4LPIGWBuqWQt5BxIFdRult7fDSe6DVQubj+6?= =?us-ascii?Q?8U6iIweJW73UPrbX/P+H72rZtI8/6Ek4mYR2fxRbTxXXfZKbWJNHkxTau/TI?= =?us-ascii?Q?vnL9fyIcQTlreHLi/U2N6cOiHdXJIp0ULxFU0mzD9ReR75hVBQ=3D=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:(13230040)(376014)(52116014)(1800799024)(366016)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?kIs91l+YIXxQ6HiGlYhgochf+9oYDz2aWGEuQebEhTsQz9Q0625M+o0VjXKP?= =?us-ascii?Q?1ZMBVNhk7dfYtL28OEzR5g3ulnVEr4uL6YRkzAfGUDUBZxoYolNeyGWgHbci?= =?us-ascii?Q?bAtrl65OSGPzAKCzoD0GsyC6iWGsesaDSMQbxVygq8RgjxzVZNDfEbyHou+R?= =?us-ascii?Q?g1iYw07naHzHm5PfziZNN/EcNF+ZZnLzoF6xreAI57qNTi9L7J4/qY63PIE/?= =?us-ascii?Q?aL2PjCvEUtRSGiBTewMCFMaa4AU7FZ+bDwctiSueWbVfzNHo8DeVjD/My6uK?= =?us-ascii?Q?Ictya4qULHmZ/gyvpL3bv9Cw+sX4cKK/8FavWMG5/CtgRV9CsY+lRH3SY54P?= =?us-ascii?Q?Y6I+C/LQSztfKBOWTu8X8f8TPAgjkR6ySZyAr2Co+WFAQCG74fUZmngk9HTw?= =?us-ascii?Q?FjIDWeJfWFmnYFXt6d24z4/IAVLnUy0wD44LcM20JlT2oFmU/tmbR5Xfa8Bm?= =?us-ascii?Q?pLAHHBGpdn0+i9py4WW6dHZM/As2Fbcwb2PYqV4q3lQ9vT425QdQxBmL6cId?= =?us-ascii?Q?8VAc7b1XBj1QtwfkwxLS+GsN4p3MMPoWi98OzhtwaFAaNje70CW+uI21p4RZ?= =?us-ascii?Q?bzwkRY5ZzjJMED6QPb4AxonQ1B62qvTN3fi+KiOk0wuiSqLrrz00xhruAOrQ?= =?us-ascii?Q?HaxzDA+wqU7lb9SQVETZwHRPg0I20lM+85lgXtfOuNQFmx2gS19xiYl6AlqM?= =?us-ascii?Q?2lXfXo+FX59hjhDrnz8xIjSjF3cPd8AoTi0gdoRzaXpxnMUXrhsq6JLgvqeH?= =?us-ascii?Q?tB9ysjjmXY6dtH2LBuA7ytFgLSD9i5uFcH+v6ffncppe1R/YT3sZqFjLUQzP?= =?us-ascii?Q?xx+WDs/2NRjIOXylKHz67hxkSqd0a+YarRs8dNhIi2axIWptbso741qt4dCI?= =?us-ascii?Q?LK06w57PqqB6AHG60lDgWqBKzKojfGZhsMTd6caoqUHW3iPEphLSiK4BriVN?= =?us-ascii?Q?3Iehj/mB9lVA0gj5rhN0rdFjZrm7EHs11mVx3pOxnJerrfPCOyXVRA/LWOrR?= =?us-ascii?Q?vELXU3gzJkn2UnV4dVswIBK1X/gNA11/ovMrRnZVukk4psothcQOemQnhSkK?= =?us-ascii?Q?fNEugJr2p1vBdmotPjJBulhH7lCzSH+in0MMibAF27QF+DS76wNqK0xusT+h?= =?us-ascii?Q?UQEziKM2pad1NDH8ZP314FoNoL06oLvkgazfjMJ5SSsMfIKEcEuewW08v7ff?= =?us-ascii?Q?VnD53YXw1Nw/Aei35OI7FCZqSYd+BNkkQR6l7MjyjrXbj74xWFCZuKvjQmCl?= =?us-ascii?Q?U2QmuGCAANoukoGW1vMlEmv8mVxYx32sUtrgyImQMiAznT569Vfif4hFB9B9?= =?us-ascii?Q?86DThJCMYDTbpPrggm4Zlf7nC9BJiyP/xaDVhJ1cROaXZ0yNJRGNJAmj0Uxv?= =?us-ascii?Q?10VY0SvzkVV9j704QKtmpQvNGbRAE2OvF9uMeFxFZXj7/sl063b+PGQ+iKM+?= =?us-ascii?Q?bbhpfOZ2+/kTqPYv9v6iNfwO/Lk4ERV+jtbxCU8HBPXImq9mPfpu94jvIJPe?= =?us-ascii?Q?TZixMoB0PP9zCT8kPKH3iHsGU6kvvAup2OR5/lmtcDWOiYsDr6s6XHB3K/i5?= =?us-ascii?Q?YWBK7GAUm2FfhSnDZqMA2EcYOo56npMoV4nFnXWuE3zlKPR2LgEOJq8z4dzo?= =?us-ascii?Q?vQ=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: af514506-cdc7-45d2-abbd-08dc9ef81dca X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2024 02:46:07.1684 (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: 0IKBgLvuY2Y59wxLWikzL8PyEunU2MwZakeGy4efCiwscI9NzxlHmOiKuJRGSBP2wmBIGHT5tXBXhgq8mQe0B6/1RkUOZUcf6BYQjnhUby4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR13MB6624 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 3 trace points of control message related with representor port, also modify the needed logic. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/net/nfp/flower/nfp_flower_cmsg.c | 17 +++++-- drivers/net/nfp/flower/nfp_flower_cmsg.h | 14 +++--- drivers/net/nfp/meson.build | 1 + drivers/net/nfp/nfp_trace.c | 17 +++++++ drivers/net/nfp/nfp_trace.h | 62 ++++++++++++++++++++++++ 5 files changed, 100 insertions(+), 11 deletions(-) create mode 100644 drivers/net/nfp/nfp_trace.c create mode 100644 drivers/net/nfp/nfp_trace.h diff --git a/drivers/net/nfp/flower/nfp_flower_cmsg.c b/drivers/net/nfp/flower/nfp_flower_cmsg.c index 9a5b5f52b8..ff20938b69 100644 --- a/drivers/net/nfp/flower/nfp_flower_cmsg.c +++ b/drivers/net/nfp/flower/nfp_flower_cmsg.c @@ -10,6 +10,7 @@ #include "../nfp_net_meta.h" #include "nfp_flower_ctrl.h" #include "nfp_flower_representor.h" +#include "nfp_trace.h" static char* nfp_flower_cmsg_get_data(struct rte_mbuf *m) @@ -65,15 +66,12 @@ nfp_flower_cmsg_mac_repr_init(struct rte_mbuf *mbuf, } static void -nfp_flower_cmsg_mac_repr_fill(struct rte_mbuf *m, +nfp_flower_cmsg_mac_repr_fill(struct nfp_flower_cmsg_mac_repr *msg, uint8_t idx, uint32_t nbi, uint32_t nbi_port, uint32_t phys_port) { - struct nfp_flower_cmsg_mac_repr *msg; - - msg = (struct nfp_flower_cmsg_mac_repr *)nfp_flower_cmsg_get_data(m); msg->ports[idx].idx = idx; msg->ports[idx].info = nbi & NFP_FLOWER_CMSG_MAC_REPR_NBI; msg->ports[idx].nbi_port = nbi_port; @@ -91,6 +89,7 @@ nfp_flower_cmsg_mac_repr(struct nfp_app_fw_flower *app_fw_flower, uint32_t nbi_port; uint32_t phys_port; struct rte_mbuf *mbuf; + struct nfp_flower_cmsg_mac_repr *msg; mbuf = rte_pktmbuf_alloc(app_fw_flower->ctrl_pktmbuf_pool); if (mbuf == NULL) { @@ -101,13 +100,14 @@ nfp_flower_cmsg_mac_repr(struct nfp_app_fw_flower *app_fw_flower, nfp_flower_cmsg_mac_repr_init(mbuf, app_fw_flower); /* Fill in the mac repr cmsg */ + msg = (struct nfp_flower_cmsg_mac_repr *)nfp_flower_cmsg_get_data(mbuf); for (i = 0; i < app_fw_flower->num_phyport_reprs; i++) { id = nfp_function_id_get(pf_dev, i); nbi = pf_dev->nfp_eth_table->ports[id].nbi; nbi_port = pf_dev->nfp_eth_table->ports[id].base; phys_port = pf_dev->nfp_eth_table->ports[id].index; - nfp_flower_cmsg_mac_repr_fill(mbuf, i, nbi, nbi_port, phys_port); + nfp_flower_cmsg_mac_repr_fill(msg, i, nbi, nbi_port, phys_port); } /* Send the cmsg via the ctrl vNIC */ @@ -118,6 +118,9 @@ nfp_flower_cmsg_mac_repr(struct nfp_app_fw_flower *app_fw_flower, return -EIO; } + for (i = 0; i < app_fw_flower->num_phyport_reprs; i++) + rte_pmd_nfp_trace_cmsg_port_repr("cmsg_mac_repr", &msg->ports[i], i); + return 0; } @@ -148,6 +151,8 @@ nfp_flower_cmsg_repr_reify(struct nfp_app_fw_flower *app_fw_flower, return -EIO; } + rte_pmd_nfp_trace_cmsg_port_repr_reify("cmsg_port_reify", msg); + return 0; } @@ -179,6 +184,8 @@ nfp_flower_cmsg_port_mod(struct nfp_app_fw_flower *app_fw_flower, return -EIO; } + rte_pmd_nfp_trace_cmsg_port_mod("cmsg_port_mod", msg); + return 0; } diff --git a/drivers/net/nfp/flower/nfp_flower_cmsg.h b/drivers/net/nfp/flower/nfp_flower_cmsg.h index 5d23227c24..c52f01dbc7 100644 --- a/drivers/net/nfp/flower/nfp_flower_cmsg.h +++ b/drivers/net/nfp/flower/nfp_flower_cmsg.h @@ -65,15 +65,17 @@ enum nfp_flower_cmsg_type { * this forms NBIX.PortY notation as the NSP eth table. * "Chip-wide" port (bits 7-0): */ +struct nfp_flower_cmsg_mac_repr_entry { + uint8_t idx; + uint8_t info; + uint8_t nbi_port; + uint8_t phys_port; +}; + struct nfp_flower_cmsg_mac_repr { uint8_t reserved[3]; uint8_t num_ports; - struct { - uint8_t idx; - uint8_t info; - uint8_t nbi_port; - uint8_t phys_port; - } ports[]; + struct nfp_flower_cmsg_mac_repr_entry ports[]; }; /* diff --git a/drivers/net/nfp/meson.build b/drivers/net/nfp/meson.build index d805644ec5..b7e5beffb0 100644 --- a/drivers/net/nfp/meson.build +++ b/drivers/net/nfp/meson.build @@ -44,6 +44,7 @@ sources = files( 'nfp_net_meta.c', 'nfp_rxtx.c', 'nfp_service.c', + 'nfp_trace.c', ) deps += ['hash', 'security', 'common_nfp'] diff --git a/drivers/net/nfp/nfp_trace.c b/drivers/net/nfp/nfp_trace.c new file mode 100644 index 0000000000..c1f90e167f --- /dev/null +++ b/drivers/net/nfp/nfp_trace.c @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright (c) 2024 Corigine Systems, Inc. + * All rights reserved. + */ + +#include + +#include "nfp_trace.h" + +RTE_TRACE_POINT_REGISTER(rte_pmd_nfp_trace_cmsg_port_repr, + pmd.net.nfp.cmsg.port.repr) + +RTE_TRACE_POINT_REGISTER(rte_pmd_nfp_trace_cmsg_port_repr_reify, + pmd.net.nfp.cmsg.port.repr_reify) + +RTE_TRACE_POINT_REGISTER(rte_pmd_nfp_trace_cmsg_port_mod, + pmd.net.nfp.cmsg.port.mod) diff --git a/drivers/net/nfp/nfp_trace.h b/drivers/net/nfp/nfp_trace.h new file mode 100644 index 0000000000..5b8f855634 --- /dev/null +++ b/drivers/net/nfp/nfp_trace.h @@ -0,0 +1,62 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright (c) 2024 Corigine Systems, Inc. + * All rights reserved. + */ + +#ifndef __NFP_TRACE_H__ +#define __NFP_TRACE_H__ + +#include + +#include "flower/nfp_flower_cmsg.h" + +RTE_TRACE_POINT( + rte_pmd_nfp_trace_cmsg_port_repr, + RTE_TRACE_POINT_ARGS(const char *name, void *cmsg, uint8_t index), + + rte_trace_point_emit_string(name); + rte_trace_point_emit_u8(index); + + struct nfp_flower_cmsg_mac_repr_entry *entry = cmsg; + uint8_t idx = entry->idx; + uint8_t info = entry->info; + uint8_t nbi_port = entry->nbi_port; + uint8_t phys_port = entry->phys_port; + + rte_trace_point_emit_u8(idx); + rte_trace_point_emit_u8(info); + rte_trace_point_emit_u8(nbi_port); + rte_trace_point_emit_u8(phys_port); +) + +RTE_TRACE_POINT( + rte_pmd_nfp_trace_cmsg_port_repr_reify, + RTE_TRACE_POINT_ARGS(const char *name, void *cmsg), + + rte_trace_point_emit_string(name); + + struct nfp_flower_cmsg_port_reify *msg = cmsg; + uint32_t portnum = rte_be_to_cpu_32(msg->portnum); + uint16_t info = rte_be_to_cpu_16(msg->info); + + rte_trace_point_emit_u32(portnum); + rte_trace_point_emit_u16(info); +) + +RTE_TRACE_POINT( + rte_pmd_nfp_trace_cmsg_port_mod, + RTE_TRACE_POINT_ARGS(const char *name, void *cmsg), + + rte_trace_point_emit_string(name); + + struct nfp_flower_cmsg_port_mod *msg = cmsg; + uint32_t portnum = rte_be_to_cpu_32(msg->portnum); + uint8_t info = msg->info; + uint16_t mtu = rte_be_to_cpu_16(msg->mtu); + + rte_trace_point_emit_u32(portnum); + rte_trace_point_emit_u8(info); + rte_trace_point_emit_u16(mtu); +) + +#endif /* __NFP_TRACE_H__ */ -- 2.39.1