Message ID | 20241030213940.3470062-18-sil-plv@napatech.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Ferruh Yigit |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9E2D145BCC; Wed, 30 Oct 2024 22:42:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BF5B0434AE; Wed, 30 Oct 2024 22:40:30 +0100 (CET) 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 4AF29433D5 for <dev@dpdk.org>; Wed, 30 Oct 2024 22:40:12 +0100 (CET) Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03lp2108.outbound.protection.outlook.com [104.47.30.108]) by mx-outbound11-85.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 30 Oct 2024 21:40:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wF+ibYTcFyaLobNZY9+XP51LCQojlIK8bnlajJ/vaIHXD72WJeAgwq75+QOTOm6AoDGC+ZnH/FJ0NtCpn+lqWy0AEDstWu5ruCqSUrCcrMNJzEr5bqgKVD+sgNPBPrAMHKKqtWlRbqdOHlcKkDQNvzGc7r6KKfzL4O5lht5cRLBv+F6P6Z1QzobqNFIKfi1o7TpSW7DEwCw6LxX4peNC1FttOk2lDStq5YJc2k0iuLZRqhRoOHRHQ4gTuh2/d5G6hYem1NES+NVsf/m02NAq/I1GyX2DFprPF5mQwLTX646wxXoch7fRahaLtDU5FmIO8O7QlCgnbteOmAlb2AaHWw== 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=mikrOQThe/sgvfoLnzBII4ydmy6YZzyyJVlU/TvkBU4=; b=xAWV2mQwNM02AxgkHbXlNYW5V2eYh8qaeinW0ORhKur9jcNFiGliBDZZQE6lhLKqK8yyrqatvn0LPhjg8unF8gxICQB+oiRvkLrl6vwdACdaNzTL2xpM13X3Z2ypc/NtSe7aAj1SaAFiDWeHQy9RIT+VgDJmy9z808x3/MBjOpqEc/yQ9vem8hdpAv20enXzP47XvP+qJrD1EZiDg8JmiRBeUUyRmV1mAErMAVtjpBDwXqua3vPqMKC1hIWAPI2Ezoo1PomwGFnXfiUuEBmYvjyqg4NW1XxnXPIuQrKJpIyGim1jYCbG34ciirBhnj8tsAyiLUo/Tp90N5BxnQzLpg== 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=mikrOQThe/sgvfoLnzBII4ydmy6YZzyyJVlU/TvkBU4=; b=UNT1rPIFDaYVDwspUPPH4t0ovyHKFuEtv7ZBhK5cQipTqzUcVfSW8gr7dFiIJssnZ2C1DiseRpKgVZT3YUxHpt0nX5I+kI21rbiT17mXdXYBPFDJ6cJ0LixZCXfipExoBZ171kfb/kV6V0aHI46XT/WUq6mXrr9ynkdE91oSxUI= Received: from DUZPR01CA0011.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c3::19) by DB9P190MB1082.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:22b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.32; Wed, 30 Oct 2024 21:40:07 +0000 Received: from DU2PEPF00028D13.eurprd03.prod.outlook.com (2603:10a6:10:3c3:cafe::74) by DUZPR01CA0011.outlook.office365.com (2603:10a6:10:3c3::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.20 via Frontend Transport; Wed, 30 Oct 2024 21:40:07 +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 DU2PEPF00028D13.mail.protection.outlook.com (10.167.242.27) with Microsoft SMTP Server id 15.20.8114.16 via Frontend Transport; Wed, 30 Oct 2024 21:40:07 +0000 From: Serhii Iliushyk <sil-plv@napatech.com> To: dev@dpdk.org Cc: mko-plv@napatech.com, sil-plv@napatech.com, ckm@napatech.com, andrew.rybchenko@oktetlabs.ru, ferruh.yigit@amd.com, stephen@networkplumber.org Subject: [PATCH v5 17/80] net/ntnic: add item port ID Date: Wed, 30 Oct 2024 22:38:24 +0100 Message-ID: <20241030213940.3470062-18-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241030213940.3470062-1-sil-plv@napatech.com> References: <20241021210527.2075431-1-sil-plv@napatech.com> <20241030213940.3470062-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF00028D13:EE_|DB9P190MB1082:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: dc0f2db8-ec83-436a-3f2d-08dcf92b6c7f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|36860700013|376014|82310400026; X-Microsoft-Antispam-Message-Info: XqIPd8mJo1bHml6BmkK/IWbCcrQtQPSUbhTj5/xwyxniksZpWtzJhKf2lgKsthc9B2GLIyDfnjLaRNSXx9EujY27uxfFXpYIYipu83qy0T47K4Fio0Rpnq/v+NcbfGAnfII/PTLYhHP/wgAHUHfdcq17UNKWkLhwhDhx2FDnxlkU9yfZZIjoi1nHkB7sSMPcLRi3DHuhW/eQKrV4BD3ippD9Jor01Ks3iLmS6RLJcYqugARssOHnnqj+x480QjL0DAvC9jReRkJo1NUBy8LHy20TUDBkHW3DsWnS4wZadpaGT4skYH2rykne4scM5unzww7uGx7tfZTz4diMfYsxMxeSUGhP1pbChfcEpITSfsyRGOvakqx7p4m4lM3Y/BDb5boKx51sjMyBJUcPIO3VkvzJZCq1zp90Gi+KaguuyK81F9WmJIxdEXGpk0NWzuJELztpLIyJpmOiWB+2Ox5M5hG9mrH82Fdy7Yw+4U9mJFcuYez3gTPksNtF1nIwtAr9ue4fN8+qUeBdeGNkhI2Id9dB4RFEc6B3JsAxCKwVPrhz4L0Ju8PbOvspR9MoveJEajJId+2tWcvaPK+xUZ349B7RPAJIiW5MKzxUL1eyIFx36iON348GpS0mLj0MphH8VW4QcG7aNg/+Eb56lT89A+i/f3v0spDmzi9OUecBz2PGIqRfOZoK2U1Bo9dfKCJWi2piQD78E4dshR2gIPTb2zo9OnugBIcGE39byGcpSNICqrGqynfbi2QCoaj39Ru/iTqBfb1ZyWjin5e2uLQsBSpo9NZ1UvKFTqfjRtFqQfC/TQDZWrV/E+pYlRDUXv9k8O63NVSxW1RnP7J0dSKtZjPD7uP/qk5skiZaPVSKfEFs7KbjxEn6Lf34vWbBfYMu8RGzEz3IKwxgPaoovKb3Hb10oLkf8pYFhx6jxeSu1HSxno8k1QX5g36l92oBc/m/BNL+UZl8w9Ohiq8BE9NOESnRSNkc8LmkJRw0YZRIoREuYx7kJ62hQ8FIq01tVWTj5cTUVcCX9iOdkx+6clrKxDtipArIk9jk8I/dqEYketqSlvV8ReETFlxBRCItEPTePM2PLD/wZJNulWV0JBDzI4OhcRcgpvV9LUXJlKgR2ZqLmOzhgmnTEJKqkAQ354cyaYNyNAnApb08XCwMs+UXRwGdePtPGTzipBsg71DFIROQE6pLG813U0tB+uowSef8Bhud/lW8nBbl5C8+jWUmDolBQ4tcx4V+4YmlTLR6LrQFoaMzczEqD0mL3Mb36EQ/exmtPAgrnlY5jb6vzZcolUH7YEw+cU4YHTAdjp0Z1pPpqgj72YBODBpAqhg4gpnT8vUYSwfhviYLsuB4XgWrnMLIvl1M3+yo5HTnM7VE6QfXtSHsGd7+YN49A9kfAD0VKX14WU5dzpstewS9N2mviQ== 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)(1800799024)(36860700013)(376014)(82310400026); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: V1cKTaPcwuhhRvTCTCEZuG13XYqnN2t8+z7+PIcxkB14qs+pZbEgw+0zrzMSdmBmgZOxNH57vHjCFuD+Hc1kNud0Q7cU1B+niw4SRuxg51DekkTKp3gLd+a9R8SPc0RwryaPzyoI6xlDmGmaJZ87ZE1ISM1TaOFPLfly9PxaUDagoO/3qt++ECwbIdQtkKerUPT5gDfWv/aa85nU19bsC7tM4WzGyFC50V978EbAYKLf9JZgozObwcx8h/ectOg1dbyU0phX6PD3ITqMT1BBVdkBT83uaV4JPuAUPFpnumDdGaDn2/OVJFudqTrm9FB8IZFY9+vO15kXkZ9drvmZWSxky60BAq2iQxgzTUrh+HoPq0Cn0JDUlwEq6gFOUz1VTIzixbFJahp2UvnourAk3ZfBUlemxL676+fSwsN8kAzWH5dG15OVGqoGsbhUQqIbaAzLzu768C2zMUwPBS/nfBdCPnpWDmahx3Je3f4rTvw0hBpbddFneAF0ekVF/ZsMrSN5LexERv8DPO1f0w85RLbjMMLal47VgU4/aAgdMj80MI4sQO5dFFk+ZRnTSjxKIjtHE4HT6GDMuka2l9Ps+c0FRnlH33HKcUIgBXmf4qVyOLI8CAyBnVStJ9HxrYWOigNhJT7qFgoAgZVKtezAEkqzhO0EJpV1+UFcTBcUNx4= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2024 21:40:07.6299 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dc0f2db8-ec83-436a-3f2d-08dcf92b6c7f 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: DU2PEPF00028D13.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9P190MB1082 X-BESS-ID: 1730324409-302901-12800-43455-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.30.108 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVoamxpZAVgZQ0NTCIMXSODHNPM nI2NAkxczYJC3NyCTRItk00TgRSCvVxgIAcU49T0EAAAA= X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.260091 [from cloudscan16-249.eu-central-1b.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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
Provide flow filter and statistics support
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Serhii Iliushyk
Oct. 30, 2024, 9:38 p.m. UTC
Add possibility to use RTE_FLOW_ITEM_TYPE_PORT_ID.
Signed-off-by: Serhii Iliushyk <sil-plv@napatech.com>
---
doc/guides/nics/features/ntnic.ini | 1 +
.../flow_api/profile_inline/flow_api_profile_inline.c | 11 +++++++++++
2 files changed, 12 insertions(+)
diff --git a/doc/guides/nics/features/ntnic.ini b/doc/guides/nics/features/ntnic.ini index d403ea01f3..cdf119c4ae 100644 --- a/doc/guides/nics/features/ntnic.ini +++ b/doc/guides/nics/features/ntnic.ini @@ -18,6 +18,7 @@ any = Y eth = Y icmp = Y ipv4 = Y +port_id = Y [rte_flow actions] drop = Y 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 88665dbf15..4fc5afcdaa 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 @@ -928,6 +928,17 @@ static int interpret_flow_elements(const struct flow_eth_dev *dev, break; + case RTE_FLOW_ITEM_TYPE_PORT_ID: + NT_LOG(DBG, FILTER, "Adap %i, Port %i: RTE_FLOW_ITEM_TYPE_PORT_ID", + dev->ndev->adapter_no, dev->port); + + if (elem[eidx].spec) { + *in_port_id = + ((const struct rte_flow_item_port_id *)elem[eidx].spec)->id; + } + + break; + default: NT_LOG(ERR, FILTER, "Invalid or unsupported flow request: %d", (int)elem[eidx].type);