summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--lib/learning-switch.c9
2 files changed, 9 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS
index b7f6cf5cb..b6e73721e 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -43,6 +43,7 @@ provided helpful bug reports or suggestions.
Aaron M. Ucko ucko@debian.org
Aaron Rosen arosen@clemson.edu
+Ahmed Bilal numan252@gmail.com
Alex Yip alex@nicira.com
Alexey I. Froloff raorn@altlinux.org
Bob Ball bob.ball@citrix.com
diff --git a/lib/learning-switch.c b/lib/learning-switch.c
index fc45b0434..269f0301d 100644
--- a/lib/learning-switch.c
+++ b/lib/learning-switch.c
@@ -138,7 +138,14 @@ lswitch_create(struct rconn *rconn, const struct lswitch_config *cfg)
const struct ofpbuf *b;
LIST_FOR_EACH (b, list_node, cfg->default_flows) {
- queue_tx(sw, rconn, ofpbuf_clone(b));
+ struct ofpbuf *copy = ofpbuf_clone(b);
+ int error = rconn_send(rconn, copy, NULL);
+ if (error) {
+ VLOG_INFO_RL(&rl, "%s: failed to queue default flows (%s)",
+ rconn_get_name(rconn), strerror(error));
+ ofpbuf_delete(copy);
+ break;
+ }
}
}