projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e9ce03
)
bridge: Don't update CFM on synthetic interfaces.
author
Ethan Jackson
<ethan@nicira.com>
Tue, 13 Sep 2011 05:39:01 +0000
(22:39 -0700)
committer
Ethan Jackson
<ethan@nicira.com>
Tue, 13 Sep 2011 05:39:01 +0000
(22:39 -0700)
Synthetic interfaces don't have database records so it doesn't make
sense to update them. In some situations this could cause a
segmentation fault.
Reported-by: Paul Ingram <paul@nicira.com>
Bug #7278.
vswitchd/bridge.c
patch
|
blob
|
history
diff --git
a/vswitchd/bridge.c
b/vswitchd/bridge.c
index f1c306d48dcc365f04b6d0a57535b1e30899cac7..d93d5c5b53a7eea41955c8174a2c0fa0de7b7540 100644
(file)
--- a/
vswitchd/bridge.c
+++ b/
vswitchd/bridge.c
@@
-1267,6
+1267,10
@@
iface_refresh_cfm_stats(struct iface *iface)
const uint64_t *rmps;
size_t n_rmps;
+ if (iface_is_synthetic(iface)) {
+ return;
+ }
+
fault = ofproto_port_get_cfm_fault(iface->port->bridge->ofproto,
iface->ofp_port);
if (fault >= 0) {