blob: c24cc92ea18f0ff11160427fe15fe09a5011c5a6 [file] [log] [blame]
Pier Ventre18212632016-10-24 11:49:41 -07001#version 4
2
3// Here we define the experimental actions supported by OFDPA pipeline
4
5// Push l2 header action. This action push an other ethernet
6// header on top of the previous one.
7struct of_action_ofdpa_push_l2_header : of_action_ofdpa {
8 uint16_t type == 65535;
9 uint16_t len;
10 uint32_t experimenter == 0x1018;
11 uint16_t exp_type == 1;
12 pad(6);
13};
14
15// Pop l2 header action. This action pop the outer ethernet
16// header.
17struct of_action_ofdpa_pop_l2_header : of_action_ofdpa {
18 uint16_t type == 65535;
19 uint16_t len;
20 uint32_t experimenter == 0x1018;
21 uint16_t exp_type == 2;
22 pad(6);
23};
24
25// Push MPLS-TP PW Control Word. The Control Word is initialized to zero.
26struct of_action_ofdpa_push_cw : of_action_ofdpa {
27 uint16_t type == 65535;
28 uint16_t len;
29 uint32_t experimenter == 0x1018;
30 uint16_t exp_type == 3;
31 pad(6);
32};
33
34// Pop MPLS-TP PW Control Word or Associated Channel Header.
35// Used in MPLS bottom of stack label match actions.
36struct of_action_ofdpa_pop_cw : of_action_ofdpa {
37 uint16_t type == 65535;
38 uint16_t len;
39 uint32_t experimenter == 0x1018;
40 uint16_t exp_type == 4;
41 pad(6);
42};