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 EC1E745B96; Mon, 21 Oct 2024 23:11:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7385C427B1; Mon, 21 Oct 2024 23:06:59 +0200 (CEST) Received: from egress-ip11a.ess.de.barracuda.com (egress-ip11a.ess.de.barracuda.com [18.184.203.234]) by mails.dpdk.org (Postfix) with ESMTP id 2DB8140E3F for ; Mon, 21 Oct 2024 23:06:15 +0200 (CEST) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03lp2176.outbound.protection.outlook.com [104.47.51.176]) by mx-outbound8-87.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 21 Oct 2024 21:06:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gHh6gtTlEOSmSl1lAM6YPry26oQYr+wrmkHuxRUiDMcgZ7ZdUWhFkjalEuvEDU13ql/ZUA+zT1pNETF9KdvvvIEf4/8jDCCvV672L1ChN7xESw/0ZQRp2bwrPfmIJJugp7mZr8WPG09IPpz8U5o71ITm8iYB1BGZy/rLXcmRmgirzBAsZZVhpMb9EHoEAqhRK+ON10vQOvyYva3kTFpQgf9G6IKIY9KlxS1FcQM1l8vCnuobBP5idkXu0lhxVn0R6wKYFdjkim4x995t3ehg7UEOVch7KI5nYTSm6+1hb+BuAWddxcGumBPTcRsoeK0fVyQTi57lNH9VkLe1hX2HeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=CPSYQdYpfXisoKM+Geigs2KlQ9OnxJFYZ7ugSmJw56Q=; b=J1s5bJy6S3RfvMXtJtr9eJSISaDbP+limpcL/nPh9obn52jBCwcTGlZMmLU8N29xx37y1Cd5LvFZlWzo5JLa9rCxjhXyWOUex8tgjH98bnupBRYHhB4E+8oMZ2hMezCHvUVZYsXy+NozMIbDs/eVmfvBETNEcW0j0z6WKe2yIMejXBrQ41pJBldPAcM1oPbRN331OJHUtVIX8Pd8xayNdZ/FRv/Ok5EIQ+Chwep321z0JSFkYdvom+QXAwhYrsCEdOgRi2vANnO8EKvfkMsJpo4RMN3C6qPEAvTCCFVwlHeVj2Z/ka3cXpvq/r0Hc1tSUOj0rPfq0LBR6EL7EDYosg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 178.72.21.4) smtp.rcpttodomain=dpdk.org smtp.mailfrom=napatech.com; dmarc=fail (p=reject sp=reject pct=100) action=oreject header.from=napatech.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=napatech.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CPSYQdYpfXisoKM+Geigs2KlQ9OnxJFYZ7ugSmJw56Q=; b=D/VZ5CTzR7/QxLJjJOTYWWyFWSVH0gr0uka/dgLNb1eq1bo/bOkZ/tdLZZo1TLShxyA7LITKIeczr3mwRGHv7cH3AkMRuvWm2BrjE0dywWbgfXpHdO2cF0RjD2se97sky3UNFNfn7o15LKwyQmQz5P2j3F2hVzv3xjh6zl2L8+g= Received: from AS9PR04CA0149.eurprd04.prod.outlook.com (2603:10a6:20b:48a::22) by AM9P190MB1073.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:260::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Mon, 21 Oct 2024 21:06:11 +0000 Received: from AMS0EPF000001A8.eurprd05.prod.outlook.com (2603:10a6:20b:48a:cafe::ea) by AS9PR04CA0149.outlook.office365.com (2603:10a6:20b:48a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.29 via Frontend Transport; Mon, 21 Oct 2024 21:06:11 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 178.72.21.4) smtp.mailfrom=napatech.com; dkim=none (message not signed) header.d=none;dmarc=fail action=oreject header.from=napatech.com; Received-SPF: Fail (protection.outlook.com: domain of napatech.com does not designate 178.72.21.4 as permitted sender) receiver=protection.outlook.com; client-ip=178.72.21.4; helo=localhost.localdomain; Received: from localhost.localdomain (178.72.21.4) by AMS0EPF000001A8.mail.protection.outlook.com (10.167.16.148) with Microsoft SMTP Server id 15.20.8093.14 via Frontend Transport; Mon, 21 Oct 2024 21:06:11 +0000 From: Serhii Iliushyk To: dev@dpdk.org Cc: mko-plv@napatech.com, sil-plv@napatech.com, ckm@napatech.com, andrew.rybchenko@oktetlabs.ru, ferruh.yigit@amd.com, Danylo Vodopianov Subject: [PATCH v1 57/73] net/ntnic: added flm stat interface Date: Mon, 21 Oct 2024 23:04:59 +0200 Message-ID: <20241021210527.2075431-58-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241021210527.2075431-1-sil-plv@napatech.com> References: <20241021210527.2075431-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS0EPF000001A8:EE_|AM9P190MB1073:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 3c7cdee2-b6dd-4718-59dc-08dcf214313f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|82310400026|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: =?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Y8f/NDg0hSeDGwAglwSkA?= =?us-ascii?Q?Yg2RxKxl588CC/DYj4lpIDOGpAVHBchi006ArdHgw0yOzaZE7wxRDmD+RWUM?= =?us-ascii?Q?esRTFetw9l0p2U06lEK7fqFzALZM9V87db785QLij+R5Iqtwgz+UXhK//HJv?= =?us-ascii?Q?y+GS6Mebu1pL1gqJPW+LrfYyShCora28aBdrG3cwhKola4/mXKUg/16OFHUD?= =?us-ascii?Q?6RkNkh7b7GTmaj209xNxOW90wij+kHyeOtKsFptICb6ZRUY5a1qcdPJfOo6v?= =?us-ascii?Q?rOTgd8esRsS+bG8zEif3Aml3CQiOxBmOhDgtzozi+sddlxP8lkTHASuwl0Rf?= =?us-ascii?Q?DRNtypMpXl3yQTpgLJNevqXyf5LzFLp/ilvXshtDh8CnHcXrCUiB3ble+Xwu?= =?us-ascii?Q?xcLXTRr+Aam/3fSpLveFq6S4gx9e1nwCJCSdsPsVJbkwwW26E7KGtk4cQPUx?= =?us-ascii?Q?7UELpZXGA8Gz2m+v+0i1zxUHdzFyWN0sdhXTz7EM2Pz+2xCIREEooHlCuw0u?= =?us-ascii?Q?ikVYZ3Fs9xSHx9DKOfRLWhUAncbAgXX3bDcz8NDbV2hiIguBvA=3D=3D?= X-Forefront-Antispam-Report: CIP:178.72.21.4; CTRY:DK; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:localhost.localdomain; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(376014)(82310400026)(1800799024)(36860700013); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 8xozLWNdOgPUIhDM0wbcHrYydDXlmJVq4mBuXHx8xqJMBHSG72kbTm6UPPJA6CapaBCPR9qsNZEd0aVIy9xcj/IZeTJ9zs46kbLQ9zQaqwdNb6d2UB/wX7m+tfbmyBWTXKF7Fzdv3VgoKp0f+Ns1AATGDuUgGNf3ae99YbpQDgI6Clj8oIbcw71JuKy+aaqBaHLcu6jUOFP7uu5s/41hoGBOHTbMUcGLVEcUYO6EvRonoAAneJJ3QCEQa6IQ0Djuy715LtXwUeJrqFpOEav0YOouolVJ4Zlqy65j1BiFbAKnL2jmHn8/lp8LdC8F7yOAJxNuVxQPAOhcYuq2zjsvkaqIVH0/SdG5EeTbzHQzk0tItnhxGkZMAZbIyvXmYSjWKg5ueTD9ouY3zSFGULP/KVIGjbxvD6h/WUyERKY19TfDOf4RVDcUTwvpxA5JEm+pI8oY+b3kTS8DmOfpY4Sj9mNITfGHRpLfdHIg+FpNqGc72LR7TwS5aQ4QoF8dbGOkJPkk/guGwV3jYLcTmdNIEenxtD0HZ0UCnmQZ9ybaEdSnt2PH/M5Oh/ye2qqXbAyUI5PRfrWmfU8iXstt1p5IQNfLNahEooLbLk/1BUwaaP2fnkEr9/ZO/drpdIpjxusAjXoAsrX95BE6lpSF7jJhsAQPdVUw3DTdNEB8s24llKs= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 21:06:11.7708 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3c7cdee2-b6dd-4718-59dc-08dcf214313f X-MS-Exchange-CrossTenant-Id: c4540d0b-728a-4233-9da5-9ea30c7ec3ed X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=c4540d0b-728a-4233-9da5-9ea30c7ec3ed; Ip=[178.72.21.4]; Helo=[localhost.localdomain] X-MS-Exchange-CrossTenant-AuthSource: AMS0EPF000001A8.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9P190MB1073 X-BESS-ID: 1729544772-302135-12923-43237-2 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.51.176 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVkYWppZAVgZQ0MzCJMnAwiIpyd AkKc3C0NLCONXCJNnAJM0sKcnMyNRUqTYWAMiN1zlBAAAA X-BESS-Outbound-Spam-Score: 0.50 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.259883 [from cloudscan8-241.eu-central-1a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.50 BSF_RULE7568M META: Custom Rule 7568M 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.50 using account:ESS113687 scores of KILL_LEVEL=7.0 tests=BSF_RULE7568M, BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 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 From: Danylo Vodopianov flm stat module interface was added. Signed-off-by: Danylo Vodopianov --- drivers/net/ntnic/include/flow_api.h | 2 ++ drivers/net/ntnic/include/flow_filter.h | 1 + drivers/net/ntnic/nthw/flow_api/flow_api.c | 11 +++++++++++ drivers/net/ntnic/ntnic_mod_reg.h | 2 ++ 4 files changed, 16 insertions(+) diff --git a/drivers/net/ntnic/include/flow_api.h b/drivers/net/ntnic/include/flow_api.h index 4a1525f237..ed96f77bc0 100644 --- a/drivers/net/ntnic/include/flow_api.h +++ b/drivers/net/ntnic/include/flow_api.h @@ -233,4 +233,6 @@ int flow_nic_set_hasher(struct flow_nic_dev *ndev, int hsh_idx, enum flow_nic_ha int flow_nic_set_hasher_fields(struct flow_nic_dev *ndev, int hsh_idx, struct nt_eth_rss_conf rss_conf); +int flow_get_flm_stats(struct flow_nic_dev *ndev, uint64_t *data, uint64_t size); + #endif diff --git a/drivers/net/ntnic/include/flow_filter.h b/drivers/net/ntnic/include/flow_filter.h index d204c0d882..01777f8c9f 100644 --- a/drivers/net/ntnic/include/flow_filter.h +++ b/drivers/net/ntnic/include/flow_filter.h @@ -11,5 +11,6 @@ int flow_filter_init(nthw_fpga_t *p_fpga, struct flow_nic_dev **p_flow_device, int adapter_no); int flow_filter_done(struct flow_nic_dev *dev); +int flow_get_flm_stats(struct flow_nic_dev *ndev, uint64_t *data, uint64_t size); #endif /* __FLOW_FILTER_HPP__ */ diff --git a/drivers/net/ntnic/nthw/flow_api/flow_api.c b/drivers/net/ntnic/nthw/flow_api/flow_api.c index 2c2e4d9d21..ce28fd2fa1 100644 --- a/drivers/net/ntnic/nthw/flow_api/flow_api.c +++ b/drivers/net/ntnic/nthw/flow_api/flow_api.c @@ -1058,6 +1058,16 @@ int flow_nic_set_hasher_fields(struct flow_nic_dev *ndev, int hsh_idx, return profile_inline_ops->flow_nic_set_hasher_fields_inline(ndev, hsh_idx, rss_conf); } +int flow_get_flm_stats(struct flow_nic_dev *ndev, uint64_t *data, uint64_t size) +{ + (void)ndev; + (void)data; + (void)size; + + NT_LOG_DBGX(DBG, FILTER, "Not implemented yet"); + return -1; +} + static const struct flow_filter_ops ops = { .flow_filter_init = flow_filter_init, .flow_filter_done = flow_filter_done, @@ -1072,6 +1082,7 @@ static const struct flow_filter_ops ops = { .flow_destroy = flow_destroy, .flow_flush = flow_flush, .flow_dev_dump = flow_dev_dump, + .flow_get_flm_stats = flow_get_flm_stats, /* * Other diff --git a/drivers/net/ntnic/ntnic_mod_reg.h b/drivers/net/ntnic/ntnic_mod_reg.h index 8b825d8c48..8703d478b6 100644 --- a/drivers/net/ntnic/ntnic_mod_reg.h +++ b/drivers/net/ntnic/ntnic_mod_reg.h @@ -336,6 +336,8 @@ struct flow_filter_ops { int (*flow_flush)(struct flow_eth_dev *dev, uint16_t caller_id, struct rte_flow_error *error); + int (*flow_get_flm_stats)(struct flow_nic_dev *ndev, uint64_t *data, uint64_t size); + /* * Other */ -- 2.45.0