Christopher Ferris | 2598113 | 2017-11-14 16:53:49 -0800 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
Ben Cheng | 30692c6 | 2013-10-15 18:26:18 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2008, Intel Corporation. |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify it |
| 6 | * under the terms and conditions of the GNU General Public License, |
| 7 | * version 2, as published by the Free Software Foundation. |
| 8 | * |
| 9 | * This program is distributed in the hope it will be useful, but WITHOUT |
| 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 12 | * more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License along with |
| 15 | * this program; if not, write to the Free Software Foundation, Inc., 59 Temple |
| 16 | * Place - Suite 330, Boston, MA 02111-1307 USA. |
| 17 | * |
| 18 | * Author: Alexander Duyck <alexander.h.duyck@intel.com> |
| 19 | */ |
| 20 | |
| 21 | #ifndef __LINUX_TC_SKBEDIT_H |
| 22 | #define __LINUX_TC_SKBEDIT_H |
| 23 | |
| 24 | #include <linux/pkt_cls.h> |
| 25 | |
| 26 | #define TCA_ACT_SKBEDIT 11 |
| 27 | |
| 28 | #define SKBEDIT_F_PRIORITY 0x1 |
| 29 | #define SKBEDIT_F_QUEUE_MAPPING 0x2 |
| 30 | #define SKBEDIT_F_MARK 0x4 |
Christopher Ferris | 6e3550f | 2016-12-12 14:51:18 -0800 | [diff] [blame] | 31 | #define SKBEDIT_F_PTYPE 0x8 |
Christopher Ferris | 2fd4b3c | 2017-02-21 12:32:08 -0800 | [diff] [blame] | 32 | #define SKBEDIT_F_MASK 0x10 |
Ben Cheng | 30692c6 | 2013-10-15 18:26:18 -0700 | [diff] [blame] | 33 | |
| 34 | struct tc_skbedit { |
| 35 | tc_gen; |
| 36 | }; |
| 37 | |
| 38 | enum { |
| 39 | TCA_SKBEDIT_UNSPEC, |
| 40 | TCA_SKBEDIT_TM, |
| 41 | TCA_SKBEDIT_PARMS, |
| 42 | TCA_SKBEDIT_PRIORITY, |
| 43 | TCA_SKBEDIT_QUEUE_MAPPING, |
| 44 | TCA_SKBEDIT_MARK, |
Christopher Ferris | ccfaccd | 2016-08-24 12:11:31 -0700 | [diff] [blame] | 45 | TCA_SKBEDIT_PAD, |
Christopher Ferris | 6e3550f | 2016-12-12 14:51:18 -0800 | [diff] [blame] | 46 | TCA_SKBEDIT_PTYPE, |
Christopher Ferris | 2fd4b3c | 2017-02-21 12:32:08 -0800 | [diff] [blame] | 47 | TCA_SKBEDIT_MASK, |
Ben Cheng | 30692c6 | 2013-10-15 18:26:18 -0700 | [diff] [blame] | 48 | __TCA_SKBEDIT_MAX |
| 49 | }; |
| 50 | #define TCA_SKBEDIT_MAX (__TCA_SKBEDIT_MAX - 1) |
| 51 | |
| 52 | #endif |