2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-25 15:07:05 +00:00

openflow: Split OFPAT_* into OFPAT10_* and OFPAT11_*.

An upcoming commit will start referring to OpenFlow 1.1 actions, which are
renumbered relative to OpenFlow 1.0 actions, so this commit prepares by
changing all the existing uses of OFPAT_* to instead use OFPAT10_*.

This commit also introduces the OFPAT11_* constants.

Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Ben Pfaff
2012-02-15 16:22:18 -08:00
parent 6c0386119d
commit 08f94c0e1a
14 changed files with 187 additions and 155 deletions

View File

@@ -471,7 +471,7 @@ process_packet_in(struct lswitch *sw, struct rconn *rconn,
struct ofp_action_output oao;
memset(&oao, 0, sizeof oao);
oao.type = htons(OFPAT_OUTPUT);
oao.type = htons(OFPAT10_OUTPUT);
oao.len = htons(sizeof oao);
oao.port = htons(out_port);
@@ -481,7 +481,7 @@ process_packet_in(struct lswitch *sw, struct rconn *rconn,
struct ofp_action_enqueue oae;
memset(&oae, 0, sizeof oae);
oae.type = htons(OFPAT_ENQUEUE);
oae.type = htons(OFPAT10_ENQUEUE);
oae.len = htons(sizeof oae);
oae.port = htons(out_port);
oae.queue_id = htonl(queue_id);