Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / uapi / linux / tc_act / tc_vlan.h
blob3e1f8e57cdd26005dd30f43d3ea1e3e7e798db8c
1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
2 /*
3 * Copyright (c) 2014 Jiri Pirko <jiri@resnulli.us>
4 */
6 #ifndef __LINUX_TC_VLAN_H
7 #define __LINUX_TC_VLAN_H
9 #include <linux/pkt_cls.h>
11 #define TCA_VLAN_ACT_POP 1
12 #define TCA_VLAN_ACT_PUSH 2
13 #define TCA_VLAN_ACT_MODIFY 3
14 #define TCA_VLAN_ACT_POP_ETH 4
15 #define TCA_VLAN_ACT_PUSH_ETH 5
17 struct tc_vlan {
18 tc_gen;
19 int v_action;
22 enum {
23 TCA_VLAN_UNSPEC,
24 TCA_VLAN_TM,
25 TCA_VLAN_PARMS,
26 TCA_VLAN_PUSH_VLAN_ID,
27 TCA_VLAN_PUSH_VLAN_PROTOCOL,
28 TCA_VLAN_PAD,
29 TCA_VLAN_PUSH_VLAN_PRIORITY,
30 TCA_VLAN_PUSH_ETH_DST,
31 TCA_VLAN_PUSH_ETH_SRC,
32 __TCA_VLAN_MAX,
34 #define TCA_VLAN_MAX (__TCA_VLAN_MAX - 1)
36 #endif