]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/uapi/linux/tc_act/tc_vlan.h
License cleanup: add SPDX license identifier to uapi header files with a license
[mirror_ubuntu-bionic-kernel.git] / include / uapi / linux / tc_act / tc_vlan.h
CommitLineData
e2be04c7 1/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
c7e2b968
JP
2/*
3 * Copyright (c) 2014 Jiri Pirko <jiri@resnulli.us>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 */
10
11#ifndef __LINUX_TC_VLAN_H
12#define __LINUX_TC_VLAN_H
13
14#include <linux/pkt_cls.h>
15
16#define TCA_ACT_VLAN 12
17
18#define TCA_VLAN_ACT_POP 1
19#define TCA_VLAN_ACT_PUSH 2
45a497f2 20#define TCA_VLAN_ACT_MODIFY 3
c7e2b968
JP
21
22struct tc_vlan {
23 tc_gen;
24 int v_action;
25};
26
27enum {
28 TCA_VLAN_UNSPEC,
29 TCA_VLAN_TM,
30 TCA_VLAN_PARMS,
31 TCA_VLAN_PUSH_VLAN_ID,
32 TCA_VLAN_PUSH_VLAN_PROTOCOL,
9854518e 33 TCA_VLAN_PAD,
956af371 34 TCA_VLAN_PUSH_VLAN_PRIORITY,
c7e2b968
JP
35 __TCA_VLAN_MAX,
36};
37#define TCA_VLAN_MAX (__TCA_VLAN_MAX - 1)
38
39#endif