Christopher Ferris | 2598113 | 2017-11-14 16:53:49 -0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
Christopher Ferris | ccfaccd | 2016-08-24 12:11:31 -0700 | [diff] [blame] | 2 | #ifndef __UAPI_TC_IFE_H |
| 3 | #define __UAPI_TC_IFE_H |
| 4 | |
| 5 | #include <linux/types.h> |
| 6 | #include <linux/pkt_cls.h> |
Christopher Ferris | 0543f74 | 2017-07-26 13:09:46 -0700 | [diff] [blame] | 7 | #include <linux/ife.h> |
Christopher Ferris | ccfaccd | 2016-08-24 12:11:31 -0700 | [diff] [blame] | 8 | |
| 9 | #define TCA_ACT_IFE 25 |
| 10 | /* Flag bits for now just encoding/decoding; mutually exclusive */ |
| 11 | #define IFE_ENCODE 1 |
| 12 | #define IFE_DECODE 0 |
| 13 | |
| 14 | struct tc_ife { |
| 15 | tc_gen; |
| 16 | __u16 flags; |
| 17 | }; |
| 18 | |
| 19 | /*XXX: We need to encode the total number of bytes consumed */ |
| 20 | enum { |
| 21 | TCA_IFE_UNSPEC, |
| 22 | TCA_IFE_PARMS, |
| 23 | TCA_IFE_TM, |
| 24 | TCA_IFE_DMAC, |
| 25 | TCA_IFE_SMAC, |
| 26 | TCA_IFE_TYPE, |
| 27 | TCA_IFE_METALST, |
| 28 | TCA_IFE_PAD, |
| 29 | __TCA_IFE_MAX |
| 30 | }; |
| 31 | #define TCA_IFE_MAX (__TCA_IFE_MAX - 1) |
| 32 | |
Christopher Ferris | ccfaccd | 2016-08-24 12:11:31 -0700 | [diff] [blame] | 33 | #endif |