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 <roret...@linux.microsoft.com>
---
 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

Reply via email to