summaryrefslogtreecommitdiff
path: root/lib/ofp-parse.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-05-11 12:13:10 -0700
committerBen Pfaff <blp@nicira.com>2011-05-11 12:35:09 -0700
commitabe529af477b8311a1fd68c130374bd7442003c3 (patch)
tree49101f12f5b35574965df39b1cc5a72f5b28f02d /lib/ofp-parse.c
parentf79e673f3d3f429cd213043b054c904d23c7151a (diff)
downloadopenvswitch-abe529af477b8311a1fd68c130374bd7442003c3.tar.gz
ofproto: Break apart into generic and hardware-specific parts.
In addition to the changes to ofproto, this commit changes all of the instances of "struct flow" in the tree so that the "in_port" member is an OpenFlow port number. Previously, this member was an OpenFlow port number in some cases and an ODP port number in other cases.
Diffstat (limited to 'lib/ofp-parse.c')
-rw-r--r--lib/ofp-parse.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c
index 7e9a96531..4fadcf3d6 100644
--- a/lib/ofp-parse.c
+++ b/lib/ofp-parse.c
@@ -608,9 +608,6 @@ parse_field_value(struct cls_rule *rule, enum field_index index,
if (!parse_port_name(value, &port_no)) {
port_no = atoi(value);
}
- if (port_no == OFPP_LOCAL) {
- port_no = ODPP_LOCAL;
- }
cls_rule_set_in_port(rule, port_no);
break;