secchan: Remove unused function ofproto_set_actions().
authorBen Pfaff <blp@nicira.com>
Fri, 13 Mar 2009 18:14:28 +0000 (11:14 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 13 Mar 2009 20:16:33 +0000 (13:16 -0700)
secchan/ofproto.c
secchan/ofproto.h

index c3079b07c75f78573c80d2e8bbb2219024fef443..532f837727f061177871ae06f48b0e4e73a328a8 100644 (file)
@@ -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)
index 306da524d392b699378f2b61e948fc2c72763402..b7995a2f8333bedd2b66f174dc7554f520a39081 100644 (file)
@@ -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 *);