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 29664426C2; Thu, 5 Oct 2023 15:03:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E70804028A; Thu, 5 Oct 2023 15:03:07 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 8563C4014F for ; Thu, 5 Oct 2023 15:03:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696510986; x=1728046986; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=CYFHRdVduJt37UvkTmpe4TK8EY7TOUpphTL7UhT86gg=; b=YnC1jZg1Wyw/5BTie5AOs1J9UUeuRUBSKXrlmPQ69puOkxTq2lck+ZKo xEICvpbTXifwRU7wLN26Wm2F2lSpiUa/NVJvOLSe78EpaPvNgWElds0hj dVMhlaARLSQi06CAyKs7fWwZzoJY+j1wYh1K696S/Fa0DbRDM/O1Wcj1a ddkc46GvF2hHcdr8DgLbfhrvhvmEjFCs+/+fNPyEdoDEuiWYhPlH4Cmdd 6aD3O8YAj+Y2jaV9wAedbz4F/OTPnrdtIdqJgH6LhvzruyNqaXlOxqfKZ CJdD3fO+egVfRT7Hr63LcicG7GeJRKx+acL828uMpKPAfhbay4Wgg2tpo Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="469756309" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="469756309" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 06:03:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="755436020" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="755436020" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga007.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 05 Oct 2023 06:03:03 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Thu, 5 Oct 2023 06:03:03 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Thu, 5 Oct 2023 06:03:02 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Thu, 5 Oct 2023 06:03:02 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.170) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Thu, 5 Oct 2023 06:03:02 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fIaVBtR8Lp3gbw0AghP0AxYS49Xjba9VhrxOFP51pbzF1S5xreG4TvBaCQ49GLtxE27z9BCgbelbWztuc+tWDOATzO4DhE40FQHm2x/+GGmo1YQDxA2qNTbtv3RQTNYXIWhXMEkSYtQ4oGQJaaQSqPLHUNKrPevDnn2p8kv7TJaNfuXsXUciOnatB3w2oRSkQtTXW/n7YLi3Wg0csgWmig/mir70brpuRJlFspSJxQBx9mV+xrxkWmqipWRfzU0l2ux/fEWShVyLYsqh01zhb60oq/SIpGfVSNycsUTRLF2MXqGWIAehLc/1NNdKN+WeyKtfbFVkXwSBBVpT7ARYkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=H33SB1eN3UE6YdwERKBquLXb20AxmJWvsPyL1h+Zcfc=; b=lj6SgQbBy5hUcv4Pk/gOBIw9zd62WS2PPamPLNUdFo4k06ArybJLTHXjUWT5lOK4hsFiOb6VCFXq/40n6X4OIjoxyAN+9ZKLHrsV0KGqWDN2TApnBeuEuee+uVKvVTS/LMKJZXHX/5vTwwBhnLVnGpQTk6fTdTVsYITlhyArLCviKtIuUhI5TKAeenzhmMJHVXN5GmZk3mBLvWJDUWlyuLj0nG6CavvSoMIH9t+/LiNCpB1yIYaCE5v+I41txUAtPPRcECY3l9eA4InBePV+pwjf/L+imuHhQZmzga/lNQhfe1+vhLLSr2SI+VSzQcVNFwIVn6D50P8Aj8tTts25tg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by SJ2PR11MB8401.namprd11.prod.outlook.com (2603:10b6:a03:539::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Thu, 5 Oct 2023 13:03:00 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::aa85:ead1:baa8:c652]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::aa85:ead1:baa8:c652%2]) with mapi id 15.20.6838.024; Thu, 5 Oct 2023 13:02:59 +0000 Date: Thu, 5 Oct 2023 14:02:54 +0100 From: Bruce Richardson To: Morten =?iso-8859-1?Q?Br=F8rup?= CC: , Jerin Jacob Subject: Re: [RFC PATCH] eventdev: ensure 16-byte alignment for events Message-ID: References: <20231005115101.12276-1-bruce.richardson@intel.com> <98CBD80474FA8B44BF855DF32C47DC35E9EF01@smartserver.smartshare.dk> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35E9EF01@smartserver.smartshare.dk> X-ClientProxiedBy: DUZPR01CA0317.eurprd01.prod.exchangelabs.com (2603:10a6:10:4ba::27) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|SJ2PR11MB8401:EE_ X-MS-Office365-Filtering-Correlation-Id: 082d1843-50a2-4903-e496-08dbc5a366b4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: emPey3K/7laE1gop8O7GWASClyBa4SRHjAZczSQyKK2NKrRpjMAaXpbTVi8RCveCtDMkcZ+wQFDK+shdbPESMZdU3PRqUCfUk2pO7iijiAvjPd1F9Hlv5ao8Y0bzoc/r8jHEBEJtG9gK6uZ14ljxeKw47H2RN5aigNOde/gpm4c8Sm0IoTs6uY+MNtEIK+0AXTbYoWdiKIZL4odjNvjP2AfCJfjBr+IQmJ6V76jjja9VkEGHZGKA4yyUEo7DEd3R6qzUzVmE+STIRs4f6V8OjNemKJpN9CKhcTN1RqF5xWEvzno0D/RpvPuPP2bVAS7vo1Gzs9MbvBw2kCnngrbHBRIkNbQZh6lBf7puQLDlW5Zt9Ef7Py7atzcwrA+o3Vvo5XhwbheIsLl5E46pz+/In76ki4lv4JsOjNvtJ/Hgj0yu7Zca9psabt8jcGlbQ0LzjcVKxI6vYU4/8/YMfm3ghYMGBFknk2gcc39EriEJo3V29xve/of5d3VuWe+63Of1dShJcEj59CfHfLYG2j/YHoujvDE9wE5Ax/dfy71bEn2vfcLwW99nVeljNGO7mrJe X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(346002)(366004)(39860400002)(396003)(376002)(136003)(230922051799003)(64100799003)(451199024)(1800799009)(186009)(6506007)(6512007)(86362001)(38100700002)(82960400001)(26005)(66574015)(4744005)(2906002)(6486002)(6666004)(478600001)(83380400001)(8676002)(4326008)(41300700001)(316002)(8936002)(5660300002)(44832011)(66946007)(66556008)(66476007)(6916009); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?Q?oNAbnvF89P9Ov+vWNEUuvdd7vdVMeKgJr/1wR+s7XvXlp/GwWtntJcHzkx?= =?iso-8859-1?Q?C5bKtvfJdFSksIT2y/OeFqxjLMDqDaC0CJlT/QOT2CllYOd0auZqEzjKYv?= =?iso-8859-1?Q?i5nTTbV8oCpqgLgHnzGw4VEHAhoumaGoLuoNAhJruhcaQnghyxn76LVnmv?= =?iso-8859-1?Q?FBlBJvNctOsWYj8FfB0vWcBNzgGd/hCKWp4lg0YwbgbwLkc5MFbW485GSI?= =?iso-8859-1?Q?puJozr2tIzMLY51wPqhithnGFrBSbtkEX5emzdSLqecgPB3w5JQwmsDybR?= =?iso-8859-1?Q?NxcKMLbGdRKQQ5PE7pUyDx3bcYSPx9IKq03AleSFrBUjpDEUJj8bzKckEa?= =?iso-8859-1?Q?6Yr18M08dQ93uFgafoYH2PF7LaxtLaybwEy6I3XmDLChBtwRkZK3nKCNxP?= =?iso-8859-1?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hqJ0UJWATLfSPLbQFp/pt5aUpFThbBnbZ?= =?iso-8859-1?Q?RhRKIPNkSC4uBHDe3JKe8iAU5Jj41CWE1yNbZLOj7yM0tR28N/rFVz89Te?= =?iso-8859-1?Q?/qKUSV4WJ7EGCKCQdSlsqWx8Vi0pM1443tD8PW5BxJ41HijzRMl+aYZ1zP?= =?iso-8859-1?Q?iPK4eeP+/jwsjzSAt98us+GrrZ8jdk/OWLwgOKwFzI2H50JZd7K1hf8uY1?= =?iso-8859-1?Q?o3gHb7MgtADSjEKNX044sewbAMs5SFVrJA2nXVNnrnw/NbXl1glUAZmb+L?= =?iso-8859-1?Q?mXOtGUZrkgEJn/WQx3+5bWHrTxp6Q4eGZDxqjVR+UuisyVRn2r9T4cXNll?= =?iso-8859-1?Q?66TvcMPZrP+BZI54shIiWF67ILqHfYI5UHMobHalzn9t/k65pV+YjViA?= =?iso-8859-1?Q?=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 082d1843-50a2-4903-e496-08dbc5a366b4 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2023 13:02:59.7863 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sNbckExOhYzlQBb2X8d6mpMlWi5I9mpkvABh+dSAwvFE11b4Y3iPGJuPgexyu9ZeJNWYwcJ2PcDnIsJ8qMioMnl+3LbuQvxgi0Hjql1GGvk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR11MB8401 X-OriginatorOrg: intel.com 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 On Thu, Oct 05, 2023 at 02:12:10PM +0200, Morten Brørup wrote: > > From: Bruce Richardson [mailto:bruce.richardson@intel.com] > > Sent: Thursday, 5 October 2023 13.51 > ure 16-byte alignment for events > > > > The event structure in DPDK is 16-bytes in size, and events are > > regularly passed as parameters directly rather than being passed as > > pointers. To help compiler optimize correctly, we can explicitly request > > 16-byte alignment for events, which means that we should be able > > to do aligned vector loads/stores (e.g. with SSE or Neon) when working > > with those events. > > > > Signed-off-by: Bruce Richardson > > --- > > AFAICS it is not specified anywhere that the size of this struct must be 16 byte. > > Consider adding this requirement to the struct documentation, and possibly a static_assert to verify. > Yes, good point to document and verify.