1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 #ifndef __UAPI_TC_IFE_H 2 #ifndef __UAPI_TC_IFE_H 3 #define __UAPI_TC_IFE_H 3 #define __UAPI_TC_IFE_H 4 4 5 #include <linux/types.h> 5 #include <linux/types.h> 6 #include <linux/pkt_cls.h> 6 #include <linux/pkt_cls.h> 7 #include <linux/ife.h> 7 #include <linux/ife.h> 8 8 9 /* Flag bits for now just encoding/decoding; m 9 /* Flag bits for now just encoding/decoding; mutually exclusive */ 10 #define IFE_ENCODE 1 10 #define IFE_ENCODE 1 11 #define IFE_DECODE 0 11 #define IFE_DECODE 0 12 12 13 struct tc_ife { 13 struct tc_ife { 14 tc_gen; 14 tc_gen; 15 __u16 flags; 15 __u16 flags; 16 }; 16 }; 17 17 18 /*XXX: We need to encode the total number of b 18 /*XXX: We need to encode the total number of bytes consumed */ 19 enum { 19 enum { 20 TCA_IFE_UNSPEC, 20 TCA_IFE_UNSPEC, 21 TCA_IFE_PARMS, 21 TCA_IFE_PARMS, 22 TCA_IFE_TM, 22 TCA_IFE_TM, 23 TCA_IFE_DMAC, 23 TCA_IFE_DMAC, 24 TCA_IFE_SMAC, 24 TCA_IFE_SMAC, 25 TCA_IFE_TYPE, 25 TCA_IFE_TYPE, 26 TCA_IFE_METALST, 26 TCA_IFE_METALST, 27 TCA_IFE_PAD, 27 TCA_IFE_PAD, 28 __TCA_IFE_MAX 28 __TCA_IFE_MAX 29 }; 29 }; 30 #define TCA_IFE_MAX (__TCA_IFE_MAX - 1) 30 #define TCA_IFE_MAX (__TCA_IFE_MAX - 1) 31 31 32 #endif 32 #endif 33 33
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.