tc_skbedit.h revision ab322673298bd0b8927cdd9d11f3d36af5941b93
1bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant/*
2bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant * Copyright (c) 2008, Intel Corporation.
3f5256e16dfc425c1d466f6308d4026d529ce9e0bHoward Hinnant *
4bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant * This program is free software; you can redistribute it and/or modify it
5bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant * under the terms and conditions of the GNU General Public License,
6bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant * version 2, as published by the Free Software Foundation.
7bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant *
8bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant * This program is distributed in the hope it will be useful, but WITHOUT
9bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
11bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant * more details.
12bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant *
13bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant * You should have received a copy of the GNU General Public License along with
14bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant * Place - Suite 330, Boston, MA 02111-1307 USA.
16bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant *
17bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant * Author: Alexander Duyck <alexander.h.duyck@intel.com>
18bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant */
19bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant
20bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant#ifndef __LINUX_TC_SKBEDIT_H
21bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant#define __LINUX_TC_SKBEDIT_H
22bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant
23bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant#include <linux/pkt_cls.h>
24
25#define TCA_ACT_SKBEDIT 11
26
27#define SKBEDIT_F_PRIORITY		0x1
28#define SKBEDIT_F_QUEUE_MAPPING		0x2
29#define SKBEDIT_F_MARK			0x4
30
31struct tc_skbedit {
32	tc_gen;
33};
34
35enum {
36	TCA_SKBEDIT_UNSPEC,
37	TCA_SKBEDIT_TM,
38	TCA_SKBEDIT_PARMS,
39	TCA_SKBEDIT_PRIORITY,
40	TCA_SKBEDIT_QUEUE_MAPPING,
41	TCA_SKBEDIT_MARK,
42	__TCA_SKBEDIT_MAX
43};
44#define TCA_SKBEDIT_MAX (__TCA_SKBEDIT_MAX - 1)
45
46#endif
47