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 8716C45B61; Thu, 17 Oct 2024 22:44:29 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 53B87402B5; Thu, 17 Oct 2024 22:44:29 +0200 (CEST) Received: from fout-a5-smtp.messagingengine.com (fout-a5-smtp.messagingengine.com [103.168.172.148]) by mails.dpdk.org (Postfix) with ESMTP id A55B74028F for ; Thu, 17 Oct 2024 22:44:27 +0200 (CEST) Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 23395138020B; Thu, 17 Oct 2024 16:44:27 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Thu, 17 Oct 2024 16:44:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1729197867; x=1729284267; bh=aD5b9nvBRL7o7J20ksaZD/1ods5INVvKYb1PcvL8wOI=; b= jZyy6RKpq6ZcBlTPY2Kmqxlr/HUWIBBXNh9b5KjQodEWfkq2WZZApmMjiXV9eBFh nZ4ceRyiPR3nOwtyluJK6w7B+1xMlchSVp8nwJDo6y1RMwsEYWKxMo2hgTSs0KZz hwSSwJfNFPOXpl6RlyVf3hp449pOEq1vsfgF24R7nNXfNER64LzPNHgrppJqIpiK PoOttaKuJh4RYIzv+wa8x8JjrHZKa+qKuB8d2Luw2++Yy/sE5ain6XOF7fJ4osUK j5Ql8OSVpDujIDmbwgRtV0IbprEQiVWL1IpJ4xbbOPyU2z0x7mjFHP7/ELw0aaxg IbCytlX1XmHRtsInRcnMQw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1729197867; x= 1729284267; bh=aD5b9nvBRL7o7J20ksaZD/1ods5INVvKYb1PcvL8wOI=; b=p 3t5Ra0CPiFzdO73mgrXaXFgXW1yAbukMoKMMF4Pxp2YBdLnlX2e+chnERCe0N6ti uiyKt0Kt8keG1H8sAfz9wzLPTA88AAtUap52WGd9DQz7X9oB/doquSRydyZ8L7iJ FMkPs0w4G452uzEF9LmEEU9QbtdlK6NbXutvZ2zSbmHknnG8M+O7Vcji4TQ8FvJu EGJeUiZdyn4jSGOxxYxjs6UqDdYHyzYjnEefr0qvqlhhMuFKboTGwhudpWqfy1MJ B3dxzc5rUyXIv+eWmAEYYVNHovThXchuCY94dNR9q+iPaxVdLlpIMKKVPYMh82O8 3goazXpHprg783SG4l3zw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdehuddgudehiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtqhertddttdej necuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjh grlhhonhdrnhgvtheqnecuggftrfgrthhtvghrnhepgedttdeljeejgeffkeekkedtjeev tdehvedtkeeivdeuuedvieduvdelveejueejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvthdp nhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepmhgsse hsmhgrrhhtshhhrghrvghshihsthgvmhhsrdgtohhmpdhrtghpthhtohepuggvvhesughp ughkrdhorhhgpdhrtghpthhtohepsghruhgtvgdrrhhitghhrghrughsohhnsehinhhtvg hlrdgtohhm X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 17 Oct 2024 16:44:26 -0400 (EDT) From: Thomas Monjalon To: Morten =?UTF-8?B?QnLDuHJ1cA==?= Cc: dev@dpdk.org, Bruce Richardson Subject: Re: [PATCH] net: improve vlan header type alignment Date: Thu, 17 Oct 2024 22:44:23 +0200 Message-ID: <7686686.jRhZ6ZUK3Y@thomas> In-Reply-To: <20241013083554.97489-1-mb@smartsharesystems.com> References: <20241013083554.97489-1-mb@smartsharesystems.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 13/10/2024 10:35, Morten Br=C3=B8rup: > +static_assert(sizeof(struct rte_ether_addr) =3D=3D 6, > + "sizeof(struct rte_ether_addr) =3D=3D 6"); > +static_assert(alignof(struct rte_ether_addr) =3D=3D 2, > + "alignof(struct rte_ether_addr) =3D=3D 2"); Instead of repeating the condition twice, it would be simpler to use RTE_BUILD_BUG_ON