X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Flearning-switch.c;h=dc19aa550d3ab53fc20aa36f30add36c9ddb646f;hb=697e62f61b0b1f970c940a09b3be66c328d55a6e;hp=235e9d442d6a179aa9cc115f0e502e1784e1cee8;hpb=1e3f34c7693bcabae8e443ac1b246680ef9b60e2;p=sliver-openvswitch.git diff --git a/lib/learning-switch.c b/lib/learning-switch.c index 235e9d442..dc19aa550 100644 --- a/lib/learning-switch.c +++ b/lib/learning-switch.c @@ -575,8 +575,9 @@ process_packet_in(struct lswitch *sw, const struct ofp_header *oh) /* The output port is known, or we always flood everything, so add a * new flow. */ memset(&fm, 0, sizeof fm); - cls_rule_init(&flow, &sw->wc, 0, &fm.cr); - ofputil_normalize_rule_quiet(&fm.cr); + match_init(&fm.match, &flow, &sw->wc); + ofputil_normalize_match_quiet(&fm.match); + fm.priority = 0; fm.table_id = 0xff; fm.command = OFPFC_ADD; fm.idle_timeout = sw->max_idle;