xref: /linux/include/net/tc_act/tc_skbedit.h (revision a6227e26d946bc56df47ca5fe418660a07ef8288)
1ca9b0e27SAlexander Duyck /*
2ca9b0e27SAlexander Duyck  * Copyright (c) 2008, Intel Corporation.
3ca9b0e27SAlexander Duyck  *
4ca9b0e27SAlexander Duyck  * This program is free software; you can redistribute it and/or modify it
5ca9b0e27SAlexander Duyck  * under the terms and conditions of the GNU General Public License,
6ca9b0e27SAlexander Duyck  * version 2, as published by the Free Software Foundation.
7ca9b0e27SAlexander Duyck  *
8ca9b0e27SAlexander Duyck  * This program is distributed in the hope it will be useful, but WITHOUT
9ca9b0e27SAlexander Duyck  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10ca9b0e27SAlexander Duyck  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
11ca9b0e27SAlexander Duyck  * more details.
12ca9b0e27SAlexander Duyck  *
13ca9b0e27SAlexander Duyck  * You should have received a copy of the GNU General Public License along with
14*a6227e26SJeff Kirsher  * this program; if not, see <http://www.gnu.org/licenses/>.
15ca9b0e27SAlexander Duyck  *
16ca9b0e27SAlexander Duyck  * Author: Alexander Duyck <alexander.h.duyck@intel.com>
17ca9b0e27SAlexander Duyck  */
18ca9b0e27SAlexander Duyck 
19ca9b0e27SAlexander Duyck #ifndef __NET_TC_SKBEDIT_H
20ca9b0e27SAlexander Duyck #define __NET_TC_SKBEDIT_H
21ca9b0e27SAlexander Duyck 
22ca9b0e27SAlexander Duyck #include <net/act_api.h>
23ca9b0e27SAlexander Duyck 
24ca9b0e27SAlexander Duyck struct tcf_skbedit {
25ca9b0e27SAlexander Duyck 	struct tcf_common	common;
26ca9b0e27SAlexander Duyck 	u32			flags;
27ca9b0e27SAlexander Duyck 	u32     		priority;
281c55d62eSjamal 	u32     		mark;
29ca9b0e27SAlexander Duyck 	u16			queue_mapping;
301c55d62eSjamal 	/* XXX: 16-bit pad here? */
31ca9b0e27SAlexander Duyck };
32ca9b0e27SAlexander Duyck #define to_skbedit(pc) \
33ca9b0e27SAlexander Duyck 	container_of(pc, struct tcf_skbedit, common)
34ca9b0e27SAlexander Duyck 
35ca9b0e27SAlexander Duyck #endif /* __NET_TC_SKBEDIT_H */
36