]>
Commit | Line | Data |
---|---|---|
e23ae585 BP |
1 | /* -*- c -*- */ |
2 | ||
08f94c0e BP |
3 | #ifndef OFPAT10_ACTION |
4 | #define OFPAT10_ACTION(ENUM, STRUCT, NAME) | |
e23ae585 | 5 | #endif |
d01c980f | 6 | OFPAT10_ACTION(OFPAT10_OUTPUT, ofp10_action_output, "output") |
08f94c0e BP |
7 | OFPAT10_ACTION(OFPAT10_SET_VLAN_VID, ofp_action_vlan_vid, "mod_vlan_vid") |
8 | OFPAT10_ACTION(OFPAT10_SET_VLAN_PCP, ofp_action_vlan_pcp, "mod_vlan_pcp") | |
9 | OFPAT10_ACTION(OFPAT10_STRIP_VLAN, ofp_action_header, "strip_vlan") | |
10 | OFPAT10_ACTION(OFPAT10_SET_DL_SRC, ofp_action_dl_addr, "mod_dl_src") | |
11 | OFPAT10_ACTION(OFPAT10_SET_DL_DST, ofp_action_dl_addr, "mod_dl_dst") | |
12 | OFPAT10_ACTION(OFPAT10_SET_NW_SRC, ofp_action_nw_addr, "mod_nw_src") | |
13 | OFPAT10_ACTION(OFPAT10_SET_NW_DST, ofp_action_nw_addr, "mod_nw_dst") | |
14 | OFPAT10_ACTION(OFPAT10_SET_NW_TOS, ofp_action_nw_tos, "mod_nw_tos") | |
15 | OFPAT10_ACTION(OFPAT10_SET_TP_SRC, ofp_action_tp_port, "mod_tp_src") | |
16 | OFPAT10_ACTION(OFPAT10_SET_TP_DST, ofp_action_tp_port, "mod_tp_dst") | |
31a9e63f | 17 | OFPAT10_ACTION(OFPAT10_ENQUEUE, ofp10_action_enqueue, "enqueue") |
d01c980f BP |
18 | |
19 | #ifndef OFPAT11_ACTION | |
3ddcaf2d | 20 | #define OFPAT11_ACTION(ENUM, STRUCT, EXTENSIBLE, NAME) |
d01c980f | 21 | #endif |
3ddcaf2d | 22 | OFPAT11_ACTION(OFPAT11_OUTPUT, ofp11_action_output, 0, "output") |
ca287d20 JR |
23 | OFPAT11_ACTION(OFPAT11_SET_VLAN_VID, ofp_action_vlan_vid, 0, "set_vlan_vid") |
24 | OFPAT11_ACTION(OFPAT11_SET_VLAN_PCP, ofp_action_vlan_pcp, 0, "set_vlan_pcp") | |
3ddcaf2d BP |
25 | OFPAT11_ACTION(OFPAT11_SET_DL_SRC, ofp_action_dl_addr, 0, "mod_dl_src") |
26 | OFPAT11_ACTION(OFPAT11_SET_DL_DST, ofp_action_dl_addr, 0, "mod_dl_dst") | |
27 | OFPAT11_ACTION(OFPAT11_SET_NW_SRC, ofp_action_nw_addr, 0, "mod_nw_src") | |
28 | OFPAT11_ACTION(OFPAT11_SET_NW_DST, ofp_action_nw_addr, 0, "mod_nw_dst") | |
29 | OFPAT11_ACTION(OFPAT11_SET_NW_TOS, ofp_action_nw_tos, 0, "mod_nw_tos") | |
ff14eb7a | 30 | OFPAT11_ACTION(OFPAT11_SET_NW_ECN, ofp11_action_nw_ecn, 0, "mod_nw_ecn") |
3ddcaf2d BP |
31 | OFPAT11_ACTION(OFPAT11_SET_TP_SRC, ofp_action_tp_port, 0, "mod_tp_src") |
32 | OFPAT11_ACTION(OFPAT11_SET_TP_DST, ofp_action_tp_port, 0, "mod_tp_dst") | |
097d4939 JR |
33 | OFPAT11_ACTION(OFPAT11_SET_MPLS_LABEL, ofp11_action_mpls_label, 0, "set_mpls_label") |
34 | OFPAT11_ACTION(OFPAT11_SET_MPLS_TC, ofp11_action_mpls_tc, 0, "set_mpls_tc") | |
0f3f3c3d | 35 | OFPAT11_ACTION(OFPAT11_SET_MPLS_TTL, ofp11_action_mpls_ttl, 0, "set_mpls_ttl") |
b676167a | 36 | OFPAT11_ACTION(OFPAT11_DEC_MPLS_TTL, ofp_action_header, 0, "dec_mpls_ttl") |
3e34fbdd | 37 | OFPAT11_ACTION(OFPAT11_PUSH_VLAN, ofp11_action_push, 0, "push_vlan") |
8e61c110 | 38 | OFPAT11_ACTION(OFPAT11_POP_VLAN, ofp_action_header, 0, "pop_vlan") |
b02475c5 SH |
39 | OFPAT11_ACTION(OFPAT11_PUSH_MPLS, ofp11_action_push, 0, "push_mpls") |
40 | OFPAT11_ACTION(OFPAT11_POP_MPLS, ofp11_action_pop_mpls, 0, "pop_mpls") | |
276c4e7a | 41 | OFPAT11_ACTION(OFPAT11_SET_QUEUE, ofp11_action_set_queue, 0, "set_queue") |
0c20dbe4 | 42 | OFPAT11_ACTION(OFPAT11_SET_NW_TTL, ofp11_action_nw_ttl, 0, "mod_nw_ttl") |
7bcb1506 | 43 | OFPAT11_ACTION(OFPAT11_DEC_NW_TTL, ofp_action_header, 0, NULL) |
f5c45121 | 44 | OFPAT11_ACTION(OFPAT12_SET_FIELD, ofp12_action_set_field, 1, "set_field") |
7395c052 | 45 | OFPAT11_ACTION(OFPAT11_GROUP, ofp11_action_group, 0, "group") |
78a3fff6 | 46 | |
9c4dbc1c AW |
47 | #ifndef OFPAT13_ACTION |
48 | #define OFPAT13_ACTION(ENUM, STRUCT, EXTENSIBLE, NAME) | |
49 | #endif | |
50 | OFPAT13_ACTION(OFPAT13_OUTPUT, ofp11_action_output, 0, "output") | |
51 | OFPAT13_ACTION(OFPAT13_COPY_TTL_OUT, ofp_action_header, 0, "copy_ttl_out") | |
52 | OFPAT13_ACTION(OFPAT13_COPY_TTL_IN, ofp_action_header, 0, "copy_ttl_in") | |
53 | OFPAT13_ACTION(OFPAT13_SET_MPLS_TTL, ofp11_action_mpls_ttl, 0, "set_mpls_ttl") | |
54 | OFPAT13_ACTION(OFPAT13_DEC_MPLS_TTL, ofp_action_header, 0, "dec_mpls_ttl") | |
55 | OFPAT13_ACTION(OFPAT13_PUSH_VLAN, ofp11_action_push, 0, "push_vlan") | |
56 | OFPAT13_ACTION(OFPAT13_POP_VLAN, ofp_action_header, 0, "pop_vlan") | |
57 | OFPAT13_ACTION(OFPAT13_PUSH_MPLS, ofp11_action_push, 0, "push_mpls") | |
58 | OFPAT13_ACTION(OFPAT13_POP_MPLS, ofp11_action_pop_mpls, 0, "pop_mpls") | |
59 | OFPAT13_ACTION(OFPAT13_SET_QUEUE, ofp11_action_set_queue, 0, "set_queue") | |
60 | OFPAT13_ACTION(OFPAT13_GROUP, ofp11_action_group, 0, "group") | |
61 | OFPAT13_ACTION(OFPAT13_SET_NW_TTL, ofp11_action_nw_ttl, 0, "set_nw_ttl") | |
62 | OFPAT13_ACTION(OFPAT13_DEC_NW_TTL, ofp_action_header, 0, "dec_nw_ttl") | |
63 | OFPAT13_ACTION(OFPAT13_SET_FIELD, ofp12_action_set_field, 1, "set_field") | |
64 | OFPAT13_ACTION(OFPAT13_PUSH_PBB, ofp11_action_push, 0, "push_pbb") | |
65 | OFPAT13_ACTION(OFPAT13_POP_PBB, ofp_action_header, 0, "pop_pbb") | |
66 | ||
e23ae585 BP |
67 | #ifndef NXAST_ACTION |
68 | #define NXAST_ACTION(ENUM, STRUCT, EXTENSIBLE, NAME) | |
69 | #endif | |
c2d967a5 MM |
70 | NXAST_ACTION(NXAST_RESUBMIT, nx_action_resubmit, 0, "resubmit") |
71 | NXAST_ACTION(NXAST_SET_TUNNEL, nx_action_set_tunnel, 0, "set_tunnel") | |
72 | NXAST_ACTION(NXAST_SET_QUEUE, nx_action_set_queue, 0, "set_queue") | |
73 | NXAST_ACTION(NXAST_POP_QUEUE, nx_action_pop_queue, 0, "pop_queue") | |
74 | NXAST_ACTION(NXAST_REG_MOVE, nx_action_reg_move, 0, "move") | |
75 | NXAST_ACTION(NXAST_REG_LOAD, nx_action_reg_load, 0, "load") | |
bd85dac1 AZ |
76 | NXAST_ACTION(NXAST_STACK_PUSH, nx_action_stack, 0, "push") |
77 | NXAST_ACTION(NXAST_STACK_POP, nx_action_stack, 0, "pop") | |
c2d967a5 MM |
78 | NXAST_ACTION(NXAST_NOTE, nx_action_note, 1, "note") |
79 | NXAST_ACTION(NXAST_SET_TUNNEL64, nx_action_set_tunnel64, 0, "set_tunnel64") | |
80 | NXAST_ACTION(NXAST_MULTIPATH, nx_action_multipath, 0, "multipath") | |
c2d967a5 MM |
81 | NXAST_ACTION(NXAST_BUNDLE, nx_action_bundle, 1, "bundle") |
82 | NXAST_ACTION(NXAST_BUNDLE_LOAD, nx_action_bundle, 1, "bundle_load") | |
83 | NXAST_ACTION(NXAST_RESUBMIT_TABLE, nx_action_resubmit, 0, NULL) | |
84 | NXAST_ACTION(NXAST_OUTPUT_REG, nx_action_output_reg, 0, NULL) | |
85 | NXAST_ACTION(NXAST_LEARN, nx_action_learn, 1, "learn") | |
86 | NXAST_ACTION(NXAST_EXIT, nx_action_header, 0, "exit") | |
87 | NXAST_ACTION(NXAST_DEC_TTL, nx_action_header, 0, "dec_ttl") | |
88 | NXAST_ACTION(NXAST_FIN_TIMEOUT, nx_action_fin_timeout, 0, "fin_timeout") | |
89 | NXAST_ACTION(NXAST_CONTROLLER, nx_action_controller, 0, "controller") | |
90 | NXAST_ACTION(NXAST_DEC_TTL_CNT_IDS, nx_action_cnt_ids, 1, NULL) | |
4cceacb9 JS |
91 | NXAST_ACTION(NXAST_WRITE_METADATA, nx_action_write_metadata, 0, |
92 | "write_metadata") | |
097d4939 JR |
93 | NXAST_ACTION(NXAST_SET_MPLS_LABEL, nx_action_mpls_label, 0, "set_mpls_label") |
94 | NXAST_ACTION(NXAST_SET_MPLS_TC, nx_action_mpls_tc, 0, "set_mpls_tc") | |
0f3f3c3d | 95 | NXAST_ACTION(NXAST_SET_MPLS_TTL, nx_action_mpls_ttl, 0, "set_mpls_ttl") |
b676167a | 96 | NXAST_ACTION(NXAST_DEC_MPLS_TTL, nx_action_header, 0, "dec_mpls_ttl") |
b02475c5 SH |
97 | NXAST_ACTION(NXAST_PUSH_MPLS, nx_action_push_mpls, 0, "push_mpls") |
98 | NXAST_ACTION(NXAST_POP_MPLS, nx_action_pop_mpls, 0, "pop_mpls") | |
29089a54 | 99 | NXAST_ACTION(NXAST_SAMPLE, nx_action_sample, 0, "sample") |
d01c980f BP |
100 | |
101 | #undef OFPAT10_ACTION | |
102 | #undef OFPAT11_ACTION | |
9c4dbc1c | 103 | #undef OFPAT13_ACTION |
e23ae585 | 104 | #undef NXAST_ACTION |