From: Ben Pfaff Date: Thu, 5 Mar 2009 01:30:59 +0000 (-0800) Subject: vswitchd: Log details of unexpected flows, to aid debugging. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3d1ef4e0a94466d72f55808e6ef314596ddffc4;p=openvswitch vswitchd: Log details of unexpected flows, to aid debugging. --- diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index cf4dc45a..22683286 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -2290,7 +2290,12 @@ flowstats_process(struct bridge *br) static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5); f = ft_lookup(new_ft, &flow, hash); if (!f) { - VLOG_WARN_RL(&rl, "unexpected flow in flow table"); + if (!VLOG_DROP_WARN(&rl)) { + char *flow_string = flow_to_string(&flow); + VLOG_WARN("unexpected flow in flow table: %s", + flow_string); + free(flow_string); + } f = ftf_create(&flow, &invalid_dst, 1, flowstats_tag); hmap_insert_fast(&new_ft->flows, &f->node, f->node.hash); f->tags |= flowstats_tag;