summaryrefslogtreecommitdiff
path: root/lib/librte_mbuf
diff options
context:
space:
mode:
authorEd Czeck <ed.czeck@atomicrules.com>2019-01-24 09:36:37 -0500
committerThomas Monjalon <thomas@monjalon.net>2019-01-28 00:57:57 +0100
commit14ff7fb97eb4f4935c11959f948bfbb6a2fb710a (patch)
treef9df35824ed7c3416bb6205f65eff945a7ce99c6 /lib/librte_mbuf
parent89da5e006f23dd4ef29b55f5b29a239297eb2f9c (diff)
downloaddpdk-14ff7fb97eb4f4935c11959f948bfbb6a2fb710a.zip
dpdk-14ff7fb97eb4f4935c11959f948bfbb6a2fb710a.tar.gz
dpdk-14ff7fb97eb4f4935c11959f948bfbb6a2fb710a.tar.xz
mbuf: fix struct initialization with C++
g++ reports "error: missing initializer for member" Fixes: 5d3f72100904 ("mbuf: implement generic format for sched field") Signed-off-by: Ed Czeck <ed.czeck@atomicrules.com>
Diffstat (limited to 'lib/librte_mbuf')
-rw-r--r--lib/librte_mbuf/rte_mbuf.h1
1 files changed, 1 insertions, 0 deletions
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,
};
}