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 0456F45D55; Wed, 20 Nov 2024 19:03:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 48C7842FC9; Wed, 20 Nov 2024 19:03:12 +0100 (CET) Received: from egress-ip11b.ess.de.barracuda.com (egress-ip11b.ess.de.barracuda.com [18.185.115.215]) by mails.dpdk.org (Postfix) with ESMTP id 5E8E442FBF for ; Wed, 20 Nov 2024 19:03:10 +0100 (CET) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05lp2109.outbound.protection.outlook.com [104.47.17.109]) by mx-outbound19-1.eu-central-1b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 20 Nov 2024 18:03:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OYNOAJZrGlo5rSQzaA/hZIPHlRgzerCsn6XXdvcPIbjBCUqyhp5DN3pyAN2MdJ50HyPSzAcw2D/K9gNNRNsF9aBmHPX83iqu/09yn0SlTiNW0aku2a5YSaYWUPkn2yzh3C6ur4YSUfxTw1RZSSSFymPFjA7S/u7hkMAYq/nFFGoYx+ktRNB/ex+H7Ln0RAJBeXzG8MuNLKOKYi+9b/S8kh1drdmwQIuomn8W/BChmf5e6Yh6P+dpcTMAXmHjvJs0IDgWsNpm6PwrWcuKgtRIPncCqO9bToqIaBwUWQwmKT71g3u4ooja4kFj+/wiKuHgTDh3uhhT0EFJF6cBjfeXSA== 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=Ljc/9NjGAFHR2uZToWpF9o+TBrQ7a5ZPK8eabgnunaw=; b=y+FAfXDD663/jnd3S6V8AYa2aUTkasgkGGKUoqSgn3Q2QtzE9F2yDd5KqK3b920r3mI7SN9UGWGXcogcnq5VINh/Ta7WNZwbB/CHb3Sp1tDxGM9WtTsavIRt6vBRsUcKvhHbpY9bVymIiyK//RTzFB7UHVENpvs/4PCqfjh4BmEr1O2yIjzEMrTbpSqAvYaV5lhDPbt4+OXgYEtopSQ+i5aNPaFMpXalV3iRpSyCGRNJI20+9VrtQ6IQCDhaOWcyyWEL2UAK+FZtLQ0NgX09Px2k25jm0H9zIDs+lQWomg14m/WI8IaXQZlQP8PmZPiAprlMttZz1i4JXawyG6xOrg== 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=Ljc/9NjGAFHR2uZToWpF9o+TBrQ7a5ZPK8eabgnunaw=; b=WbGtJ+pQaGL+N8KPVc7Z+82ZZV/BpqIrrPG0N4XgVXRJfRFu45HuqS4GnKUGPR1watbD/ahQPgfw6ZWnKLdARxBC9cIoqJ7qW/SNMYICHeHky5rW7ktJC9+ZTljoP5+6HnZ6Pp6e0K1ndN6oPDxYDz5iITMMvRvFYZ5L15BSmNk= Received: from DB7PR05CA0032.eurprd05.prod.outlook.com (2603:10a6:10:36::45) by PR3P190MB0873.EURP190.PROD.OUTLOOK.COM (2603:10a6:102:88::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.22; Wed, 20 Nov 2024 18:03:05 +0000 Received: from DU6PEPF0000B61D.eurprd02.prod.outlook.com (2603:10a6:10:36:cafe::96) by DB7PR05CA0032.outlook.office365.com (2603:10a6:10:36::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.24 via Frontend Transport; Wed, 20 Nov 2024 18:03:05 +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 DU6PEPF0000B61D.mail.protection.outlook.com (10.167.8.137) with Microsoft SMTP Server id 15.20.8182.16 via Frontend Transport; Wed, 20 Nov 2024 18:03:03 +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, Danylo Vodopianov Subject: [PATCH v1 1/3] net/ntnic: fix action modify field DSCP Date: Wed, 20 Nov 2024 19:02:55 +0100 Message-ID: <20241120180258.64185-2-sil-plv@napatech.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20241120180258.64185-1-sil-plv@napatech.com> References: <20241120180258.64185-1-sil-plv@napatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU6PEPF0000B61D:EE_|PR3P190MB0873:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 0022f69b-db5b-4e34-94b4-08dd098d9454 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|36860700013|376014|82310400026; X-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M3A2l6rUxCXc1ooFzR22fvwFVVR/4ktS+d36llEn5AfZMYYSOjB?= =?us-ascii?Q?eJwhMPYBC0PSeelMO6wYFTWgqGvRrxTnznulpO3yHTyQo84sFGr9D/AZpJ0e?= =?us-ascii?Q?9ntVCOB5dawOEkqMi+XWJ8ihzPCtvvjfTATqSZta7htzIqHJgE0bgLg1qd9M?= =?us-ascii?Q?rdM+gsJb8WYvbEbnDChfJEOC8/MqPZNRYcyGpMEiWeYX8HcfKBxIqA98KhR4?= =?us-ascii?Q?x7H4X7v6Sva6AnAsBaeqctjQSNS1MW5VMfRP7RcMHDguiYcq4Q+gtrD3W9VJ?= =?us-ascii?Q?YrhuCuOOc+qyDRSkComdDDk2AyioIlc9wycQzCdRRwTHf00A8rKddPF05C7Y?= =?us-ascii?Q?rNU21eSECfsCxigvImYZMpgxgJOwPf5UTv2+n4ftfESpSP91GFqsoMOXEJWh?= =?us-ascii?Q?697OO/bVb40+kW4LuYhdTQTDh+obvuQiCuYBgNd3y9hguZ+Tt9ddgGQCi49a?= =?us-ascii?Q?Ynfee7LVcom1LTbPPTWQyf7+husGMh9yhmL8HKkzDkjk9TGPqcqpz0lWLTDl?= =?us-ascii?Q?6e6GuHzOpR9txqfDl0FYKzCxGdxOicHvafWQ9ZJeJcUqQaJuiw=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: 3qFqQjOzAE/RyEQbBY9+dqC131I4TTGlTETbHdJXy6ICEIXJzeBH2/mw3aVRMLz7wUtQNX6cSGDZ6RtRgxR3qs5cN08qP2ZfHSE1kYG8hfqYNQgmi/1fg2w04rc7XuQmOtsULpoc/LWEaP7vFS9EVvWhcxFB3xuhz+yG/c7xJxTAYOEb2slttHnmJD67KCwJspHR0g7M/+GBqAMF6SlHvvGCNPYEbvF/cePkLgir1QYxhnnuuhRpC+8WbcIhglfZKvr12XYSoQ7DyNCeLYUguIzfij94fCsQoRpjuQGTx6yRR7pkuSxv7yR3I/XjPbpPZRn2f8bMZpR4bs7fkhWuUp6kmuJz+71BGSpvGC7t2w85RQLLB0cz8nDGxBebipb9m8jn7Xa3RtFBUG+xWBFr1nytUxaqnoRvsq94MCDu9YZEHP944KTURosRLGZCJi+L9UhdloPjhCqWJEkvRMB0+Kzj/s2+EN0zF1mTPxuxjFyT2hEsg57GV6QDlNtRnfAFGHfKpQPAkFZIYyaP0bdrHPxhrqllXuXglcXr8675sRonphc7xilblZ9gdmUGsR9CdgBoQ4PHJIQeZI3bCFAb0UgiGZgrYlNm+Q+JkEDapGvxuyCrVYSjMDM0FatvCnJHFlPpGzegJfUqLs40geDIwkGHMj61zc/XcMl8HNhh38A= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Nov 2024 18:03:03.6650 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0022f69b-db5b-4e34-94b4-08dd098d9454 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: DU6PEPF0000B61D.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3P190MB0873 X-BESS-ID: 1732125787-304865-13371-35847-1 X-BESS-VER: 2019.1_20241119.1834 X-BESS-Apparent-Source-IP: 104.47.17.109 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVoZGZmZAVgZQMNXYzMjEwiLNwj LVIDHZ3MDSEAjTjMwtLE1TjA0TLZVqYwGLlDWaQQAAAA== X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.260557 [from cloudscan15-59.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 From: Danylo Vodopianov The issue with modification of the DSCP field for IPV4 and IPV6 is fixed by adding copying the DSCP value to the flow handler. Fixes: 6fec9a9a12e1 ("net/ntnic: add infrastructure for flow actions and items") Signed-off-by: Danylo Vodopianov --- .../nthw/flow_api/profile_inline/flow_api_profile_inline.c | 4 ++++ 1 file changed, 4 insertions(+) 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 a34839e00c..683610445d 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 @@ -3057,6 +3057,10 @@ static void copy_fd_to_fh_flm(struct flow_handle *fh, const struct nic_flow_def for (unsigned int i = 0; i < fd->modify_field_count; ++i) { switch (fd->modify_field[i].select) { case CPY_SELECT_DSCP_IPV4: + case CPY_SELECT_DSCP_IPV6: + fh->flm_dscp = fd->modify_field[i].value8[0]; + break; + case CPY_SELECT_RQI_QFI: fh->flm_rqi = (fd->modify_field[i].value8[0] >> 6) & 0x1; fh->flm_qfi = fd->modify_field[i].value8[0] & 0x3f; -- 2.45.0