mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user