1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2 /* 3 * Copyright (c) 2014 Jiri Pirko <jiri@resnulli.us> 4 */ 5 6 #ifndef __LINUX_TC_VLAN_H 7 #define __LINUX_TC_VLAN_H 8 9 #include <linux/pkt_cls.h> 10 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 16 17 struct tc_vlan { 18 tc_gen; 19 int v_action; 20 }; 21 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, 33 }; 34 #define TCA_VLAN_MAX (__TCA_VLAN_MAX - 1) 35 36 #endif 37