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 382A045BCC; Wed, 30 Oct 2024 22:41:32 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C12E743486; Wed, 30 Oct 2024 22:40:23 +0100 (CET) Received: from egress-ip42b.ess.de.barracuda.com (egress-ip42b.ess.de.barracuda.com [18.185.115.246]) by mails.dpdk.org (Postfix) with ESMTP id D895743386 for ; Wed, 30 Oct 2024 22:40:08 +0100 (CET) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05lp2171.outbound.protection.outlook.com [104.47.17.171]) by mx-outbound17-81.eu-central-1b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 30 Oct 2024 21:40:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=r3zlUDWGiS8IKEEeiE3g7gY7dafVZ9V8wYzhvoOE/eUx3wW8BkPJvyHrq6yaSu6qvltb+UrrNwko5Sq74BhDIFmbcxJTEox2krlRLTbuXiojc+g3G4XH5QaeVCGlkB2SEhh55wFVqam4SQ4K8pK1RM2HYAXygzKxz3HusrdZIR00ET2XZcdDnhflIQdDt1Ra6EX11FgSzvtwtuNfWpgDTVI8fWeb7k8PmR5zjOY1wu7wRKCVVnlvtLVylqrewqoCx3Mx4n1jtZxkFEbilaU51+K40juRo+Ko2Z9kgtgemrh6GJFWbzvTxBLJxAg79OgsLBwsjT4WtJhgtGduoVeG/A== 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=g6gHkphDp1JSMWlTnCTkgIeiAEOkkrwEA3GN5GloLPg=; b=qmbh0LpcLLR4NtYqniTbCOpBDjji+geSiRv/aUsh3+RrOE6666rZZNSIdQVi79xVLVHu1kcA2Ci++uH/g0VgqDfBcQRvqVxLO6mbzdafYYYK/X/6e+3fRp8xbH3ycj+LS+pcILk0XnBRPtziakBKBTL1XC8CfTHhEKhJbOxtDmdXVdQ9rYh5h+avGEP6Bnu8iG5zh4dFUZ9UI/aOToOB+cPcpr0lXQnWVFhQMhN4l8Bco7QcfAza2OlpwjvWyhGOtYpsCeyJcw0bG0/VDF1GgaQtyYKuKyyc0wtTO9ocziDhDnZ1sOB5zAgw0ofalSFkDYKyVB7E2toGCGsY0/a6rQ== 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=g6gHkphDp1JSMWlTnCTkgIeiAEOkkrwEA3GN5GloLPg=; b=dyG/5ssujvjY9eaYggKeLDWmM5acLRAL74aMh49E98MmtXq5epVhM70ymOAjmNaqYDZFZ3zDPFvM1Y/vtoZDqBmMQ6IBIqIlhSKOZDtJazR+7D67rzIYmrkyPp5WlKmPK0AV2x87LuPSLCB0Tym2vfZvy1Z3Qu3dQWHYiQF4Ov8= Received: from DUZPR01CA0005.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c3::9) by GV1P190MB2020.EURP190.PROD.OUTLOOK.COM (2603:10a6:150:5c::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.27; Wed, 30 Oct 2024 21:40:03 +0000 Received: from DU2PEPF00028D13.eurprd03.prod.outlook.com (2603:10a6:10:3c3:cafe::16) by DUZPR01CA0005.outlook.office365.com (2603:10a6:10:3c3::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.23 via Frontend Transport; Wed, 30 Oct 2024 21:40:03 +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:02 +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 v5 12/80] net/ntnic: add ation jump Date: Wed, 30 Oct 2024 22:38:19 +0100 Message-ID: <20241030213940.3470062-13-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_|GV1P190MB2020:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 054dcf1f-34e2-4c56-d555-08dcf92b69ac 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: =?us-ascii?Q?eRQPNXZOsRZqKpl4mFPvurYHHjlARJaXvDhc7B/7KpOX8JhwvOL/rpXEYqP2?= =?us-ascii?Q?r9LHweB4f3MpXdNAGTcKGXzC7Mcsl79OmumH10vjgDQYXVjVbZbOakFLV4OQ?= =?us-ascii?Q?1GKjXDlkMgEUd5gpV8Tnp6bQvVf5EXI87kZQ24VIr1sa5fyty40pNXtXiiR0?= =?us-ascii?Q?TQtVBIO3u61J+MTu48XIOhLqeXITxboUFt35G2CIKj04vfv1Njinvzdc6nAT?= =?us-ascii?Q?KMNu0hcR6n4T/FxAR/2mG3cvmmZSq2o746Po27M59Dtm8/hkmiBNlglTniJs?= =?us-ascii?Q?5tVWGrY78Obj/CP3AyVQPpgrXOSxHVbS8zB8g9NIkqfKgeElKyfZ44f3F6fS?= =?us-ascii?Q?rN7S26+h5AS5JE8TZ3RMEUuErUBwbM/w6W31CGbpmBY8rBIvsy7tpkB02f9H?= =?us-ascii?Q?oGaUGHi+FtaZZ2RN1FFGGiqtQZVDv2QdJIetAbS2NSu8rKkJEpRzddro10eK?= =?us-ascii?Q?3dctue2ovnjtnnO2WqP8BaXTqmM+NeMMUpVIHn5OrP+Goz1ObW4ZKq3Oj/UP?= =?us-ascii?Q?PJgdRABcuqdBSpnAA5bOIFy1TUapLxpqFsdzxEBghBVvSL/i0kDvdi8iLmiW?= =?us-ascii?Q?XEevJwZX5ySjRNoeJXdEb67k3sfx6vfdOvh5/wYNb95YcK+OghI8TXUd0bDJ?= =?us-ascii?Q?mXf3pdXG56AD4b3I6p+s4YyqxY3xyOWxT0PbqWrkSwJL8KYuDuZeaH8FZrOo?= =?us-ascii?Q?aOD+cTU0HFpsi1ymQFgECk4IAGvjmGPpzmkvsWURSGMl+XQMgJI/XN6LItUs?= =?us-ascii?Q?Nh9f3cC3GwgaU4MeX85yBDsDdXOclOPZXhpYj56TRctLqvEmfmApEmOt+DD5?= =?us-ascii?Q?0c6FgEfg53ANhu2GnxpYCWlVWf2x2jPykDajqdpSWF1zFXr6oQ5fhKt/6fo/?= =?us-ascii?Q?P6o/1FnEpqykl7pan+mcPBNjhvxU36HpqVQMEEcxYYR+v20PGpAr0G56MoGz?= =?us-ascii?Q?WJLnGszHLJopRQNGt3xm8nqnFUnXmpZNbR8l6CkT00fm7dNvDIUHGpKC3PEk?= =?us-ascii?Q?VOY5+Yi58jlZUxDYXAthl3DTlZQL53o5XL1oBKjpIU2J25eULI9jBOG7YGvc?= =?us-ascii?Q?MeVFMp2NDprAQhDmLe1L6kIvGKp1/hozIb5xS+I1XbPw/zmyKDnVr7vzI9kC?= =?us-ascii?Q?orBIQlacnNkFYngzBAiY5kM7+iJVNYaPmPEhjuZezdTCeV/BR6BZxsB5yZGZ?= =?us-ascii?Q?ucV4nTiy3cD/OAa8E+k1ROu+g17/zzuoEQkEhRGG3MRo9AVASi7NKU8MPkcu?= =?us-ascii?Q?iOyYVb5fTNIsoEcMrSSiNNSTNmJfQv/R3ldUK3ZtuPu6ERnSHwbQJbw7JTAX?= =?us-ascii?Q?Q7e3GOodHVtmxfomvGmihOinIPXNiblJ5ZQ4QthNOVj7zMAIruuhlNd/P62x?= =?us-ascii?Q?Gzk80lIQDT6fShD5nnbUW3wF4RdEwwGrmQg+LVN32HNe0QTn8w=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)(1800799024)(36860700013)(376014)(82310400026); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: JTUa+bs7E5xgXjDvRoB3v6ADVUUTwp3Stp5Q9o0Qly61e3BXePZo2DbIzHLyQ6uVyVEf9dvgTaNEDupC/uSUxZIinvWud/yVKX6SgXo0r9+3l4jr/dhYa8pRqmdmIOWYFeTGPbK+CdO5l3H+4PdwaGK6c0GxV00szC48iujKgJvCiHKuFK3CJ3jaRzMfPHs9MSc9HkVNY2LwxzZ2sK3fxwKnInGUlU9XtExa2rKyY5PqvLKr7JiW4+ao2ZH2LU3bScDvYG8lz0JTWQrjzrqSvBYXEAc6ZjAopFv5chf1nv/x12zkkFkU+3yrK3Fjxl3qx7sZkKAqAXOODrEO0V9Kq4z352Xh8TTtEygWWtcdRdq3sYKEVBi6NK24IYmlj+YuXxF6kejdZT72FFJtdKnDmjmkjS+YX0S+pwb42tfaV2kl0hjeNgl4RBqslELB24Fx3+mcn+3WAMRH2dDy/5lSh/8K0iLR/5fQ4bbgebn3op8FxgLcTDYEVc5tdP/z1oKHzt9eZ84oE1rU/smHTbJxuJHE1S1Q+hn/zFSifKgSrurmZN1tdY4Rxc/6lN+Vfm2OEL/FlM/3LU9xw5rwtcTbrJpcs6adxuZDvi71KvzaYnBo7Jolm6/zTTTfmnKfQTDrbteRaRlI8da/PsE2A6vhhdbuVrzkwdyHzlQGRhxVH2U= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2024 21:40:02.8487 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 054dcf1f-34e2-4c56-d555-08dcf92b69ac 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: GV1P190MB2020 X-BESS-ID: 1730324406-304433-12632-44612-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.17.171 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVobmFgZAVgZQ0Mgg1TjRIjHJ0C DFIM3UMNEw2cDc1MLc3MTAPMXEwMJQqTYWADgsGM9BAAAA 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 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 e8b31dbdd2..9dfa211095 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