Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * Copyright (c) 2008, Intel Corporation.
0004  *
0005  * This program is free software; you can redistribute it and/or modify it
0006  * under the terms and conditions of the GNU General Public License,
0007  * version 2, as published by the Free Software Foundation.
0008  *
0009  * This program is distributed in the hope it will be useful, but WITHOUT
0010  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0011  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
0012  * more details.
0013  *
0014  * You should have received a copy of the GNU General Public License along with
0015  * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
0016  * Place - Suite 330, Boston, MA 02111-1307 USA.
0017  *
0018  * Author: Alexander Duyck <alexander.h.duyck@intel.com>
0019  */
0020 
0021 #ifndef __LINUX_TC_SKBEDIT_H
0022 #define __LINUX_TC_SKBEDIT_H
0023 
0024 #include <linux/pkt_cls.h>
0025 
0026 #define SKBEDIT_F_PRIORITY      0x1
0027 #define SKBEDIT_F_QUEUE_MAPPING     0x2
0028 #define SKBEDIT_F_MARK          0x4
0029 #define SKBEDIT_F_PTYPE         0x8
0030 #define SKBEDIT_F_MASK          0x10
0031 #define SKBEDIT_F_INHERITDSFIELD    0x20
0032 #define SKBEDIT_F_TXQ_SKBHASH       0x40
0033 
0034 struct tc_skbedit {
0035     tc_gen;
0036 };
0037 
0038 enum {
0039     TCA_SKBEDIT_UNSPEC,
0040     TCA_SKBEDIT_TM,
0041     TCA_SKBEDIT_PARMS,
0042     TCA_SKBEDIT_PRIORITY,
0043     TCA_SKBEDIT_QUEUE_MAPPING,
0044     TCA_SKBEDIT_MARK,
0045     TCA_SKBEDIT_PAD,
0046     TCA_SKBEDIT_PTYPE,
0047     TCA_SKBEDIT_MASK,
0048     TCA_SKBEDIT_FLAGS,
0049     TCA_SKBEDIT_QUEUE_MAPPING_MAX,
0050     __TCA_SKBEDIT_MAX
0051 };
0052 #define TCA_SKBEDIT_MAX (__TCA_SKBEDIT_MAX - 1)
0053 
0054 #endif