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 47E4D45BB4; Wed, 23 Oct 2024 19:07:29 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 961C1432A2; Wed, 23 Oct 2024 19:02:29 +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 1E13542F9B for ; Wed, 23 Oct 2024 19:01:34 +0200 (CEST) Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03lp2234.outbound.protection.outlook.com [104.47.51.234]) by mx-outbound15-83.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 23 Oct 2024 17:01:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UHvFX9bXHwFZ4D0z3olsbpDW6wI7hWQG5WD2tNCJr9wnYifCLzDKutCataxBPL79m8soSiU1bLee4DgZ+jTUMfVuNJMQSf4EKzPRfsgC8LWipK/XSVXKtCOu0BOtste5C/xVRxEnXrvqZPa2NJAWYo6E9RzeFq1f6vTX+hjiQiT1WQ3TfeVdXF8m219NHR3vMjFndQkapRfrxENoAg2Bd3dsmAiGbwjU/PGsgx++q5jSTf0OcnPl3CUSmHYftAH5/1CvR8KIbzYlvADkKCv+nSDCQsVO1SlcjvXeutBYV1AOCw7/gynOI/xlk38OwYGWTbC4RdqKp9t+Hw/pbuuI7A== 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=8NFiLkeljKrC5AYmmMuS17C4vL868yfqae+jovAMpb8=; b=FyMxTXvnT+LtCqq4cKWGqlUG0Z8+qlVdJcEwcYjlRXqZu6JTnAuDwsSXZ4mfPdXZhOA6QKGs9WZ466QeIy26qW3RTWBMCc911qA6HNl72tHfSPkRYDndlJGLJHFaJngl7VCTsL8BorpH9VzYVKUhzkk9WUNK8eyZbg4Y0dSs9QS5ZRj5ByIJoxd9pIRjmAJvnKycNYREcTGRTvtsiycpruX9S14gD3plnPE6ht5nHZA0HDiJTv/z4BMrA7u0aUThLLPdGH4ZcRxBlf+Fwu008mDH8gpMyLrqME+CMiynOtEpSPAI5Ou167aqyZANEByYtLsvHdQ/wBuYa06eoZJ9Rw== 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=8NFiLkeljKrC5AYmmMuS17C4vL868yfqae+jovAMpb8=; b=kKjYJZzHh5IP7K5M+YRTCZc0Vk4fJGogFgxYvh+0HN3AJd+O/6SdISSWzHsw5gRDivH2zzOs6TlmLT+l98rR2bSHodb6yjZU1MoByJ84JhrKGeuk+9qBPFn+iT73vUo7MezB0CvEbAgfmCwLjuwrrsxuGatPBaabXSorMyxGGfo= Received: from DU7PR01CA0006.eurprd01.prod.exchangelabs.com (2603:10a6:10:50f::6) by PRAP190MB1763.EURP190.PROD.OUTLOOK.COM (2603:10a6:102:29e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.27; Wed, 23 Oct 2024 17:01:29 +0000 Received: from DB5PEPF00014B9E.eurprd02.prod.outlook.com (2603:10a6:10:50f:cafe::81) by DU7PR01CA0006.outlook.office365.com (2603:10a6:10:50f::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.31 via Frontend Transport; Wed, 23 Oct 2024 17:01:29 +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:01:28 +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 52/73] net/ntnic: update alignment for virt queue structs Date: Wed, 23 Oct 2024 19:00:00 +0200 Message-ID: <20241023170032.314155-53-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_|PRAP190MB1763:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 115c05cf-ee23-469a-0485-08dcf3845664 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|1800799024|36860700013|376014; X-Microsoft-Antispam-Message-Info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DtldbM9Jdgmaf4AsLwZ?= =?us-ascii?Q?M7df4jXA8SqnDUZf8QdZyTTguGrWTCwY7goOXYs4gsvO5VPKH4T2/FftoOP8?= =?us-ascii?Q?AKFTVP7H9TK8mP6QntSF+3MczbAYx/6RGhOZlxpZJBdEDx3eD3Yk+yjcsKst?= =?us-ascii?Q?ITeX9Cm5cBouWkrF3DXZtsOsmSs82UcPXO1fkNzCAp1tMzSgknig0oId5h/9?= =?us-ascii?Q?UA4jYCiGT1m0fecyg4Sx2xAz/jWWAor3WOojd4dtggfYEYInxR7r13+ICwSX?= =?us-ascii?Q?FI+hp0+C+V/SCt7zQfkDhgtg1VJat1B/RSORaNT9kJvmBY0ABLGQyHELPD/Z?= =?us-ascii?Q?aTP28D3aCwUgVhCYRMR4vwGVZraKxAhT6+dmRi7I3J6GDkiF+V7fZ0xatfN1?= =?us-ascii?Q?EV5SDb/xqyOpW8H+vbU3ri7UMDWmwfms2L7r9zHVhlKaCcR13G1+Jlu+O5mF?= =?us-ascii?Q?jFpZ1RJAo9OAOfmHCc1HehQaacA1yERrHqM5NeSjRjE2SxSzthZW+tEtmQkj?= =?us-ascii?Q?Kme9BmKGtFta4jlAfZnMi+jocNdv5og4ZH9wcXuuUj1BvQNZFw=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)(36860700013)(376014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: k56Q4/lv5uJZfkleM3Ht1fWNuD4cesVpHTs/odod2WtoOxgaC+ugjZekqnp0PrdS2/55yvvSgj0xBVguKU34hiSLI4UWjv5TscKkYmJlk1AULh85bdp53mToi3GRwycG3sJo8cVv+tzECWhsvf7ZxycEVM5OuwvuuFmzFgkLkjnS2TJn17SzP2DYnEvmHppGd5f50U15pA371obSR7K63YVE1XOkEJXnUTerVGOfsuwYs1Bb18e80ihxpjJJ8xO748h02V837aU5XXXEPxNWsItFK0JUhyHMWH5PbWOEdRnBgpqDtEyoFD3bekHYLknxDjW7VXpQ0Zv+pyXeViXOONy3OkstDIN8gNt8lE91xLAd+wDXDquggodvQdUtv6mtJ+8ohSal0k0QwU4FdpWWYWJSdHZ/jxnM1vMdQTydzY/z5JOWNzFudaAbqVNOG44KRY7xdtyl/pi7i7t801NkAM59ufqqtYFsdY9wQqQbf5/e/cgKy65S1bf+CNTWG6XLdNpyVRuzpYcSiND1Xb8QRDv2+D9M+5lBPahFDAXYoDsXCpxbD2H27hJIw+eyyVSjstItkLGcVjXkJx1LpBu3x4Bj1OcDwuJWoS9xNKeaGFpLREIxBydf7LIBPQEkFono3B8mXMzI9dPqg/G49EX44YsLbx7mfVfP+TKQBl661Es= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2024 17:01:28.8052 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 115c05cf-ee23-469a-0485-08dcf3845664 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: PRAP190MB1763 X-BESS-ID: 1729702891-303923-12645-44324-2 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.51.234 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVobGFsZAVgZQMNnEwDw1LTXRxN LMwiglySDNONk41cTA1NDCwsDELMlMqTYWAHortgVBAAAA X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.259925 [from cloudscan22-191.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 Update incorrect alignment Signed-off-by: Serhii Iliushyk --- v2 * Fix __rte_packed usage Original NT PMD driver use pragma pack(1) wich is similar with combination attributes packed and aligned In this case aligned(1) can be ignored in case of use attribute packed --- drivers/net/ntnic/dbsconfig/ntnic_dbsconfig.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/ntnic/dbsconfig/ntnic_dbsconfig.c b/drivers/net/ntnic/dbsconfig/ntnic_dbsconfig.c index bde0fed273..e46a3bef28 100644 --- a/drivers/net/ntnic/dbsconfig/ntnic_dbsconfig.c +++ b/drivers/net/ntnic/dbsconfig/ntnic_dbsconfig.c @@ -3,6 +3,7 @@ * Copyright(c) 2023 Napatech A/S */ +#include #include #include "ntos_drv.h" @@ -67,20 +68,20 @@ } \ } while (0) -struct __rte_aligned(8) virtq_avail { +struct __rte_packed virtq_avail { uint16_t flags; uint16_t idx; uint16_t ring[]; /* Queue Size */ }; -struct __rte_aligned(8) virtq_used_elem { +struct __rte_packed virtq_used_elem { /* Index of start of used descriptor chain. */ uint32_t id; /* Total length of the descriptor chain which was used (written to) */ uint32_t len; }; -struct __rte_aligned(8) virtq_used { +struct __rte_packed virtq_used { uint16_t flags; uint16_t idx; struct virtq_used_elem ring[]; /* Queue Size */ -- 2.45.0