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 64F5645BA3; Tue, 22 Oct 2024 18:57:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C367F40B99; Tue, 22 Oct 2024 18:56:26 +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 6747140A76 for ; Tue, 22 Oct 2024 18:56:18 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05lp2110.outbound.protection.outlook.com [104.47.17.110]) by mx-outbound40-26.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 22 Oct 2024 16:56:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ezUMcDH3EOLuxrqm8alwPAvUtGQRe1GhFJJDe6u1xO5TcbO+069f3OOakl51LXrYhCdPNUGMtEn5z9IyCHDc3nxXE9jza0CridaSiT4hs2RgjUmDB+77JaV+tDXCoQpR9JcbPi95PtvR+vQkUVO4ZtCP5CvjoLRE6NkpLkX08rCmhObQenSXvKo3Z5G5B8AlIUTMkq3uEDRhwXJRgtR3EVaFdOxlc+A2CcWoYUqmk45EFTVn2Cq8Wcxrjpn8dfzq/dfuYG5eHC2X9Kw3Fy/6+G4dgYYUwreqBMjsm7+cpuD9TvhbDSdSwcckympPXhlYwKdNrrMXH0i0e7BMGRPIIQ== 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=X9LamrOLILG9hkWp11QXJhepv2G49oHuJ1jq3SD/a20=; b=BIa/oezfy1wS6ZvDL6JgVv1LvLr/D+EtXixsVEw8Yk3qXB+ouj01wjsduqbOBHChw4OPPVOKXTuWo/9+xwhUjX6+atKpMH5a85Vs9OggM/jss7acs4NlzEP4T0QTqHt51A6ok1sxcWEEicZEp7ljMtNn0tT1NRj93R4Jkk6ykdupubKfFOQXOxUU3rkqjkyKzZp84xgOByOzV9D7nBmxLS8/9hVmZ34U2VAWq62LV6cAYio/3DhRJeNQQn/HkYcLq9DP59t/RJekmTmnxiAVCqMziSIplfAN3s/kozLs85cX7+bQSX9PYPXppgBau8fB+GzuRgOKgkMVkCgTE1jmhw== 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=X9LamrOLILG9hkWp11QXJhepv2G49oHuJ1jq3SD/a20=; b=F019auz1ehjO6VvsK07I20fzORuwwjdyO6IP4ZWRI0Lxek/XU6xq8xrva/mFNRS4f3LGPMw4g3NW+qa5EwbuKzYisLooh76w3xgUuZfv4OVIzkl1CE14NaJ7Y2LijFlsTzdsnp75t2YqgQagNxu83IfwqXlHc63tyat6BD4Vb8g= Received: from DB9PR06CA0009.eurprd06.prod.outlook.com (2603:10a6:10:1db::14) by PR3P190MB0969.EURP190.PROD.OUTLOOK.COM (2603:10a6:102:8d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Tue, 22 Oct 2024 16:56:13 +0000 Received: from DU2PEPF0001E9C2.eurprd03.prod.outlook.com (2603:10a6:10:1db:cafe::a5) by DB9PR06CA0009.outlook.office365.com (2603:10a6:10:1db::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.29 via Frontend Transport; Tue, 22 Oct 2024 16:56:13 +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 DU2PEPF0001E9C2.mail.protection.outlook.com (10.167.8.71) with Microsoft SMTP Server id 15.20.8093.14 via Frontend Transport; Tue, 22 Oct 2024 16:56:12 +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, stephen@networkplumber.org Subject: [PATCH v2 12/73] net/ntnic: add ation jump Date: Tue, 22 Oct 2024 18:54:29 +0200 Message-ID: <20241022165541.3186140-13-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241022165541.3186140-1-sil-plv@napatech.com> References: <20241021210527.2075431-1-sil-plv@napatech.com> <20241022165541.3186140-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF0001E9C2:EE_|PR3P190MB0969:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: e65849f3-556a-4d8f-fac2-08dcf2ba6fb8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|1800799024|376014|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?+3naKzv7s5FFukeLHQvJMRJIQiDur4wOPLxgz6p7rSmHM3v8UBucQosjnszA?= =?us-ascii?Q?2nnjZDA3cbsCdb19sAbuuTk0jfdOIeQUECq0o8O3tANM6+TnbyZODODG7VXV?= =?us-ascii?Q?4InNmhL4YCCnTKQyYjxMcU8agAtAUk7Ntx5/4nkRUnfRWlKZheGTACN/DSHH?= =?us-ascii?Q?a3cB1ALuftlnSolImMwgs3XW2q+cXqU2KiWcqXV99PMHNanXd+xg7E9d6+d7?= =?us-ascii?Q?3CokM6YwUCmRn6F7OOZfeleS4W1r/4Fejefd9zliegAv0wUGvBts52D8AOGr?= =?us-ascii?Q?vXqwdwCuz78YEXy6kWqHNGwy3J9fVoZkMGe1EdpqUAe5tMs7agvCKuOCFV4d?= =?us-ascii?Q?Wvy0a5RMtZOy+RxN4sJFMvEf8E8JHjXRBbJWI33xkf8u2a6HxcXxXxqOvfZf?= =?us-ascii?Q?mwODaJc8JqL+9FDzZIcmHnc+QuVuZ/weTSYLkxL25uQaV6aR40xhP+brznDx?= =?us-ascii?Q?YoolM22RJQiiMp/KsAEPCZkF4pm2Xlx0xK3Eey1qJMKeuiWerrgl8GJHEN4U?= =?us-ascii?Q?V6t9pANcxNc2P/+/QP+y2PgbDwtjm1G6ZKSEPLwj4RsztbF/B79He6iqDxZ9?= =?us-ascii?Q?971GE/xbsjR05fD8s59nYY4za+V74e4rx2P8a5A6j80yiIoO2zfzpeZnIcuW?= =?us-ascii?Q?S4NMddRAt1KJnrXawcL8voDWSX4MxQwolD9a66EiSYxaat6P8KuuJpYNCX0S?= =?us-ascii?Q?A4cDQ6qAcMwUSIJM6cKpmK8l3G1yrmOI2/Yl1vqHtiiuIm5YWKt7dAtY6uJI?= =?us-ascii?Q?azb6a9qwfxCAcYEXXGBlojzBEszYj3gXk0+MX6zwzBPEZG9jIiITu0rlj1Me?= =?us-ascii?Q?ddIViE7wD2t5KvAT8KvUUPDO2hC6QOjB/1qWgQmtcLtmP84x38Cpe/0isr/o?= =?us-ascii?Q?HA2KxmqWrBW61ztVLJOmUTZzBpS0IGMkqM5eDN6sXkfoedBtiQVFZXppg03f?= =?us-ascii?Q?W2j5TGdAFb0vlAKtRrx8Owh5VjVWUusPHsLIwoq485zvyig+zy7uDxO1qXej?= =?us-ascii?Q?r4+ve9jZc9auZFcC/UtpGja75bfG9PNS43kuXwTuUwdR+vLnej6dUtWrsAP1?= =?us-ascii?Q?zEz+TXJvY9+3xFYDiY7EwWCY+eYPxq+US7R98cCBZ4awQeXJzooOVmHX5YwN?= =?us-ascii?Q?Bh96lFrhNk0nKY30SdzPZ2MGezDXK/8e/a0oWLOvkhNVE2ex1YYs5++4KQLN?= =?us-ascii?Q?98+kt+TJHymUMQbdFNq/Fme0m7oXqrDOhTDm2mTyTqpO+YJ1A9CqOwuJHolF?= =?us-ascii?Q?hnLXmJH1cj3/CIcqqaooOO5ZoIumcVQRe6ljRUGhQU3uv9ZksLf9mRRp0ML6?= =?us-ascii?Q?R7bX+y3isxc/UmsynbCkhc04NtSmFQpDlRZg5E8cZ7fJr74A5/737eHJRiHl?= =?us-ascii?Q?ZeYfZ2APZOTUD7vPBk4hzk1sOJED8tN0hZ9rcXIg174UZlJd9w=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)(36860700013)(1800799024)(376014)(82310400026); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: lqhN42BKAbBKlpqhqDDecHVGpR3qCyj8hGPLxZUv63xjCOEU1SoiL/dzlElJFZ+G9nIB75fGgxpn7wIMm7jU3RsNuWsgXjlzcVYN4uhzKzjxotUUuT1C3lp8e2Wp+NYfrzI2ZBnXR+3PW/CQK8+YA3OSn0SgIh1ZSKz4lZrqi+wgg/z8rzLSL3NbrDM9gZyw7IUB5u8wjOqVDpXnHwjtpJJUKVRD0odiTUNoqXwDIAnCUzij543nEPlaRdE9o8+stQM2YWsIDsP0FHA440RwZFskcxpzs3nH32pcjvQzS0QzU4U5BnhzlWIrUpe0vDhRE9tptKGZ4WGmaAa7xskAiFjIddKeNLOS1MNd/Hfn1jFPkZ6bzMUUAEbGYyPnEoQLhhUvcRQthnXWdM+Q1sdw0umw7YIhqChzMVTZUq6dMbSxlXuwREPIWiYzz/2jXjX/25bv/RMrzTIvfPQ6BCU1m/YRhEBiWg6tN+lPevmJq0Ekqix2TDGAd9o6Dhs6t0GSdxjAfd8q7X+JPeoNtauOfG8fL7ArzVssSD5vFv27qoe/HamkX2t00LzCMdFEDyNknTvOQ+J6np8+Oe67tnNA13Sv/UPLjvzEQFeRYFdrGf5bT5FYiYRRKl8yBZL33GlT2O1BDqFg8piuvZzom3bF26jA78EEXPwwpdZQ9JBDpZo= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2024 16:56:12.9187 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e65849f3-556a-4d8f-fac2-08dcf2ba6fb8 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: DU2PEPF0001E9C2.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3P190MB0969 X-BESS-ID: 1729616175-310266-12676-12981-2 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.17.110 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVobm5pZAVgZQ0NzQ2NTSzNTcyN jIwtAwydDYyDTF3Mwo2cASyElNSVWqjQUAtvNo1UEAAAA= X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.259902 [from cloudscan15-77.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 Add possibility to use RTE_FLOW_ACTION_TYPE_JUMP Signed-off-by: Serhii Iliushyk --- doc/guides/nics/features/ntnic.ini | 1 + .../profile_inline/flow_api_profile_inline.c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/doc/guides/nics/features/ntnic.ini b/doc/guides/nics/features/ntnic.ini index 42ac9f9c31..f3334fc86d 100644 --- a/doc/guides/nics/features/ntnic.ini +++ b/doc/guides/nics/features/ntnic.ini @@ -17,6 +17,7 @@ x86-64 = Y any = Y [rte_flow actions] +jump = Y mark = Y port_id = Y queue = 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 96b7192edc..603039374a 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 @@ -402,6 +402,23 @@ static int interpret_flow_actions(const struct flow_eth_dev *dev, break; + case RTE_FLOW_ACTION_TYPE_JUMP: + NT_LOG(DBG, FILTER, "Dev:%p: RTE_FLOW_ACTION_TYPE_JUMP", dev); + + if (action[aidx].conf) { + struct rte_flow_action_jump jump_tmp; + const struct rte_flow_action_jump *jump = + memcpy_mask_if(&jump_tmp, action[aidx].conf, + action_mask ? action_mask[aidx].conf : NULL, + sizeof(struct rte_flow_action_jump)); + + fd->jump_to_group = jump->group; + NT_LOG(DBG, FILTER, "Dev:%p: RTE_FLOW_ACTION_TYPE_JUMP: group %u", + dev, jump->group); + } + + break; + default: NT_LOG(ERR, FILTER, "Invalid or unsupported flow action received - %i", action[aidx].type); -- 2.45.0