diff options
author | Jiri Pirko <jiri@resnulli.us> | 2014-11-19 08:05:03 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-21 14:20:18 -0500 |
commit | c7e2b9689ef81362a8091592da6cb6a7723f377a (patch) | |
tree | 71a5fdd4619a199af70f8fbaa8eca6a1fc4f141f /include/uapi/linux/tc_act | |
parent | 93515d53b133d66f01aec7b231fa3e40e3d2fd9a (diff) |
sched: introduce vlan action
This tc action allows to work with vlan tagged skbs. Two supported
sub-actions are header pop and header push.
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/tc_act')
-rw-r--r-- | include/uapi/linux/tc_act/tc_vlan.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/uapi/linux/tc_act/tc_vlan.h b/include/uapi/linux/tc_act/tc_vlan.h new file mode 100644 index 000000000000..f7b8d448b960 --- /dev/null +++ b/include/uapi/linux/tc_act/tc_vlan.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2014 Jiri Pirko <jiri@resnulli.us> | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | */ | ||
9 | |||
10 | #ifndef __LINUX_TC_VLAN_H | ||
11 | #define __LINUX_TC_VLAN_H | ||
12 | |||
13 | #include <linux/pkt_cls.h> | ||
14 | |||
15 | #define TCA_ACT_VLAN 12 | ||
16 | |||
17 | #define TCA_VLAN_ACT_POP 1 | ||
18 | #define TCA_VLAN_ACT_PUSH 2 | ||
19 | |||
20 | struct tc_vlan { | ||
21 | tc_gen; | ||
22 | int v_action; | ||
23 | }; | ||
24 | |||
25 | enum { | ||
26 | TCA_VLAN_UNSPEC, | ||
27 | TCA_VLAN_TM, | ||
28 | TCA_VLAN_PARMS, | ||
29 | TCA_VLAN_PUSH_VLAN_ID, | ||
30 | TCA_VLAN_PUSH_VLAN_PROTOCOL, | ||
31 | __TCA_VLAN_MAX, | ||
32 | }; | ||
33 | #define TCA_VLAN_MAX (__TCA_VLAN_MAX - 1) | ||
34 | |||
35 | #endif | ||