1 #ifndef __LINUX_TC_EM_META_H
2 #define __LINUX_TC_EM_META_H
4 #include <linux/types.h>
5 #include <linux/pkt_cls.h>
14 #define TCA_EM_META_MAX (__TCA_EM_META_MAX - 1)
22 #define TCF_META_TYPE_MASK (0xf << 12)
23 #define TCF_META_TYPE(kind) (((kind) & TCF_META_TYPE_MASK) >> 12)
24 #define TCF_META_ID_MASK 0x7ff
25 #define TCF_META_ID(kind) ((kind) & TCF_META_ID_MASK)
32 #define TCF_META_TYPE_MAX (__TCF_META_TYPE_MAX - 1)
37 TCF_META_ID_LOADAVG_0
,
38 TCF_META_ID_LOADAVG_1
,
39 TCF_META_ID_LOADAVG_2
,
49 TCF_META_ID_RTCLASSID
,
51 TCF_META_ID_SK_FAMILY
,
54 TCF_META_ID_SK_BOUND_IF
,
55 TCF_META_ID_SK_REFCNT
,
56 TCF_META_ID_SK_SHUTDOWN
,
59 TCF_META_ID_SK_RCVBUF
,
60 TCF_META_ID_SK_RMEM_ALLOC
,
61 TCF_META_ID_SK_WMEM_ALLOC
,
62 TCF_META_ID_SK_OMEM_ALLOC
,
63 TCF_META_ID_SK_WMEM_QUEUED
,
64 TCF_META_ID_SK_RCV_QLEN
,
65 TCF_META_ID_SK_SND_QLEN
,
66 TCF_META_ID_SK_ERR_QLEN
,
67 TCF_META_ID_SK_FORWARD_ALLOCS
,
68 TCF_META_ID_SK_SNDBUF
,
69 TCF_META_ID_SK_ALLOCS
,
70 __TCF_META_ID_SK_ROUTE_CAPS
, /* unimplemented but in ABI already */
72 TCF_META_ID_SK_LINGERTIME
,
73 TCF_META_ID_SK_ACK_BACKLOG
,
74 TCF_META_ID_SK_MAX_ACK_BACKLOG
,
76 TCF_META_ID_SK_RCVLOWAT
,
77 TCF_META_ID_SK_RCVTIMEO
,
78 TCF_META_ID_SK_SNDTIMEO
,
79 TCF_META_ID_SK_SENDMSG_OFF
,
80 TCF_META_ID_SK_WRITE_PENDING
,
85 #define TCF_META_ID_MAX (__TCF_META_ID_MAX - 1)
88 struct tcf_meta_val left
;
89 struct tcf_meta_val right
;