Message ID | 20241030213940.3470062-53-sil-plv@napatech.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Ferruh Yigit |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1949645BCC; Thu, 31 Oct 2024 00:14:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4574E434FD; Thu, 31 Oct 2024 00:13:43 +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 61956434FD for <dev@dpdk.org>; Thu, 31 Oct 2024 00:13:29 +0100 (CET) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05lp2109.outbound.protection.outlook.com [104.47.18.109]) 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 23:13:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VbzRjCDqUr6ykdPCmOfHr6G1UIlIo48bCHSvd/6HtYWvIhxXlS0TKdjmJvymuhv4WLAOj4Iy83/SG37ReYtGcU0otRMwNC/htfCnzXqx9WrY5LABoCEfDkb1jJaBTwxTQFwoCdQ46gKdfrl85Z9s1v7uFYkR4EMUooW2rgDZ0+1T7WtAAedhYUDdAWP0QCLs6LFE6x+mGghKNn07ABKnSzuH+eMjWw5FYzb4o1VeS/G94CgPjLo9OWCn0yGQZTFEBhGvYS6WrODjd1usPnJgKfuOQTHxuAMXfpPVfT1ebVG7V4r/5mw+LCmaV9AgsnQTSYnFPkJp3l27PNermANo0Q== 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=yD8trVJpYnXWof8QYn77bEWpjt2BxUrP5akW/AiJvilTUwCiK+C522r3Gz99//EQ/NaqIvDGmdWF+XaqzW2hVBzxEk4HJRNOpGWDD3yAifH0Vj0Wt67VWFbuagQxSltgbVJzs+hi1oo+wnu/HkvcLQoQlG5R4ehAopOwQFGj64iNMEqWmUt4Kvveb6iN0dKKH17jSipTItQ9O1AW9KLnwtmiF96uPzVUNyM0tYcvYnHhs2OIekuCuWtbLf9IqQ6ogo5gzqyC9G7pCjUS69jdibubwpGdcmTAAYiICzEUx/EaS6dA392jljscUl6jHtIihMZOyrTrL0MFANRdB2rRbA== 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=nrFvm2vonrTPwn7KCOw6p8fQF9CWZJEfbmnGuAQl/jYfhOnIEWipRI/Px4xuCanG6HEjpbXY1BC5uIFXlRqPXzgmfLvTX4tLWG/PnlH0zfFFzWcRmXpE9L/rOS0pQDCkmW1fISa3mFDp5QySg+JzKnJSLpXEkNMdjPCe5B7ldvY= Received: from DUZPR01CA0003.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c3::15) by DBAP190MB0838.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:1aa::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.20; Wed, 30 Oct 2024 21:40:43 +0000 Received: from DU2PEPF00028D13.eurprd03.prod.outlook.com (2603:10a6:10:3c3:cafe::68) by DUZPR01CA0003.outlook.office365.com (2603:10a6:10:3c3::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.20 via Frontend Transport; Wed, 30 Oct 2024 21:40:43 +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:42 +0000 From: Serhii Iliushyk <sil-plv@napatech.com> 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 52/80] net/ntnic: update alignment for virt queue structs Date: Wed, 30 Oct 2024 22:38:59 +0100 Message-ID: <20241030213940.3470062-53-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_|DBAP190MB0838:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 4c61f2b4-eced-4650-b394-08dcf92b8173 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: /TFdLLS2qGWe8g0gKHlV5pAQpaYCV5W3FJFXH4+iGegb+nL22kAhhjDwLzRhGYhYK6FJSIvfOK07KfaDI5afKZkSZOwHsTdwTesYnh3p8zmx3LpGqkvn3acWvAkz+RdiMQDcG/JwnmTZJSlnZmJC2G+1HzUnyeciTUetWxlu0rbBE+F1FaJIGn//jMw3Pbz6owETzUNrw2q4NlKdYN4kE8vD9QZufMLAjNwYqBa5HVJc23tWnQwuzvKSUQtWDPk381XxQj5m5jvLNq0eLG4UKbMMnsPNNnzUn/0OPJ0mCiT/XArS+I6xsnTN9bqAhUHiUGKcJDlhZXgtcIHrbqHOkQF4G49XqXM6rXiH47LwssozYmLWY3el90MbBPB8dWjHct38nmdmvq16r0/RcH+j8C4mKkat6lCy6b/6wdjrWXqmkmuWT/kFOn7srturob/+/a531RQFatwGi+Q4iybW6GxX0XSa7FBpk6xbAlRFmdTmLCPgBcCGx1UgEq/0a/VgpZ+fXDTWt2jG9MnkEXcWWfHdb07jsyAfMm3CGG2eH94D+DP6aZ2kXmvzUfSQxlJbVta6ChKlMNkeupTFmRNmbqF4iAaTon8vgIcV3m/6MMG/MfVz1D6477viF+9+nVzJvT0g0yNgHfy/hTbW2L5ZDeIo1wqhFfCPpIzSn76SA2sGbVefnL62UFXBc5JbyYyfHgAxKxzRK/mBlKtcyQEalhxUHd5vkITIu5mQZbwAyCWUPYvedMnBx4TMgW/qtPmGp8uOyr9EfarV0ddWGc9hf7LfhTEt401RH3QvSiS6hN28T0lGbKV9krFu1/8ASi0GQBObGYwKZ/Nw/JvNXz8qGBFhjFKMebn6EbPE5DSe0dWKNEifMQJArKzhSBtvluQZrNGctnWAaiN9yJXTJ4TULz9eWgwEXGs36IXdUwCxZCrpiysBR2Nz2B9J9uJBXXKYg0DW7oOIjRUDQzNcC0W61F8sFZ065WOxaVOrIBvhCuuNAFC7L5B6jGarDI0A5byFruGmqawibK8PCRBYu3mvCiNMHTYmTGiQMsDP/6IcyQY01+5qnmns5yOOCyNOUGdG8eEKa/kSpSarfODWqDPPoRva3jxwfrgVz2c+OKwzcX+lDKZUVX3QnczAALFfQbqNPvTu4RWuq0PMRHOQSingEIiKgWgDxSnE+VKXRnkH6/hmTIEHLX7e/UcWyiIxnjTJmEPc4GbzK5x15xWTxEbFiATPltoiZvLktpXiiTqGEkTbsVvtNAwgcBOHD0gofTPoxgbPathAGJfhXiV1RAAXSHwVSQn5LGurnytk85fsQJz5pO7KKqIFb1VnC/Iaqo7uqSiajlHb3Hn4u7M1KbtwUwR5UjQ5AEW7ejg7pnVU3q5z8mOArNayldHhSZdhdh670jtywy+KE+5NFH8ghQahTA== 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)(376014)(36860700013)(82310400026); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: W+ZqVU9S3yJEr5zCRljE+XxYH9VRvu+Uyj2wnGV0WVhwnrfnYp4xkVJgLrQG5TRDqAJ629vhg3IIR82idfBW2LWM7mSRJQP2/4yfkiBT4/f5VUwvV7pArjKuKvcg1YRvdN7dABHM5MueZ4zFvTQ40ZIKs6tVTJG+yw2SuZRtVNF/QdkCu8Y9EX+zqqVT2UTPSsi4bsPXXf7lDd6ID6b9BDbQFPMD7qY9RVYbTT5jtzbsvgNnI2iglwlZn1BNAWQHAqB0lW7dXYHuw+HCmle4ZeaboAPU2H2NQ6n0ayOu11NP4WnhFLKT0v7OTIIzf37wWt7ouo0OJMDL6tbs4QB5KCZtt8JLRnjrchwiz0VgI/XBJcrF5NrVKIPWjegKe0ik9X8xcW7kb7myHq+QGC/KhZbjzpYlfXok3ROMjZ0nJlOPleJ5CJ+bOe/kycXJNDFllfg2PJEN8mAKPBtW1LSQBA7BBxrfMVkV3wljovT1Lt4QTjNJ0F+4WbPc5/uc9qKW5IIyQGp0ziDACMB7E1b10Hbr8Vq0920+aGalCuHBzg9wQEQAotgpZpz0+/i47b3iGSNBegOFVZ1ddBMdaKsDtukaVTZCwElqG1tpczqUJ/ChM+Y9+PTTy8V8W7G9u0Or7N+q5gCXh1Q8n6SXM83szsts4wsW3MtI2IuSIkahrdM= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2024 21:40:42.7864 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4c61f2b4-eced-4650-b394-08dcf92b8173 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: DBAP190MB0838 X-OriginatorOrg: napatech.com X-BESS-ID: 1730330006-304433-12637-48417-1 X-BESS-VER: 2019.1_20241018.1852 X-BESS-Apparent-Source-IP: 104.47.18.109 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.260092 [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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
Provide flow filter and statistics support
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Serhii Iliushyk
Oct. 30, 2024, 9:38 p.m. UTC
Update incorrect alignment
Signed-off-by: Serhii Iliushyk <sil-plv@napatech.com>
---
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 <rte_common.h> #include <unistd.h> #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 */