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 9500545BB4; Wed, 23 Oct 2024 19:02:07 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D6B3742F0B; Wed, 23 Oct 2024 19:01:03 +0200 (CEST) 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 ADD9342EEE for ; Wed, 23 Oct 2024 19:00:54 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05lp2104.outbound.protection.outlook.com [104.47.18.104]) by mx-outbound42-14.eu-central-1c.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 23 Oct 2024 17:00:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=T1IaVd/kdD7wlCTBwcjenUvzWEBFKZh4uf1ZWj4akI+M2ZzBW3/eZ9mUjli4vkVFyazB7Y6gcqjHfnSfPHX/zbVH4Oq6AVjVhQ+DlUpmvTIvElJlTBs9Zjti7kFIhgjkex9Ec8ZZQ6EHvdAK5yKIwGjLcDHZYN7pE+lZ4kO+EwrxX2QWYe/83DfyJl+0TOcqcdhuapDHlc0lC5zy1fIrC5oNQmPkkl5tsq8Ls4+rbpMfJcdcF54BlAJOpGR93hcJBcWtETgoI5U0opJWND3peTSuXH/EUjgfIRcRvWunSmb8czOS8d4EIUc0mdbht3KWQ+Ufd0ARs/eYQIZneXUL6g== 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=q46f9rQR2kqWnlC9iQS5KZRFra8438BYnXFKdYPGV6EXEA1yAiOtbQ6w7g07pS3AUWeZMeBgTm76w5QPZKiBV74KtXtS6UVIeZ5FrQEkzZbAZOEjrBAyrjDo8XU4IfDzonFqFBo1/BWsPwItS91inP70QasjukkJdpbxvUxYwhQgghhNnOe8K1H+icq9HIXMkEefRdDqb17Q9fdbUQ2UG89CKCjjFWSdHKMJuWt+VeUX9wK2QJE7q4LEPhzM6M69lC2PujHWn2ABE37V5Kbnzka1sbGzOoGnWHPBuQ0t/j6Q0zInAIqbvgQDNjX9VYW4dGkerL65QDoQaIkn3HSQ6A== 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=CV5vp9yNEMWRjVcmrEMJZsi396x0tbuEigUSMMWFwCWzLeaaxMLwZnrZXgY2WukkwMP0anutmIAh6/pjpBo71IR70wB/okD2J4P+hdxT86RrAB9LAEOfqbYhgRmBVrZNdU+OxcTDbiNYwhhQERYMr762ciVJdS9AAxVBvGVpkbI= Received: from DU7PR01CA0015.eurprd01.prod.exchangelabs.com (2603:10a6:10:50f::13) by GV1P190MB2111.EURP190.PROD.OUTLOOK.COM (2603:10a6:150:1a2::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.17; Wed, 23 Oct 2024 17:00:52 +0000 Received: from DB5PEPF00014B9E.eurprd02.prod.outlook.com (2603:10a6:10:50f:cafe::dd) by DU7PR01CA0015.outlook.office365.com (2603:10a6:10:50f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.17 via Frontend Transport; Wed, 23 Oct 2024 17:00:52 +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 DB5PEPF00014B9E.mail.protection.outlook.com (10.167.8.171) with Microsoft SMTP Server id 15.20.8093.14 via Frontend Transport; Wed, 23 Oct 2024 17:00:51 +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 v3 12/73] net/ntnic: add ation jump Date: Wed, 23 Oct 2024 18:59:20 +0200 Message-ID: <20241023170032.314155-13-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241023170032.314155-1-sil-plv@napatech.com> References: <20241021210527.2075431-1-sil-plv@napatech.com> <20241023170032.314155-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB5PEPF00014B9E:EE_|GV1P190MB2111:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: de972ba6-b60f-4a67-74d2-08dcf3844051 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|1800799024|376014|36860700013; X-Microsoft-Antispam-Message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ATrkMa2IsKunwqlXnXhJ01vXkvcEqQlSaGMu8EvnN?= =?us-ascii?Q?vwsT4q3F5W2C2H1QUQbALCI68xfaNXM8OgiKW2LYZx8oqbXcmsNW0GnQDM1g?= =?us-ascii?Q?9ck1hFoL1JnUDGMqsbXK5Z3xHKAB+1YHf7keOosP50En1JgQPXs8HPymGl3q?= =?us-ascii?Q?6gFtKhtVeSox0hjBNRe6EkHygMB/v9RhTdEAnu1oeHFKiKBfrYrUwJ4yG057?= =?us-ascii?Q?7oyVQZz1TG7o0q1B9+6RRZrznRztRxK/aYUbfvJceOn+d7At7HKOLFsQG00W?= =?us-ascii?Q?yzLotzWF2ltvakKK0mV47EHGFU0qs+5ww1ua0+o/G00ipUCsbcWFcM7OD6mV?= =?us-ascii?Q?zsdO0DdWj/MgZw+fkkv+/kZAJigu4NPmu+aLwPb0/AjQ83OPQzwnHJF0qs5T?= =?us-ascii?Q?sMeMPXivH2LW0WRsObJWBrEHBM/XY8XeYtZytZWoVaOelQA4pvd8KTOLn8qw?= =?us-ascii?Q?lZe2ScpNu6Q7i/mwnjSPiG/pKbQNoxRnPxV9Hf/1BME0+LKA5sPo+FrWAYSf?= =?us-ascii?Q?84fzeprlz+5f5OjxOB7UTdywbSe+LZJ9udcaZ4pdKQDvHb8cyA=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)(1800799024)(376014)(36860700013); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: pRzYYnbYBNG5e6jlKBYYwfeG4tmPykkl3yS4+Ct1Dsa4b4aqY74GBTJ7WJq32BLMz88dr8CRPN0+lG9NqfSwtmJGpEHnmP82vhFLNVcR3F961vsg9g8QQ8QD8nB2Aw3PhLNGNqnkoCieGt9vKLmastUTqCLcA6oPl3mskbOkFhjFbb8QO1A+CKmpGtEC0pvB5VXXzwFUNnJ0LKp6RmqI63o1VZ5tVRIXDX2Wxu1tyfqYKYAiq5ETbgtwiHmEpiD6zPPDtGjCOyhes4QI1JAxSp3VQTjxekIZYmGlvZBfJo5avoUOZFiJDsi3dzBo/6Z9WxL+0V8QDredj/8cgketL5uzaBLgsWB7YpM4Z2sVfqE8PcOjklvPz2zfY4EpCclHBNVMaoWeFiYh5XtQU5EZ3vh3J6gJcX8ia/glIhGgAwHW1DeZnLNxUH/ur/YZ7yQY6NgQE3nYfmcA1Y2cXKMGRDPvaZsez6kah6J4BYmnlCWiA9j4GZ0klvBjgVlaZgozuP6Y04CP0cNPEC8vTqgCRkymOHahDN3w8OqPDwCaxX7M0klUzkM5j60owxQTlultiQftesYNN9A/1gKzeAiBcNrvSDhZHUhEFR6S8Dvom9vTff0Z7SiEaQ+sxUq+3TqiXkns3oPxKl+wlWBXBfAJXMDpfM3DnAIe1tXO0K8Xep0= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2024 17:00:51.7736 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: de972ba6-b60f-4a67-74d2-08dcf3844051 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: DB5PEPF00014B9E.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1P190MB2111 X-BESS-ID: 1729702853-310766-12812-42090-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.18.104 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.259925 [from cloudscan12-179.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