[dpdk-dev] [PATCH] mbuf: Initialize all fields in struct rte_mbuf_sched

Ed Czeck ed.czeck at atomicrules.com
Thu Jan 24 15:36:37 CET 2019


g++ reports "error: missing initializer for member"
Fixes: 5d3f72100904 (mbuf: implement generic format for sched field)

Signed-off-by: Ed Czeck <ed.czeck at atomicrules.com>
---
 lib/librte_mbuf/rte_mbuf.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h
index d716294..a7f6702 100644
--- a/lib/librte_mbuf/rte_mbuf.h
+++ b/lib/librte_mbuf/rte_mbuf.h
@@ -2464,6 +2464,7 @@ rte_mbuf_sched_set(struct rte_mbuf *m, uint32_t queue_id,
 				.queue_id = queue_id,
 				.traffic_class = traffic_class,
 				.color = color,
+				.reserved = 0,
 			};
 }
 
-- 
2.7.4



More information about the dev mailing list