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 E449445B96; Mon, 21 Oct 2024 23:06:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 49E8840A6E; Mon, 21 Oct 2024 23:05:56 +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 C5AFC40669 for ; Mon, 21 Oct 2024 23:05:44 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05lp2104.outbound.protection.outlook.com [104.47.18.104]) 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:05:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lf4V4FJw/GiNpBhYLPCj6PM54PVNg60vkynnBp5I5rG3cvevOZDjDF4uFPQsM32QPrH13XijqiDmRG0PkQDLUHNi7qVEz+sQjw676U6HzO/snO0wVFLfmqohN/xWgwVSd/0YyxhHzOIuUi0ku2Hk+GflALYrAgCikS6a24tc3EE1w4fdHxPoMDXOGq2Zjdk1FlIXhIn/BCasqFEKL7VNKCmJmINaPNT7kOM7iLhtupgNKmC4myws4l3C/GMv9ZAfsVJWr+srau3D3K4l6PdaNJzyVC7Ha2rPfJFZR8QfTDpjrAa6ylGfLwzBSIhOMVt/Vngb4zUxZjRHmj561dqZWA== 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=S6A5/SpzAcv0owFIjBLT1IJosx3OS1zmPMF8vUkuJV0=; b=YMYDgtL1Q4FdxUPwHmc+ASXbhz6K5D3zOEPHOcIi5/XPR8vXFhCYKshuGzdOBu1YNKVoDWdYOyINtE0zcbEOr6FbtSLOdLqZ6+qNB7uYn2ll5CU2mHczzy/U++YuqGM7el842mWOUc4hLHtkscEW2HK+mw5QnNFfEJqHvg359+abZCqeEGIdANcEtBkxhzZWwtkFi3rw2c+8L+ujhDcSEZ98H9gW8oVsK8A+N3K9NhrJxjTasOE9mjfbXn1cMMSybh5w9YVrk2IwLeuzXSbWjm20ZrGyJeLmdkIyBG+aDMbtKgmbd0TkrldWoSmMfjomEG7MpX2UpkDqwE7vSeO/XA== 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=S6A5/SpzAcv0owFIjBLT1IJosx3OS1zmPMF8vUkuJV0=; b=RiyYt4BfWXmHAUXMZzVQGr2hQObJU/cTyFlhLan3CBsM4LEOgobMlSezqpxciBXOcWoTi5II9dhqkXayxkZYnnNVVjC5fC/FzrQ/8RQU58Un3QTs0epLhPwLpGNCffjLQRzWey0jCKj05VC2gfTdM/oHCLALtv40NiM6X6PRMok= Received: from AS9PR04CA0155.eurprd04.prod.outlook.com (2603:10a6:20b:48a::29) by GVXP190MB1919.EURP190.PROD.OUTLOOK.COM (2603:10a6:150:6a::17) 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:05:40 +0000 Received: from AMS0EPF000001A8.eurprd05.prod.outlook.com (2603:10a6:20b:48a:cafe::6f) by AS9PR04CA0155.outlook.office365.com (2603:10a6:20b:48a::29) 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:05:40 +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:05:39 +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 Subject: [PATCH v1 12/73] net/ntnic: add ation jump Date: Mon, 21 Oct 2024 23:04:14 +0200 Message-ID: <20241021210527.2075431-13-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_|GVXP190MB1919:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: f38abc6d-d670-400e-81e3-08dcf2141e4b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|36860700013|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?SWX7l6gNIS4yt+YO+X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us-ascii?Q?kSesnUKRVC4CqppxSS37T6bdZFNFY0xivw4aVI3cOZWS+Vk3H/T7r4d+O44l?= =?us-ascii?Q?diTGjid6XKC3TvdXMNmBz8czzILPtf1HMh9ceFeUBkOdMiT5FhtexIlPFY2N?= =?us-ascii?Q?syGqX38rKFNDa26QdNrRNMMhBrvHTp7AlBkcWYk+OtTjxPuoc8RgFTGuNYEM?= =?us-ascii?Q?0HqU5qs1pnYf5DN0ayG4/mY/p69ng85SeJwtS+R5PAXJ0o1bBpQD14qGHpOk?= =?us-ascii?Q?lRkgDkFb9uCsb8Cn4ze63Od155gOA8qRY7A9dnkITotC0SiHwG8h43fRtb0e?= =?us-ascii?Q?wZdqfSsuE6F4MQ8fORitIDh2rQK98ozoU6SAlkfG4bxjVJhuJyEF4qQo1+Kl?= =?us-ascii?Q?+ZJcrXHIhCWtV3S+xu5xUrfZuBIDN+ii/WVKuj3wiolxK87svJLkqrJzqaLE?= =?us-ascii?Q?Pka0mm/e41kZTN+NiGUtKeGROBwvMNEeAps7//WrqxZTyfU+FpXLV331RTXU?= =?us-ascii?Q?HwC3tDBN1oNGtp1KBmdk1sx5S5kqW3Wff0Z34rv8z/udEK726A=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)(1800799024)(82310400026); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: lDHuhTIIc9KzI71IVx44GUHLo11D/480/F31paZjExVGIEXdxTvegnn8lHgROCqGouCGo6TkmSib0fmaF2MtU6HxpZq6QSjdJtfaZEfNbU96ZCtH5pEuz4iP+f06OrCeeBi/DxTV0C9X80VMKogKratlAe7MEJ3WeKbyIBlinIlqeePlBuRRD/9uldB+njIFbKpKQO1vEVLzEEsCcGX3WVAYx2juzoodlkD2sHXedyNDVGwEbGTphmQMtw+iJVOvis2Vm4MsDtK0RuaSmqUBwqUQEuSX/iiAd7hSy+TqnAZcGRegVy9k83FOxgd29opbMw+qY069j7G4aOunkRDCh1VNBCz/YHGkYI7d/aMtyqAG+nFf+LqwMR5GGlQedIb39kSVWFjgkYcPFndlJ0zvnKkJtG2kkevLYJ5yW1k+6C42EmhqUtp0Hw/6siDexuasrcjYC1A2OCXLuKaGnBxmSnplyr0c7jwSZOn3eYwMeO6OIsDi2LWmmI3ymVmMJJx0xGJd+PVhn8Dr9QSSYA81iFvnHhPMpsRKEH3vgqkj2fw+Ua9pGGbFxtcWebySIlyNGkItkLr2R+MLmDBs6Ss2g57e6T0nb+ojvN6lezKSENEUPvO5vxh2n1Z2JPEn/ViJB7H2UBph8rwuO4LMOAc//MVu79WZK8RSJy0A/N2ieio= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 21:05:39.9894 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f38abc6d-d670-400e-81e3-08dcf2141e4b 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: GVXP190MB1919 X-BESS-ID: 1729544744-302135-12937-43194-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.18.104 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVobm5pZAVgZQMNHE2CzVKMXCyD jFMjHN3NzcINnMKDEl1SDFwMzM0tRAqTYWAJMLDgJBAAAA X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.259883 [from cloudscan9-212.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 350eab009e..68a54f7590 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 @@ -401,6 +401,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