From: Gurucharan Shetty Date: Wed, 12 Mar 2014 21:37:05 +0000 (-0700) Subject: ofproto: Don't use DELETE inside enumerator list. X-Git-Tag: sliver-openvswitch-2.2.90-1~6^2~96 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=f72e3073d70232ad6bebb9186cbf37a14793fb95 ofproto: Don't use DELETE inside enumerator list. Visual studio does not like it. It is mostly a keyword. Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff --- diff --git a/ofproto/in-band.c b/ofproto/in-band.c index 265dcb2a6..416043e2b 100644 --- a/ofproto/in-band.c +++ b/ofproto/in-band.c @@ -76,7 +76,7 @@ struct in_band_remote { /* What to do to an in_band_rule. */ enum in_band_op { ADD, /* Add the rule to ofproto's flow table. */ - DELETE /* Delete the rule from ofproto's flow table. */ + DEL /* Delete the rule from ofproto's flow table. */ }; /* A rule to add to or delete from ofproto's flow table. */ @@ -265,7 +265,7 @@ update_rules(struct in_band *ib) /* Mark all the existing rules for deletion. (Afterward we will re-add any * rules that are still valid.) */ HMAP_FOR_EACH (ib_rule, hmap_node, &ib->rules) { - ib_rule->op = DELETE; + ib_rule->op = DEL; } if (ib->n_remotes && !eth_addr_is_zero(ib->local_mac)) { @@ -385,7 +385,7 @@ in_band_run(struct in_band *ib) ofpacts.data, ofpacts.size); break; - case DELETE: + case DEL: if (ofproto_delete_flow(ib->ofproto, &rule->match, rule->priority)) { /* ofproto doesn't have the rule anymore so there's no reason