mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
openflow-1.0: Rename ofp_match to ofp10_match, OFPFW_* to OFPFW10_*.
This better fits our general policy of adding a version number suffix to structures and constants whose values differ from one OpenFlow version to the next. Reviewed-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -111,15 +111,15 @@ lswitch_create(struct rconn *rconn, const struct lswitch_config *cfg)
|
||||
/* Try to wildcard as many fields as possible, but we cannot
|
||||
* wildcard all fields. We need in_port to detect moves. We need
|
||||
* Ethernet source and dest and VLAN VID to do L2 learning. */
|
||||
ofpfw = (OFPFW_DL_TYPE | OFPFW_DL_VLAN_PCP
|
||||
| OFPFW_NW_SRC_ALL | OFPFW_NW_DST_ALL
|
||||
| OFPFW_NW_TOS | OFPFW_NW_PROTO
|
||||
| OFPFW_TP_SRC | OFPFW_TP_DST);
|
||||
ofpfw = (OFPFW10_DL_TYPE | OFPFW10_DL_VLAN_PCP
|
||||
| OFPFW10_NW_SRC_ALL | OFPFW10_NW_DST_ALL
|
||||
| OFPFW10_NW_TOS | OFPFW10_NW_PROTO
|
||||
| OFPFW10_TP_SRC | OFPFW10_TP_DST);
|
||||
} else {
|
||||
ofpfw = cfg->wildcards;
|
||||
}
|
||||
|
||||
ofputil_wildcard_from_openflow(ofpfw, &sw->wc);
|
||||
ofputil_wildcard_from_ofpfw10(ofpfw, &sw->wc);
|
||||
}
|
||||
|
||||
sw->default_queue = cfg->default_queue;
|
||||
|
Reference in New Issue
Block a user