git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89da5e0
)
mbuf: fix struct initialization with C++
author
Ed Czeck
<ed.czeck@atomicrules.com>
Thu, 24 Jan 2019 14:36:37 +0000
(09:36 -0500)
committer
Thomas Monjalon
<thomas@monjalon.net>
Sun, 27 Jan 2019 23:57:57 +0000
(
00:57
+0100)
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>
lib/librte_mbuf/rte_mbuf.h
patch
|
blob
|
history
diff --git
a/lib/librte_mbuf/rte_mbuf.h
b/lib/librte_mbuf/rte_mbuf.h
index
d716294
..
a7f6702
100644
(file)
--- 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,
};
}