learning-switch: Don't limit message queued by --with-flows.
authorBen Pfaff <blp@nicira.com>
Wed, 1 Jun 2011 17:53:53 +0000 (10:53 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 1 Jun 2011 17:53:53 +0000 (10:53 -0700)
commitb85145b59fab7efa236cdabd6ef0bda87f373d19
treefb2c09fd09c2f00a2fea9fd916806f9622054432
parent7286b1e13dbf358ea6071d04b311474208308ad6
learning-switch: Don't limit message queued by --with-flows.

queue_tx() intentionally limits the number of outstanding OpenFlow messages
queued to the switch.  This was unintentionally being applied to the
messages queued to the switch at startup by ovs-ofctl's --with-flows
command.  This patch should fix the problem, by calling rconn_send()
directly instead of through queue_tx().

Ahmed reported that with this patch there was still a problem when 30,000
flows were specified in the file.

Reported-by: Ahmed Bilal <numan252@gmail.com>
AUTHORS
lib/learning-switch.c