From: Ben Pfaff Date: Fri, 13 Mar 2009 18:14:28 +0000 (-0700) Subject: secchan: Remove unused function ofproto_set_actions(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a33b0f3f6cbca1d5f645ff0e8d09a7ed70a8afe;p=openvswitch secchan: Remove unused function ofproto_set_actions(). --- diff --git a/secchan/ofproto.c b/secchan/ofproto.c index c3079b07..532f8377 100644 --- a/secchan/ofproto.c +++ b/secchan/ofproto.c @@ -872,29 +872,6 @@ ofproto_add_flow(struct ofproto *p, } } -void -ofproto_set_actions(struct ofproto *ofproto, const flow_t *flow, - const union ofp_action *actions, size_t n_actions) -{ - struct odp_actions odp_actions; - struct rule *rule; - - rule = rule_from_cls_rule(classifier_lookup_exact(&ofproto->cls, flow)); - if (!rule) { - return; - } - - free(rule->actions); - rule->n_actions = n_actions; - rule->actions = xmemdup(actions, n_actions * sizeof *rule->actions); - - rule->tags = 0; - rule_make_actions(ofproto, rule, false, &odp_actions); - dpif_flow_set_actions(&ofproto->dpif, flow, odp_actions.actions, - odp_actions.n_actions); - odp_actions_free(&odp_actions); -} - void ofproto_delete_flow(struct ofproto *ofproto, const flow_t *flow, uint32_t wildcards, uint16_t priority) diff --git a/secchan/ofproto.h b/secchan/ofproto.h index 306da524..b7995a2f 100644 --- a/secchan/ofproto.h +++ b/secchan/ofproto.h @@ -103,8 +103,6 @@ void ofproto_add_flow(struct ofproto *, const flow_t *, uint32_t wildcards, uint16_t priority, const union ofp_action *, size_t n_actions, const struct ofpbuf *, int idle_timeout); -void ofproto_set_actions(struct ofproto *, const flow_t *, - const union ofp_action *, size_t n_actions); void ofproto_delete_flow(struct ofproto *, const flow_t *, uint32_t wildcards, uint16_t priority); void ofproto_flush_flows(struct ofproto *);