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 8A8D745B96; Mon, 21 Oct 2024 23:11:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0529C427A2; Mon, 21 Oct 2024 23:06:54 +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 F35A940E2A for ; Mon, 21 Oct 2024 23:06:12 +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:06:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nJWYDqX6z90az2+X6ffKLRa+pu3aallLTLQ+8kIftY6j+oJwwv9TCR9GOA4cdnhZQdpV4vxaupGUdhBVO+kAZphKO0hgCeM4so4A9ZRXpC9cqm/2g+xAlIDCoWNNg2bHnIoHndF6weAOX9Tsccs6oZ8UTCXssCLaEF57l4wqYy1pqlF7dDjzIhoUdXf5j5F6h/N13NXanuFkEXqX91t13bXZuHayu6KSfTr+StRCEdSZWHQxcLZzgtb65V42GdvcaxLgUIFwBbZYxNCTg4URSvjmfNptakoQvllQBKqewPM3OwGU82Bv0FjDM76xL5bY4XCH01a9hUCNRy4oqQrMLQ== 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=FKxL3Z0rAkUzBmRn15qJra9qUitIt/xmX2EZeHH3jUg=; b=VuGKvQwhco8eaCvGWmZZM6as1k7sUMtY6uw/7K+9gtwUmEgaJxZElSqt/Frz95g/P4nif8OeudgfmgPC0AkSmHL03vakMaIgB8B6U4UStuhbB4SWtI4T9J9HkzQ9ndPH5VvL4x6s1rQIYnIr779TOcbgJiqoFMsmRyJsMwCwtFRI93aNLZ1u5fYlFlTGT2Hj+dTm/SGdp53ORX75ukKomtsQqu8QyKXycXCwRQDCaLlTPFqv+aq14VV2Xqj15lbKccX6+YXgYEcIcErhlQwC8RotJ+PMIRQFHFo90ihyHSBXo/8gngZbbEhUkNvAOY6I4hKPpu16Yg0N41dkqTEx4Q== 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=FKxL3Z0rAkUzBmRn15qJra9qUitIt/xmX2EZeHH3jUg=; b=bZcyUOVCJVLD6Fqbasgs4f+q5KlGg470r3WVvS/ZIrSfhiWCW1Z+QGOCFYR//4sJ4ikCMeystVp5XdhErj1fnQS7Ald6V3+ehZFwcaPU10l88wxxsYY3XbW/+pDiSZk31WtuDD4zxaflng3xb8VvPGjjff8tgB4z6tDnLCkxlnc= Received: from AS9PR04CA0133.eurprd04.prod.outlook.com (2603:10a6:20b:48a::6) by AM0P190MB0770.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:19a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.27; Mon, 21 Oct 2024 21:06:08 +0000 Received: from AMS0EPF000001A8.eurprd05.prod.outlook.com (2603:10a6:20b:48a:cafe::d0) by AS9PR04CA0133.outlook.office365.com (2603:10a6:20b:48a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28 via Frontend Transport; Mon, 21 Oct 2024 21:06:08 +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:06:08 +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, dvo-plv@napatech.com Subject: [PATCH v1 52/73] net/ntnic: update alignment for virt queue structs Date: Mon, 21 Oct 2024 23:04:54 +0200 Message-ID: <20241021210527.2075431-53-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_|AM0P190MB0770:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 404e71eb-a69d-4391-9715-08dcf2142f56 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|376014|82310400026|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?XiTlhyADfm3s5qsq4JLpDn0Vl9nQLx5LkRk44n1NAzRrapBysYAQc1DQohrD?= =?us-ascii?Q?a9xzr472JbDhN3yteebmPiDArOT3MwJYiy8CxbjRzNmxsfTfaGchZYSxcLNV?= =?us-ascii?Q?3FG4EG7xUEqeXgLK9yYW7o8px7dJ06G5o9lzySRsBk5gmlLb6X+zVKRY1EZG?= =?us-ascii?Q?BTbdPFAPHulIB7+MK6S5UbfLTe3TCqgE8DhgvvvtjXneybNlpgMs1QNX7UfX?= =?us-ascii?Q?BV1xR+WsGPZbV2ugXc8fWNkRnijjCnoF4hhHTZ6mQeTNEyyFgYExTgi7Cwep?= =?us-ascii?Q?YMXdE3jm7D5gE28vwSYlPT92ly5UYoqB6mXlzYLBihsDEquvo010LktB4wU+?= =?us-ascii?Q?DHurZkY6hH75PvH7UtxOBzNiPFiLqvxTlX57olfZ7LE351/dRMhBnf+DF501?= =?us-ascii?Q?YXd273ks9p90upInhB+HpaPPNjwiXyPmcY71GjHjm4a8JiHP0fIoHHo2iP38?= =?us-ascii?Q?Xfy3grV6b8eAPm6gkcPOeOROj8YK0OGUYm1E5lNBPZaDPR/7r2Ed0lvTcygT?= =?us-ascii?Q?jlzFfDPqgindkHOjF2Mf4FVPQZe8SLkMOtXH0h2so4nFJ/yTqGDeLV1blFsd?= =?us-ascii?Q?9L1TKXld5m2V7uQiyEhc5nh2d/HQKYgnTEn8uYb2UnGYwXiLW4//TGmFGhQk?= =?us-ascii?Q?FibaMBYTunw32vzgGnIId4unoN0pzgTTia0+UmysQBkENMsr1f5fsmcKsIGD?= =?us-ascii?Q?60j5ciLwnjl/DLCzvPsKD733GSawHfAH7E4TkuJ7TbWz8PHtdsEFo0fMkxQk?= =?us-ascii?Q?TdHPxChZKeSrl43ciTDseSad7hGLJInBP4WmJLT7OTpmxFMOa6JmMw4YtPe1?= =?us-ascii?Q?jRIxws9G5E7mrG+FLbIfHaNqiad5H3dWKxa3oRncN28zI+jMPjv3ptQMerOn?= =?us-ascii?Q?uPXBfzZ42kWOaSsA+CCeib5acpCgvGC5NRGKV4pS96wDkkmKELpyie7u8kDq?= =?us-ascii?Q?TBa0WTuh17C/AyvyCzTLVq9IMEeyZXwkURS7h44Laalxi5Hx/7OkbKU0GdiM?= =?us-ascii?Q?e3lnMsWzDsp4tuIdMTyq88B+Qh1X+5RA8zdSaAGMqchEL12+OXyNEJ2sp2GO?= =?us-ascii?Q?kVfVv4v2d7fAoNfSy+9waGY0oiqKJqMB2c29sTUa3emrjZsF7QPDqt2H63xp?= =?us-ascii?Q?FBW1BB+8w8DNnxg/YOvSlAd8c40q8M8KtDzV8tyTSLI/y+xGVWPUipZhYhda?= =?us-ascii?Q?coDhl5/0c7X6EsiP9SH18ewpRHSNsdf+0XMemYRJLxfW8WLxlXRQmRo+0zpx?= =?us-ascii?Q?wGu7oBMXs0XM0dQ0H5yMXtxz5RazdaEvK3TWBEsqvoMr9L/YNp7lFLxt1JgI?= =?us-ascii?Q?kz440wWTFABmWR15+2xa5ej8CmPifMLOxLwUQ8/JvDeY/5t15StVQU458ZNf?= =?us-ascii?Q?voyTZtKNAOM81elMBSyr33TjwslSnGntdAYspVTaokMITBsRXw=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)(36860700013)(376014)(82310400026)(1800799024); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: YSBv2ntGTz8USQ2mL1AdPyvdWCmlJLRqpYoHHYs5w1oHCegWdDVVo+2SNvnt9kvyj3SQ7aTTlgZ9LcsxDh56L5lgGLg6w4Ga4oH5Iwly6cO9CTR2ExljvHTpX8cOW0ooCUDs9vAsqYRgVVjIzx/dqRMI24mlr/jv0Mu2EdyPq09F9jTgqTVeeSxIvDi5EWCm97Tp+cIY1mSfWUdkkMjUdPpFOy2Y29VWfY+SBX8jGVp0qcH0u5gp0i1wErS7Vty5pnxIeaJJZxN8YcECqhqWzIBXKUrC3CvnoKewBy+AW6y+c+S5WfL6tyr0U9z6xCm/pGy3EKsxrc3HSyUIudoaX9Te0AwAx1i+UilJnjVu+562r7mlGfF6EbEj7ITAe248El5XtIM+kXIsU3b9UdwnTL7V2ZpLMNYnHsNKGU/dW9b+OpFl57I/UodXq8JDoKPP6+JC46kcLn+klkTDbAFjo4p+ToXjt1oR4eqtYtPQblQPsZEuWpK+2BJnmUmZVQMHwOHy4iU8mozSQQhgMaDfU2c3S0o0ivEuc7T9BxeNNI9EhuREiqHKYg3Lc8H7MBOyoGJtYUDrFESt3PvXY10gam32mE4DpBtGg/c95QWTVH9+73wIBmk6lU42mlhm61iT174iqYfqbQ3mmMQerVG2ZVMCYiVniMKKoOi4HY1Sc58= X-OriginatorOrg: napatech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 21:06:08.5676 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 404e71eb-a69d-4391-9715-08dcf2142f56 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: AM0P190MB0770 X-BESS-ID: 1729544770-302135-12937-43209-2 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.18.104 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVoZGpoZAVgZQMM3MyMLUxCjF3M DE3NAk0SzJOMXUAMgzTTQzSUkxSFGqjQUApDUkaUEAAAA= X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.259883 [from cloudscan16-126.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 --- Cc: dvo-plv@napatech.com --- 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..70a48b6cdf 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 __rte_aligned(1) virtq_avail { uint16_t flags; uint16_t idx; uint16_t ring[]; /* Queue Size */ }; -struct __rte_aligned(8) virtq_used_elem { +struct __rte_packed __rte_aligned(1) 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 __rte_aligned(1) virtq_used { uint16_t flags; uint16_t idx; struct virtq_used_elem ring[]; /* Queue Size */ -- 2.45.0