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 C37C143B06; Thu, 15 Feb 2024 07:23:27 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0D4A0433E7; Thu, 15 Feb 2024 07:21:59 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id B83A84338F for ; Thu, 15 Feb 2024 07:21:38 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 1733720B200B; Wed, 14 Feb 2024 22:21:36 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1733720B200B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1707978097; bh=lXq6Vz4fS5Mzzd2r3Ubsfg8HDqkkAUU5hLN8K1UQXr8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IIB2Rp3uRiqc57W0EdASi76kO8sjRXmyct/VpQEg2vXIf0Ta2L3QzgG4PY4AtinHV +iHLzr//YJ2C76xQC1NAY03hkSe2PsYIyqjET4qP3MlEJaIAt4GnK2jyqpv6Qo8HZM 1LC7qXnOBFfzvHY0xD+H6NHE4sI05rdlt4P7XYjo= From: Tyler Retzlaff To: dev@dpdk.org Cc: Ajit Khaparde , Andrew Boyer , Andrew Rybchenko , Bruce Richardson , Chenbo Xia , Chengwen Feng , Dariusz Sosnowski , David Christensen , Hyong Youb Kim , Jerin Jacob , Jie Hai , Jingjing Wu , John Daley , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Maciej Czekaj , Matan Azrad , Maxime Coquelin , Nithin Dabilpuram , Ori Kam , Ruifeng Wang , Satha Rao , Somnath Kotur , Suanming Mou , Sunil Kumar Kori , Viacheslav Ovsiienko , Yisen Zhuang , Yuying Zhang , mb@smartsharesystems.com, Tyler Retzlaff Subject: [PATCH v4 18/18] examples/dma: stop using zero sized marker fields Date: Wed, 14 Feb 2024 22:21:20 -0800 Message-Id: <1707978080-28859-19-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1707978080-28859-1-git-send-email-roretzla@linux.microsoft.com> References: <1706657173-26166-1-git-send-email-roretzla@linux.microsoft.com> <1707978080-28859-1-git-send-email-roretzla@linux.microsoft.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 Update to reference newly named anonymous union markers supported by standard C and stop referencing zero sized compiler extension markers. Signed-off-by: Tyler Retzlaff --- examples/dma/dmafwd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/dma/dmafwd.c b/examples/dma/dmafwd.c index f4a0bff..60313da 100644 --- a/examples/dma/dmafwd.c +++ b/examples/dma/dmafwd.c @@ -294,9 +294,9 @@ struct dma_bufs { pktmbuf_metadata_copy(const struct rte_mbuf *src, struct rte_mbuf *dst) { dst->data_off = src->data_off; - memcpy(&dst->rx_descriptor_fields1, &src->rx_descriptor_fields1, + memcpy(&dst->mbuf_rx_descriptor_fields1, &src->mbuf_rx_descriptor_fields1, offsetof(struct rte_mbuf, buf_len) - - offsetof(struct rte_mbuf, rx_descriptor_fields1)); + offsetof(struct rte_mbuf, mbuf_rx_descriptor_fields1)); } /* Copy packet data */ -- 1.8.3.1