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 82221460D6; Tue, 21 Jan 2025 18:11:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ED22A40E0A; Tue, 21 Jan 2025 18:09:05 +0100 (CET) Received: from egress-ip42a.ess.de.barracuda.com (egress-ip42a.ess.de.barracuda.com [18.185.115.201]) by mails.dpdk.org (Postfix) with ESMTP id 4D1DA40687 for ; Tue, 21 Jan 2025 18:08:47 +0100 (CET) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05lp2106.outbound.protection.outlook.com [104.47.17.106]) by mx-outbound11-0.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 21 Jan 2025 17:08:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BqBypeCr7tcoXKOZL+QG5kucWDXjFsOO9E7Tk8ktnDvAVjPDz/nqCW5R4KOzFboYeMv/pxc506AlNVXqzVvSkeTVE4tzPwz3ShHfiEXwFit3Xck+orFhkTKVQbjNOXeIGJrfoW5g50JO2W6JZgJ5uDc2JeuDVV0Efzv+Msnt9xtFNpxxoLdY3KPDI8CF6RZbNYUe4wncRU8J3fTT65eAxEP1HMbL9kqIHomG1F+vikhSPO9z/jFCOyeDUZcoe4OnFHw/amwyDSYABYiov8l9cyTA8XtfJADLNMc57LJvNH9unpUHYdqgtqijaUYFT0mtpNwuYZBLOxOS0h6XjYdrXQ== 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=QkYt3GIIkEXCmLtECNsUXyQGDE6dqTjPV4R3oRmJiyo=; b=hPgRWvptLGkT33owDy7RncqGuh204CW77a0oQeQ9wF1n6x4L1SgfoN+L2NB/BzxDBxhFLta0KS5/GoCncryIqu1H0gbaoZE1lyU88WCFS1hwbge7bjhRhKRK1kHFr2TMxY6oF3qHrbDL6Udc7UP8nbqZucA7Og45ixm09oGF5s6Bm9HZnd11DUnPGZwV+7DAHJbQU5AQWeX0VHmm7TuOJbruXDyAjSJJvHza5yR8/rEDL1O5BMDtuxcm+/BCnjSFwGGzFXauNEg3gXlmW+rs+P0ALL4cJ1KLmx48S7BzbxlwYLmEDQhDQtopkZoJnQZc7ffo93q4YMYq70p8/vJAug== 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=QkYt3GIIkEXCmLtECNsUXyQGDE6dqTjPV4R3oRmJiyo=; b=LaUBAlM3jYsO2SiaOmjzD9toPGx6HUCVt08PXQRba5ObePLAzhLB4iycfmhxn6cHgSHhiPECaPI4ZniPT996FL1emfWJR6RsQ9t7qlOzFE1GItA5z+GqUY7qlsSR1Zli4/q8gvUA2AnKU1aHzJkNuvmUhFcxN4wH+Io4keCRc3Q= Received: from AS4P251CA0021.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:5d3::11) by VI1P190MB0703.EURP190.PROD.OUTLOOK.COM (2603:10a6:800:124::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.21; Tue, 21 Jan 2025 17:08:43 +0000 Received: from AM2PEPF0001C70A.eurprd05.prod.outlook.com (2603:10a6:20b:5d3:cafe::b3) by AS4P251CA0021.outlook.office365.com (2603:10a6:20b:5d3::11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8356.20 via Frontend Transport; Tue, 21 Jan 2025 17:08:43 +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 AM2PEPF0001C70A.mail.protection.outlook.com (10.167.16.198) with Microsoft SMTP Server id 15.20.8377.8 via Frontend Transport; Tue, 21 Jan 2025 17:08:42 +0000 From: Serhii Iliushyk To: dev@dpdk.org Cc: mko-plv@napatech.com, sil-plv@napatech.com, ckm@napatech.com, stephen@networkplumber.org, Danylo Vodopianov Subject: [PATCH v1 27/31] net/ntnic: rework age event generation Date: Tue, 21 Jan 2025 18:08:05 +0100 Message-ID: <20250121170814.3252171-28-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20250121170814.3252171-1-sil-plv@napatech.com> References: <20250121170814.3252171-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM2PEPF0001C70A:EE_|VI1P190MB0703:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 0fb5438a-a584-4a48-e7d5-08dd3a3e423c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|36860700013|82310400026|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?Hs26Q5Pg2TdHZ9DLTuKpIx+Pv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qBmpiFGmSl3jIFU0sNfGfYWOV/FjLVUywI1gG9mROjkdGr4J1MkH?= =?us-ascii?Q?iVJ9ZXM5ue+PkLTV6ZiQMlO5jt0NysEfnocl0WTIzqEwV0R7nXJELFUJr1UJ?= =?us-ascii?Q?OutqZYW829TmXBb9GBHniqepHBgRdFvIESkW8buiKEnWNGRosCA2z1g0H/ZU?= =?us-ascii?Q?Mp7JkumtxzmsC2aGhXdQaYahXH99Ocw3sTnbMeoQUGNBgnMeA5a8Bewc2Dy6?= =?us-ascii?Q?6cN1LGB7iSVy73KA+3HMKFWCsjetS27xk5Pr2v9gopa87uJ3GgEGrrXhRHz/?= =?us-ascii?Q?NWsIw+syFcdg9udIqb9SIBSsekWVOBaTMiAkTt+rJM0iqJs6xsjOpgKCO0vS?= =?us-ascii?Q?4m+poWsTyZT7Qon7r7XNV/YU3yqWYGY0WRkUrDq1cd9Q2+8PEdEdYdn8D4Od?= =?us-ascii?Q?hyjrXVx66aYqyttOq5/JaIx1nwOf9Q0Wr6i4FjodVPl4Zc9i1DEAtCbY/ZOt?= =?us-ascii?Q?dT2OdcTqKvMUNIOhpHfPp01olfqq2ALuG+eswayFRLc0+u8aHpVgu3p9veql?= =?us-ascii?Q?ASMImf+7qQwt+GID7z1uzQpZtaRKl5tC7WCIRXJbrYp6S87uu1XU+w=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)(36860700013)(82310400026)(1800799024); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: pN6116d6rvlZBRGPD/qbKNokJKjbAYKgJkahfKX0VFPhwXacnugePEs/AR6RRllTdgpsTzs7JKm/qLDLhfnIDSMwgqy4MLsEas3txGJn+qjA4xUCtjB1OrFWl85/UqcIEoM7XsaYvKf4hDHNOEa9fopMNPKihbOdkim0vn/F+7cI4Ux3g4xlyTBIWWOur/AtCZFh76rtQ4KuYfj5W7F8vNqBHDwhvM+NtR3JuVgyWLZEk5v632FUbzlQtDYvFgh7SbDSjWQPgOEB9sQ7PVX0jr09WmvYFCq+HDG60i/17cOuAM4PHZzwFuk7vUoFjZ0WGygzR/cGIuC9MnbjOAPjgWMq+mhaKq47GIj4h06S3DuoaIaznYBY+Jah1iscOyZY3ZuZwjpV/bJNysdKINA9CORmBDX+4/O2mekSguisVSS6HBoTj9MTvR416K5gFjzSv369Ycc8vWodTJpHckKhn2CPlMJyRkGJAPo3qHw6ZdO60BaonMlIykklKgZy7t1ZIrGbKz34uDOThsI1eQsGbWkDktwVy1UkvxNXc872hA4wTxbrX6V1jdp1y8YpMsnN+tbUuuR9ZmT1WtsVCKzywWKuZI1Kp3o5DMQoNhEPa2jwlCk6OoGrF2uyGRahhpWdxctY5gmXvcMexYKs00UMmQ== X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jan 2025 17:08:42.8274 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0fb5438a-a584-4a48-e7d5-08dd3a3e423c 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: AM2PEPF0001C70A.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1P190MB0703 X-BESS-ID: 1737479326-302816-13354-7968-1 X-BESS-VER: 2019.1_20250117.1903 X-BESS-Apparent-Source-IP: 104.47.17.106 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVoZGFhZAVgZQ0MA0MS3VJMUs2c TU0sjIwCQ5NdXQ2NQkzdQgydDcPNlcqTYWABylOldBAAAA X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.261957 [from cloudscan9-213.eu-central-1a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS113687 scores of KILL_LEVEL=7.0 tests=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 Add age event generating only for physical ports. Fixes: 4033e0539435 ("net/ntnic: add flow meter") Signed-off-by: Danylo Vodopianov --- .../nthw/flow_api/profile_inline/flow_api_profile_inline.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/ntnic/nthw/flow_api/profile_inline/flow_api_profile_inline.c b/drivers/net/ntnic/nthw/flow_api/profile_inline/flow_api_profile_inline.c index e5abd372bc..e911860c38 100644 --- a/drivers/net/ntnic/nthw/flow_api/profile_inline/flow_api_profile_inline.c +++ b/drivers/net/ntnic/nthw/flow_api/profile_inline/flow_api_profile_inline.c @@ -479,13 +479,16 @@ static void flm_mtr_read_inf_records(struct flow_eth_dev *dev, uint32_t *data, u struct flow_handle *fh = (struct flow_handle *)flm_h.p; struct flm_age_event_s age_event; uint8_t port; + bool is_remote; age_event.context = fh->context; - is_remote_caller(caller_id, &port); + is_remote = is_remote_caller(caller_id, &port); flm_age_queue_put(caller_id, &age_event); - flm_age_event_set(port); + /* age events are supported only for physical ports */ + if (!is_remote) + flm_age_event_set(port); } break; -- 2.45.0