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 D448F4328B; Sun, 12 Nov 2023 01:01:20 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3481B402AC; Sun, 12 Nov 2023 01:01:20 +0100 (CET) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mails.dpdk.org (Postfix) with ESMTP id 9DA354029E for ; Sun, 12 Nov 2023 01:01:19 +0100 (CET) Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1cc1e1e74beso29277195ad.1 for ; Sat, 11 Nov 2023 16:01:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1699747278; x=1700352078; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=qEDQihDq8YSfQiKtPbXqgWId8h8s3fHZYANewgjWx+g=; b=Ify7gqU03a4qbbn5KOjslPIPYE3k3AFjkssAT5IZI6hh7BNVdHz0vmq2TWPJIqwNb3 TXA2BrJHwZZrP1d9ARnNxcG699BI2iRc2QCAh5Sq8fObX3xckx1M6BudzbXlnPa+IWj/ 1R+dwTGG99F5QOzUxIzckipsLfwfwvf3C+PHAbZ0uzOowvpBu9HYsByIDEdtjEbPMo5d jh0Ld3bhejlxOVxIlYgOp1YuuqYVtn7hWSspvKNDQRHX3udlkI95fdZCFXBh1d8Flp3I 2cTV1nD9Agvop9l3CfBQURD3jW99DEQQNJM1pI9n3gMQpkj2MWg63ASIOx92aerVk15B ulyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699747278; x=1700352078; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qEDQihDq8YSfQiKtPbXqgWId8h8s3fHZYANewgjWx+g=; b=jNE7u2H430u6sTVmiNwqnH5FLAT7d6K2XyRXpPkvdDjGKXW1Tw3Cr3QLe/41cM9Cce ICt/LYfmRQUXSL0oaRqy5z6A1ui9MCFKDnuQxdhuxAB+iy+u7tWDdguAamn2e+1RJKmH lotJJShwkbsAQIMF0mtphlvM6edQUp0VrR6oYTrU91PUWVY7leAA4MksY1lJRlRxsA3s tjucZIig7+v9HpFRtvtUJJ2ldd/JP7h8iL/N/GgwKBZZoIp8VIFtEvhD7bk7NSRNG10t 4vAqAXPqn8HGcGzsZcUdlEf8yNTnjd2f84XSeNJTylQahQoM/6Xl+vjt2aVqf+cacJt2 K7tg== X-Gm-Message-State: AOJu0YxSO5jDJWROUwlfwhstTR6JdvfOp4p50hWX01hrsOGfsHCdzRAF tVZBVsFIj8W+zINKvr4AlxC52Q== X-Google-Smtp-Source: AGHT+IG3rBwxJDAALtA7bIUvFUulN1/Ujl4a2wUrHC/fVvSivbZ+uFIwsRhKHXsfdqOBXoiZDNtDrw== X-Received: by 2002:a17:902:ce8f:b0:1cc:5425:bb4 with SMTP id f15-20020a170902ce8f00b001cc54250bb4mr4052417plg.52.1699747278556; Sat, 11 Nov 2023 16:01:18 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id u3-20020a17090341c300b001c735421215sm1754127ple.216.2023.11.11.16.01.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Nov 2023 16:01:18 -0800 (PST) Date: Sat, 11 Nov 2023 16:01:04 -0800 From: Stephen Hemminger To: Bruce Richardson Cc: dev@dpdk.org, Morten =?UTF-8?B?QnLDuHJ1cA==?= , Jerin Jacob Subject: Re: [PATCH v4] eventdev: ensure 16-byte alignment for events Message-ID: <20231111160104.49360157@hermes.local> In-Reply-To: <20231006102932.164630-1-bruce.richardson@intel.com> References: <20231005115101.12276-1-bruce.richardson@intel.com> <20231006102932.164630-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Fri, 6 Oct 2023 11:29:32 +0100 Bruce Richardson wrote: > diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c > index 95373bbaad..adc9751cef 100644 > --- a/lib/eventdev/rte_eventdev.c > +++ b/lib/eventdev/rte_eventdev.c > @@ -9,6 +9,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -28,6 +29,8 @@ > #include "eventdev_pmd.h" > #include "eventdev_trace.h" > > +static_assert(sizeof(struct rte_event) == 16, "Event structure size is not 16-bytes in size"); > + > static struct rte_eventdev rte_event_devices[RTE_EVENT_MAX_DEVS]; Please don't reinvent RTE_BUILD_BUG_ON(). Instead fix that to be a static_assert()