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 93E1345BC0; Tue, 29 Oct 2024 17:44:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1EE9242EE0; Tue, 29 Oct 2024 17:43:33 +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 BB1CC42ECC for ; Tue, 29 Oct 2024 17:43:03 +0100 (CET) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05lp2111.outbound.protection.outlook.com [104.47.18.111]) by mx-outbound12-25.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 29 Oct 2024 16:43:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Kq2D39eOLLdoLgBOyQBci337HWbSqenyAGQ5mw4TCaHOwNSSPoO0q+7cmyWV3cXh4XZeDIX0kQLSD9RLvWm5M1x/35VBO+8VpRS1NutxrpvDeWtH9alGjNUGRqR02x94nPAWOFHby4ArXVIYK8BhcPZyEKilvQHOOkz3VbIHbLMJXI8LECLJwBJx8EqiU+uQGyTu61fk0hgvokxlmHJ39kf4g3imKb+5yXcpoh2E/YyUKQAFFG+QwoAnHsoSnSwrFwPu9kh9Era8JY5meSbqqlyzx7ta7EJKMPsptCJ2fFBCqC2klUhdfBSMwyDM2oYun90aYKjy9mk1hAJ/rvlhBQ== 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=fgQECWY7gxJMycnajAMjgoPDSHo1PeJNR9gDcY+0QDHnHJKaks+z0y3FZff3HRmd/IjKM911dTU6cuDNB0n8Xln3nHPBpX4UmhFGQGMaHE1xJVncZl4mN7tzTzZebyBb4f+GBxtN5GYHdtFERtxVbcJEFIXOyqrpUYdg/G7W4oybYiYHTeB0qQnCk2jpJ0zTsRo+SZWpJagPmx/nqElg2w4Tgb1VnYEvEYqCxMnKX+zIMbtyzIKHCyfnlqv+kYQ3ZneRTmjosHLN5QpTndbmJkBPaFEdrpV6gNF+EXUmZXbVoOb1/yT1jR5W2m9KI4lDlHaZ/FyLjdgomny0taqvUw== 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=LTul/Gs5XPFE4xZAXpZu9rAggPbP+yw83j4upGf5UoGMAvLKyA8Yn2MgtVIvgJAVFGTNztIWC5zYpVvBO1/EyTRX4jxQu8ta5De38I+2vwJtEtmyPq/RaU/2CWdbEL0d7ynVZJSPSF7jSkHElEgsIX3XCrZVUmFGREKP0yeQS9o= Received: from DUZPR01CA0193.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b6::14) by VI2P190MB2121.EURP190.PROD.OUTLOOK.COM (2603:10a6:800:230::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.32; Tue, 29 Oct 2024 16:42:58 +0000 Received: from DU2PEPF00028D06.eurprd03.prod.outlook.com (2603:10a6:10:4b6:cafe::c9) by DUZPR01CA0193.outlook.office365.com (2603:10a6:10:4b6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.29 via Frontend Transport; Tue, 29 Oct 2024 16:42:58 +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 DU2PEPF00028D06.mail.protection.outlook.com (10.167.242.166) with Microsoft SMTP Server id 15.20.8114.16 via Frontend Transport; Tue, 29 Oct 2024 16:42:57 +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 v4 12/86] net/ntnic: add ation jump Date: Tue, 29 Oct 2024 17:41:16 +0100 Message-ID: <20241029164243.1648775-13-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241029164243.1648775-1-sil-plv@napatech.com> References: <20241021210527.2075431-1-sil-plv@napatech.com> <20241029164243.1648775-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF00028D06:EE_|VI2P190MB2121:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: b690e333-876f-4d0c-0052-08dcf838bed0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|376014|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?2s3SUglrOamJk3R75D5KVYPiz23BNnEz1kIqacS3oE3w3yhKovCdGTPJUw4u?= =?us-ascii?Q?blCglo+AwaYRRSnepDzLN10YCqxwq1We4hRTnyQN4NY06NliF7Y4gS3i954l?= =?us-ascii?Q?kc4TveCEYHN+DeGXOjzZX2x/Em4lTv9/3k+5Kk9F8P3b91/By5bLriryUQIQ?= =?us-ascii?Q?Jsg1PihAPtjvHAxooGsYyR0b8fvIQU0kBwFTVClaqRDmCepXHFHsXdefc5eS?= =?us-ascii?Q?cbaIvTBedDEsE2isxqZP0+mOEJ85et8BqCD2s9OTlPQJqAOZx33+Bv1/eZ8Z?= =?us-ascii?Q?LV/KWSuXnR3a8wZa3QHpB4ub+jf2ZaKrOBPw8CxHvY8gDr2xX/gV0IKnZehD?= =?us-ascii?Q?axohZbq+T4XpG/KEH7CK0tHE9VHNLJ+8pQ6cch9FMB6zpnwjsKMto1d5aYUr?= =?us-ascii?Q?F/bWHzagSybzwGMzemtSj53pxKIjc90rHE5z0ui0ugXYhw5E4EsIALUx22jn?= =?us-ascii?Q?xUZKWJKl09hCuc/NaZqd1VLyc02x90veRtjmpqFqXfKSeAS9sDl5toeNzoGQ?= =?us-ascii?Q?XApLUCYTS6KXxgwpH3UcdD0nx2DxpAcI7lyJClExBvXTmygnH7PolDh5aIx3?= =?us-ascii?Q?JB15F3fJVpB3BZT2kecHbyLyL9l1gx1vegH2rSijl/NmATJrpKwX+dtO7zST?= =?us-ascii?Q?SDr7ON0OUwK4c3Kw0Tyj9cHt/jKE/m2gH3haGaiRsI6RZSgPKhJzDg/QcPa4?= =?us-ascii?Q?cDjc7UJGVAFSxxwuYileQT2GTK+Oft66VvhHb6AZJuU5SQvd+7ALdTYfqpad?= =?us-ascii?Q?1PZyHjclGnIGfSv7nL5Ma7yNF/Mi4DwRBZqjWO8h7lV/WL+dDO8F6mZp0Z37?= =?us-ascii?Q?FYEkvE1p22JuaTZ2TiReiGiBrin1gGlrFE/7fg8ABEDiCZJ1MIvzmrjDsB1c?= =?us-ascii?Q?X19wyfM1Sc7sWYDnVYJjhx8K1VyqYe/YJ5q+rsvEBRxFxof9831uohsZb/ru?= =?us-ascii?Q?goUiQrCKtjeHedUVn8Y7zzSbAYd+sU3dRpSikp7SOLAsh9KL7yu03lv+blmJ?= =?us-ascii?Q?1D02am6CDL0Dc4aiEzH/tiMrCnuXpj3zAmBgYyRtPOO2Flh2nBxhl0JQtz05?= =?us-ascii?Q?XvJ2PTR/KagaLBheRi2ms1ko0bvRivUBAe93hrhjz8btIqexHBMCXVC3Ms0d?= =?us-ascii?Q?QhEDCKZ2eSKeu0L+m7PsTVmAIcHSP+Na1yehUcrSUWNl8m7tC6ht6sf7fjRj?= =?us-ascii?Q?8RkUblSc1KoWtd7f9ulJ2rRPsV3i+wj9IbwPGcZPsQxdScNWYBwiZ3DkmgZZ?= =?us-ascii?Q?+5+XYjX+YDutADdxTNGbOa0DXgxqpLFSZueCbmdf3zmjV/kbyuPfRfoK57b5?= =?us-ascii?Q?HxZ5929+754V/0gYxyRRJ6z5DofEEjxVgAOZvhHBIR5EBUyHHMuVI4yIdW7B?= =?us-ascii?Q?V3z8xl8SQN9Hx21En47uB2Hp3taJb1/IHBAxDTb1+TMe1ckV+Q=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)(82310400026)(376014)(36860700013)(1800799024); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: pxIqvc2KYu3jQErwI56jtHFlYkvCPIJZojx5SXGIz5+wBzOYmwjtRStMK2rcs4BvciTvrxfMSyhR4G4bwvyoXH7gll3dK2qXDFpa2WoQ7HlmjtFaQ3iICy47p4k27NEmGn4YX5ZAISsHGa+3woHWyYhAjtIZNdL0YN4Mu6Z31PpWtv6CwDnHYDybgyrohG1rSFwuyj4JvBu5LYUAkL7WOgNKbtpkV/ADojouA0pdfHbyZe8efMImo9Y0wVCOxRN0c/G+nh74kjeIYkmt24jEgwaU+nSrHytIDvUwvfngxSstk3unH9gvQWb4RJcPf1nkzjUGJQK7e/uCbfmfRJ+ShKpeBbCA3H5sFliky9q+lk6U8dNOIM3fOcNENMOWryUlvQHYoFU4lhPhT+8lsS07XQxV4OEi245q2uFStI2sWyEnfufuDosNkcd6rEz8m5eZR3SK28L4NAZ3d02DN2FH/V1BM/lxAG4yi1cWxpRTY8mjYnpnpTrxb7d95hr9JmMOL/Uc5v5gASwCHKziUSpekNNwEPK93qhz+2PPoIimWM6rdzrFT0UgnqlY5tf4/szmMLCnQ5cLU49aKQo4gfkw06V30i4yZJFCHVbNSL3pWl8IaQRhYoA3RJ4jkcaqG8OlxvKDD1/5Ei8oOOZqhocX0GDzgMHMVtXTQ6ZXd7jsaCk= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2024 16:42:57.9646 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b690e333-876f-4d0c-0052-08dcf838bed0 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: DU2PEPF00028D06.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI2P190MB2121 X-BESS-ID: 1730220181-303097-12763-29321-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.18.111 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.260063 [from cloudscan14-53.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