Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
0002 /*
0003  * Copyright (c) 2014 Jiri Pirko <jiri@resnulli.us>
0004  *
0005  * This program is free software; you can redistribute it and/or modify
0006  * it under the terms of the GNU General Public License as published by
0007  * the Free Software Foundation; either version 2 of the License, or
0008  * (at your option) any later version.
0009  */
0010 
0011 #ifndef __LINUX_TC_VLAN_H
0012 #define __LINUX_TC_VLAN_H
0013 
0014 #include <linux/pkt_cls.h>
0015 
0016 #define TCA_VLAN_ACT_POP    1
0017 #define TCA_VLAN_ACT_PUSH   2
0018 #define TCA_VLAN_ACT_MODIFY 3
0019 #define TCA_VLAN_ACT_POP_ETH    4
0020 #define TCA_VLAN_ACT_PUSH_ETH   5
0021 
0022 struct tc_vlan {
0023     tc_gen;
0024     int v_action;
0025 };
0026 
0027 enum {
0028     TCA_VLAN_UNSPEC,
0029     TCA_VLAN_TM,
0030     TCA_VLAN_PARMS,
0031     TCA_VLAN_PUSH_VLAN_ID,
0032     TCA_VLAN_PUSH_VLAN_PROTOCOL,
0033     TCA_VLAN_PAD,
0034     TCA_VLAN_PUSH_VLAN_PRIORITY,
0035     TCA_VLAN_PUSH_ETH_DST,
0036     TCA_VLAN_PUSH_ETH_SRC,
0037     __TCA_VLAN_MAX,
0038 };
0039 #define TCA_VLAN_MAX (__TCA_VLAN_MAX - 1)
0040 
0041 #endif