Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git] / include / uapi / linux / tc_act / tc_vlan.h
blob31151ff6264f5ca966691c4ad0008c6b09cfe71a
1 /*
2 * Copyright (c) 2014 Jiri Pirko <jiri@resnulli.us>
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 */
10 #ifndef __LINUX_TC_VLAN_H
11 #define __LINUX_TC_VLAN_H
13 #include <linux/pkt_cls.h>
15 #define TCA_ACT_VLAN 12
17 #define TCA_VLAN_ACT_POP 1
18 #define TCA_VLAN_ACT_PUSH 2
20 struct tc_vlan {
21 tc_gen;
22 int v_action;
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_PAD,
32 __TCA_VLAN_MAX,
34 #define TCA_VLAN_MAX (__TCA_VLAN_MAX - 1)
36 #endif