Reported-by: Anton Matsiuk <[email protected]> Signed-off-by: Ben Pfaff <[email protected]> --- AUTHORS | 1 + ofproto/connmgr.c | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/AUTHORS b/AUTHORS index 1c2d9ea..cb72ac8 100644 --- a/AUTHORS +++ b/AUTHORS @@ -132,6 +132,7 @@ Amey Bhide [email protected] Amre Shakimov [email protected] André Ruß [email protected] Andreas Beckmann [email protected] +Anton Matsiuk [email protected] Atzm Watanabe [email protected] Bastian Blank [email protected] Ben Basler [email protected] diff --git a/ofproto/connmgr.c b/ofproto/connmgr.c index da25930..6b76e8a 100644 --- a/ofproto/connmgr.c +++ b/ofproto/connmgr.c @@ -1549,8 +1549,13 @@ do_send_packet_ins(struct ofconn *ofconn, struct list *txq) LIST_FOR_EACH_SAFE (pin, next_pin, list_node, txq) { list_remove(&pin->list_node); - rconn_send_with_limit(ofconn->rconn, pin, - ofconn->packet_in_counter, 100); + if (rconn_send_with_limit(ofconn->rconn, pin, + ofconn->packet_in_counter, 100) == EAGAIN) { + static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(5, 5); + + VLOG_INFO_RL(&rl, "%s: dropping packet-in due to queue overflow", + rconn_get_name(ofconn->rconn)); + } } } -- 1.7.10.4 _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
