From: Ben Pfaff Date: Tue, 7 Aug 2012 18:32:32 +0000 (-0700) Subject: learning-switch: Normalize the flows that are sent to the switch. X-Git-Tag: sliver-openvswitch-1.8.90-0~48^2~93 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=125ee67317fcaa2fd11ab1671c268015105d191d learning-switch: Normalize the flows that are sent to the switch. This suppresses a long-standing warning from ovs-vswitchd about non-normalized flows. Signed-off-by: Ben Pfaff --- diff --git a/lib/learning-switch.c b/lib/learning-switch.c index e4287c4e3..c1cd909f5 100644 --- a/lib/learning-switch.c +++ b/lib/learning-switch.c @@ -576,6 +576,7 @@ process_packet_in(struct lswitch *sw, const struct ofp_header *oh) * new flow. */ memset(&fm, 0, sizeof fm); cls_rule_init(&flow, &sw->wc, 0, &fm.cr); + ofputil_normalize_rule_quiet(&fm.cr); fm.table_id = 0xff; fm.command = OFPFC_ADD; fm.idle_timeout = sw->max_idle;