mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
ofp-actions: Complete ofp13_action_type.
Signed-off-by: Alexander Wu <alexander.wu@huawei.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -5236,6 +5236,7 @@ static const char *const names[OFPUTIL_N_ACTIONS] = {
|
||||
NULL,
|
||||
#define OFPAT10_ACTION(ENUM, STRUCT, NAME) NAME,
|
||||
#define OFPAT11_ACTION(ENUM, STRUCT, EXTENSIBLE, NAME) NAME,
|
||||
#define OFPAT13_ACTION(ENUM, STRUCT, EXTENSIBLE, NAME) NAME,
|
||||
#define NXAST_ACTION(ENUM, STRUCT, EXTENSIBLE, NAME) NAME,
|
||||
#include "ofp-util.def"
|
||||
};
|
||||
@@ -5275,6 +5276,8 @@ ofputil_put_action(enum ofputil_action_code code, struct ofpbuf *buf)
|
||||
{
|
||||
switch (code) {
|
||||
case OFPUTIL_ACTION_INVALID:
|
||||
#define OFPAT13_ACTION(ENUM, STRUCT, EXTENSIBLE, NAME) case OFPUTIL_##ENUM:
|
||||
#include "ofp-util.def"
|
||||
OVS_NOT_REACHED();
|
||||
|
||||
#define OFPAT10_ACTION(ENUM, STRUCT, NAME) \
|
||||
@@ -5306,6 +5309,8 @@ ofputil_put_action(enum ofputil_action_code code, struct ofpbuf *buf)
|
||||
}
|
||||
#define OFPAT11_ACTION(ENUM, STRUCT, EXTENSIBLE, NAME) \
|
||||
OFPAT10_ACTION(ENUM, STRUCT, NAME)
|
||||
#define OFPAT13_ACTION(ENUM, STRUCT, EXTENSIBLE, NAME) \
|
||||
OFPAT10_ACTION(ENUM, STRUCT, NAME)
|
||||
#define NXAST_ACTION(ENUM, STRUCT, EXTENSIBLE, NAME) \
|
||||
void \
|
||||
ofputil_init_##ENUM(struct STRUCT *s) \
|
||||
|
Reference in New Issue
Block a user