mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
ofp-actions: Prepare to treat OF1.2 actions as OF1.1 actions.
The numbering of OpenFlow 1.0 actions overlaps with the numbering of OpenFlow 1.1+ actions, so the two sets of actions have to be distinguished for input and output. But OpenFlow 1.1 and 1.2 actions are numbered to avoid this problem, so there is no need to distinguish them in the same way. Therefore, this commit prepares to treat them together. Signed-off-by: Ben Pfaff <blp@nicira.com> Reviewed-by: Simon Horman <horms@verge.net.au>
This commit is contained in:
@@ -3667,7 +3667,6 @@ ofputil_action_code_from_name(const char *name)
|
||||
NULL,
|
||||
#define OFPAT10_ACTION(ENUM, STRUCT, NAME) NAME,
|
||||
#define OFPAT11_ACTION(ENUM, STRUCT, NAME) NAME,
|
||||
#define OFPAT12_ACTION(ENUM, STRUCT, NAME) NAME,
|
||||
#define NXAST_ACTION(ENUM, STRUCT, EXTENSIBLE, NAME) NAME,
|
||||
#include "ofp-util.def"
|
||||
};
|
||||
@@ -3697,7 +3696,6 @@ ofputil_put_action(enum ofputil_action_code code, struct ofpbuf *buf)
|
||||
#define OFPAT10_ACTION(ENUM, STRUCT, NAME) \
|
||||
case OFPUTIL_##ENUM: return ofputil_put_##ENUM(buf);
|
||||
#define OFPAT11_ACTION OFPAT10_ACTION
|
||||
#define OFPAT12_ACTION OFPAT10_ACTION
|
||||
#define NXAST_ACTION(ENUM, STRUCT, EXTENSIBLE, NAME) \
|
||||
case OFPUTIL_##ENUM: return ofputil_put_##ENUM(buf);
|
||||
#include "ofp-util.def"
|
||||
@@ -3722,7 +3720,6 @@ ofputil_put_action(enum ofputil_action_code code, struct ofpbuf *buf)
|
||||
return s; \
|
||||
}
|
||||
#define OFPAT11_ACTION OFPAT10_ACTION
|
||||
#define OFPAT12_ACTION OFPAT10_ACTION
|
||||
#define NXAST_ACTION(ENUM, STRUCT, EXTENSIBLE, NAME) \
|
||||
void \
|
||||
ofputil_init_##ENUM(struct STRUCT *s) \
|
||||
|
Reference in New Issue
Block a user