projects
/
cascardo
/
ovs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b41e3e9
)
dpif-netdev: Initialize match.tun_md in various places.
author
Daniele Di Proietto
<diproiettod@vmware.com>
Sat, 21 Nov 2015 00:15:36 +0000
(16:15 -0800)
committer
Daniele Di Proietto
<diproiettod@vmware.com>
Fri, 11 Dec 2015 01:38:23 +0000
(17:38 -0800)
This solves a crash in dp_netdev_flow_add(), when log level is debug.
lib/dpif-netdev.c
patch
|
blob
|
history
diff --git
a/lib/dpif-netdev.c
b/lib/dpif-netdev.c
index
a67ef05
..
3bf130d
100644
(file)
--- a/
lib/dpif-netdev.c
+++ b/
lib/dpif-netdev.c
@@
-1993,6
+1993,7
@@
dp_netdev_flow_add(struct dp_netdev_pmd_thread *pmd,
struct match match;
struct ds ds = DS_EMPTY_INITIALIZER;
+ match.tun_md.valid = false;
match.flow = flow->flow;
miniflow_expand(&flow->cr.mask->mf, &match.wc.masks);
@@
-3300,6
+3301,7
@@
fast_path_processing(struct dp_netdev_pmd_thread *pmd,
miss_cnt++;
+ match.tun_md.valid = false;
miniflow_expand(&keys[i].mf, &match.flow);
ofpbuf_clear(&actions);