Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef __UAPI_TC_IFE_H
0003 #define __UAPI_TC_IFE_H
0004 
0005 #include <linux/types.h>
0006 #include <linux/pkt_cls.h>
0007 #include <linux/ife.h>
0008 
0009 /* Flag bits for now just encoding/decoding; mutually exclusive */
0010 #define IFE_ENCODE 1
0011 #define IFE_DECODE 0
0012 
0013 struct tc_ife {
0014     tc_gen;
0015     __u16 flags;
0016 };
0017 
0018 /*XXX: We need to encode the total number of bytes consumed */
0019 enum {
0020     TCA_IFE_UNSPEC,
0021     TCA_IFE_PARMS,
0022     TCA_IFE_TM,
0023     TCA_IFE_DMAC,
0024     TCA_IFE_SMAC,
0025     TCA_IFE_TYPE,
0026     TCA_IFE_METALST,
0027     TCA_IFE_PAD,
0028     __TCA_IFE_MAX
0029 };
0030 #define TCA_IFE_MAX (__TCA_IFE_MAX - 1)
0031 
0032 #endif