Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
pkt_cls.h File Reference
#include <linux/types.h>
#include <linux/pkt_sched.h>

Go to the source code of this file.

Data Structures

struct  tc_police
 
struct  tcf_t
 
struct  tc_cnt
 
struct  tc_u32_key
 
struct  tc_u32_sel
 
struct  tc_u32_mark
 
struct  tc_u32_pcnt
 
struct  tc_rsvp_gpi
 
struct  tc_rsvp_pinfo
 
struct  tcf_ematch_tree_hdr
 
struct  tcf_ematch_hdr
 

Macros

#define _TC_MAKE32(x)   ((x))
 
#define _TC_MAKEMASK1(n)   (_TC_MAKE32(1) << _TC_MAKE32(n))
 
#define _TC_MAKEMASK(v, n)   (_TC_MAKE32((_TC_MAKE32(1)<<(v))-1) << _TC_MAKE32(n))
 
#define _TC_MAKEVALUE(v, n)   (_TC_MAKE32(v) << _TC_MAKE32(n))
 
#define _TC_GETVALUE(v, n, m)   ((_TC_MAKE32(v) & _TC_MAKE32(m)) >> _TC_MAKE32(n))
 
#define TC_MUNGED   _TC_MAKEMASK1(0)
 
#define SET_TC_MUNGED(v)   ( TC_MUNGED | (v & ~TC_MUNGED))
 
#define CLR_TC_MUNGED(v)   ( v & ~TC_MUNGED)
 
#define TC_OK2MUNGE   _TC_MAKEMASK1(1)
 
#define SET_TC_OK2MUNGE(v)   ( TC_OK2MUNGE | (v & ~TC_OK2MUNGE))
 
#define CLR_TC_OK2MUNGE(v)   ( v & ~TC_OK2MUNGE)
 
#define S_TC_VERD   _TC_MAKE32(2)
 
#define M_TC_VERD   _TC_MAKEMASK(4,S_TC_VERD)
 
#define G_TC_VERD(x)   _TC_GETVALUE(x,S_TC_VERD,M_TC_VERD)
 
#define V_TC_VERD(x)   _TC_MAKEVALUE(x,S_TC_VERD)
 
#define SET_TC_VERD(v, n)   ((V_TC_VERD(n)) | (v & ~M_TC_VERD))
 
#define S_TC_FROM   _TC_MAKE32(6)
 
#define M_TC_FROM   _TC_MAKEMASK(2,S_TC_FROM)
 
#define G_TC_FROM(x)   _TC_GETVALUE(x,S_TC_FROM,M_TC_FROM)
 
#define V_TC_FROM(x)   _TC_MAKEVALUE(x,S_TC_FROM)
 
#define SET_TC_FROM(v, n)   ((V_TC_FROM(n)) | (v & ~M_TC_FROM))
 
#define AT_STACK   0x0
 
#define AT_INGRESS   0x1
 
#define AT_EGRESS   0x2
 
#define TC_NCLS   _TC_MAKEMASK1(8)
 
#define SET_TC_NCLS(v)   ( TC_NCLS | (v & ~TC_NCLS))
 
#define CLR_TC_NCLS(v)   ( v & ~TC_NCLS)
 
#define S_TC_RTTL   _TC_MAKE32(9)
 
#define M_TC_RTTL   _TC_MAKEMASK(3,S_TC_RTTL)
 
#define G_TC_RTTL(x)   _TC_GETVALUE(x,S_TC_RTTL,M_TC_RTTL)
 
#define V_TC_RTTL(x)   _TC_MAKEVALUE(x,S_TC_RTTL)
 
#define SET_TC_RTTL(v, n)   ((V_TC_RTTL(n)) | (v & ~M_TC_RTTL))
 
#define S_TC_AT   _TC_MAKE32(12)
 
#define M_TC_AT   _TC_MAKEMASK(2,S_TC_AT)
 
#define G_TC_AT(x)   _TC_GETVALUE(x,S_TC_AT,M_TC_AT)
 
#define V_TC_AT(x)   _TC_MAKEVALUE(x,S_TC_AT)
 
#define SET_TC_AT(v, n)   ((V_TC_AT(n)) | (v & ~M_TC_AT))
 
#define TCA_ACT_MAX   __TCA_ACT_MAX
 
#define TCA_OLD_COMPAT   (TCA_ACT_MAX+1)
 
#define TCA_ACT_MAX_PRIO   32
 
#define TCA_ACT_BIND   1
 
#define TCA_ACT_NOBIND   0
 
#define TCA_ACT_UNBIND   1
 
#define TCA_ACT_NOUNBIND   0
 
#define TCA_ACT_REPLACE   1
 
#define TCA_ACT_NOREPLACE   0
 
#define MAX_REC_LOOP   4
 
#define MAX_RED_LOOP   4
 
#define TC_ACT_UNSPEC   (-1)
 
#define TC_ACT_OK   0
 
#define TC_ACT_RECLASSIFY   1
 
#define TC_ACT_SHOT   2
 
#define TC_ACT_PIPE   3
 
#define TC_ACT_STOLEN   4
 
#define TC_ACT_QUEUED   5
 
#define TC_ACT_REPEAT   6
 
#define TC_ACT_JUMP   0x10000000
 
#define TCA_ID_MAX   __TCA_ID_MAX
 
#define TC_POLICE_UNSPEC   TC_ACT_UNSPEC
 
#define TC_POLICE_OK   TC_ACT_OK
 
#define TC_POLICE_RECLASSIFY   TC_ACT_RECLASSIFY
 
#define TC_POLICE_SHOT   TC_ACT_SHOT
 
#define TC_POLICE_PIPE   TC_ACT_PIPE
 
#define tc_gen
 
#define TCA_POLICE_RESULT   TCA_POLICE_RESULT
 
#define TCA_POLICE_MAX   (__TCA_POLICE_MAX - 1)
 
#define TC_U32_HTID(h)   ((h)&0xFFF00000)
 
#define TC_U32_USERHTID(h)   (TC_U32_HTID(h)>>20)
 
#define TC_U32_HASH(h)   (((h)>>12)&0xFF)
 
#define TC_U32_NODE(h)   ((h)&0xFFF)
 
#define TC_U32_KEY(h)   ((h)&0xFFFFF)
 
#define TC_U32_UNSPEC   0
 
#define TC_U32_ROOT   (0xFFF00000)
 
#define TCA_U32_MAX   (__TCA_U32_MAX - 1)
 
#define TC_U32_TERMINAL   1
 
#define TC_U32_OFFSET   2
 
#define TC_U32_VAROFFSET   4
 
#define TC_U32_EAT   8
 
#define TC_U32_MAXDEPTH   8
 
#define TCA_RSVP_MAX   (__TCA_RSVP_MAX - 1 )
 
#define TCA_ROUTE4_MAX   (__TCA_ROUTE4_MAX - 1)
 
#define TCA_FW_MAX   (__TCA_FW_MAX - 1)
 
#define TCA_TCINDEX_MAX   (__TCA_TCINDEX_MAX - 1)
 
#define FLOW_KEY_MAX   (__FLOW_KEY_MAX - 1)
 
#define TCA_FLOW_MAX   (__TCA_FLOW_MAX - 1)
 
#define TCA_BASIC_MAX   (__TCA_BASIC_MAX - 1)
 
#define TCA_CGROUP_MAX   (__TCA_CGROUP_MAX - 1)
 
#define TCA_EMATCH_TREE_MAX   (__TCA_EMATCH_TREE_MAX - 1)
 
#define TCF_EM_REL_END   0
 
#define TCF_EM_REL_AND   (1<<0)
 
#define TCF_EM_REL_OR   (1<<1)
 
#define TCF_EM_INVERT   (1<<2)
 
#define TCF_EM_SIMPLE   (1<<3)
 
#define TCF_EM_REL_MASK   3
 
#define TCF_EM_REL_VALID(v)   (((v) & TCF_EM_REL_MASK) != TCF_EM_REL_MASK)
 
#define TCF_LAYER_MAX   (__TCF_LAYER_MAX - 1)
 
#define TCF_EM_CONTAINER   0
 
#define TCF_EM_CMP   1
 
#define TCF_EM_NBYTE   2
 
#define TCF_EM_U32   3
 
#define TCF_EM_META   4
 
#define TCF_EM_TEXT   5
 
#define TCF_EM_VLAN   6
 
#define TCF_EM_CANID   7
 
#define TCF_EM_IPSET   8
 
#define TCF_EM_MAX   8
 

Enumerations

enum  {
  TCA_ACT_UNSPEC, TCA_ACT_KIND, TCA_ACT_OPTIONS, TCA_ACT_INDEX,
  TCA_ACT_STATS, __TCA_ACT_MAX
}
 
enum  { TCA_ID_UNSPEC =0, TCA_ID_POLICE =1, __TCA_ID_MAX =255 }
 
enum  {
  TCA_POLICE_UNSPEC, TCA_POLICE_TBF, TCA_POLICE_RATE, TCA_POLICE_PEAKRATE,
  TCA_POLICE_AVRATE, TCA_POLICE_RESULT, TCA_POLICE_RESULT
}
 
enum  {
  TCA_U32_UNSPEC, TCA_U32_CLASSID, TCA_U32_HASH, TCA_U32_LINK,
  TCA_U32_DIVISOR, TCA_U32_SEL, TCA_U32_POLICE, TCA_U32_ACT,
  TCA_U32_INDEV, TCA_U32_PCNT, TCA_U32_MARK, __TCA_U32_MAX
}
 
enum  {
  TCA_RSVP_UNSPEC, TCA_RSVP_CLASSID, TCA_RSVP_DST, TCA_RSVP_SRC,
  TCA_RSVP_PINFO, TCA_RSVP_POLICE, TCA_RSVP_ACT, __TCA_RSVP_MAX
}
 
enum  {
  TCA_ROUTE4_UNSPEC, TCA_ROUTE4_CLASSID, TCA_ROUTE4_TO, TCA_ROUTE4_FROM,
  TCA_ROUTE4_IIF, TCA_ROUTE4_POLICE, TCA_ROUTE4_ACT, __TCA_ROUTE4_MAX
}
 
enum  {
  TCA_FW_UNSPEC, TCA_FW_CLASSID, TCA_FW_POLICE, TCA_FW_INDEV,
  TCA_FW_ACT, TCA_FW_MASK, __TCA_FW_MAX
}
 
enum  {
  TCA_TCINDEX_UNSPEC, TCA_TCINDEX_HASH, TCA_TCINDEX_MASK, TCA_TCINDEX_SHIFT,
  TCA_TCINDEX_FALL_THROUGH, TCA_TCINDEX_CLASSID, TCA_TCINDEX_POLICE, TCA_TCINDEX_ACT,
  __TCA_TCINDEX_MAX
}
 
enum  {
  FLOW_KEY_SRC, FLOW_KEY_DST, FLOW_KEY_PROTO, FLOW_KEY_PROTO_SRC,
  FLOW_KEY_PROTO_DST, FLOW_KEY_IIF, FLOW_KEY_PRIORITY, FLOW_KEY_MARK,
  FLOW_KEY_NFCT, FLOW_KEY_NFCT_SRC, FLOW_KEY_NFCT_DST, FLOW_KEY_NFCT_PROTO_SRC,
  FLOW_KEY_NFCT_PROTO_DST, FLOW_KEY_RTCLASSID, FLOW_KEY_SKUID, FLOW_KEY_SKGID,
  FLOW_KEY_VLAN_TAG, FLOW_KEY_RXHASH, __FLOW_KEY_MAX
}
 
enum  { FLOW_MODE_MAP, FLOW_MODE_HASH }
 
enum  {
  TCA_FLOW_UNSPEC, TCA_FLOW_KEYS, TCA_FLOW_MODE, TCA_FLOW_BASECLASS,
  TCA_FLOW_RSHIFT, TCA_FLOW_ADDEND, TCA_FLOW_MASK, TCA_FLOW_XOR,
  TCA_FLOW_DIVISOR, TCA_FLOW_ACT, TCA_FLOW_POLICE, TCA_FLOW_EMATCHES,
  TCA_FLOW_PERTURB, __TCA_FLOW_MAX
}
 
enum  {
  TCA_BASIC_UNSPEC, TCA_BASIC_CLASSID, TCA_BASIC_EMATCHES, TCA_BASIC_ACT,
  TCA_BASIC_POLICE, __TCA_BASIC_MAX
}
 
enum  {
  TCA_CGROUP_UNSPEC, TCA_CGROUP_ACT, TCA_CGROUP_POLICE, TCA_CGROUP_EMATCHES,
  __TCA_CGROUP_MAX
}
 
enum  { TCA_EMATCH_TREE_UNSPEC, TCA_EMATCH_TREE_HDR, TCA_EMATCH_TREE_LIST, __TCA_EMATCH_TREE_MAX }
 
enum  { TCF_LAYER_LINK, TCF_LAYER_NETWORK, TCF_LAYER_TRANSPORT, __TCF_LAYER_MAX }
 
enum  { TCF_EM_PROG_TC }
 
enum  { TCF_EM_OPND_EQ, TCF_EM_OPND_GT, TCF_EM_OPND_LT }
 

Macro Definition Documentation

#define _TC_GETVALUE (   v,
  n,
  m 
)    ((_TC_MAKE32(v) & _TC_MAKE32(m)) >> _TC_MAKE32(n))

Definition at line 15 of file pkt_cls.h.

#define _TC_MAKE32 (   x)    ((x))

Definition at line 10 of file pkt_cls.h.

#define _TC_MAKEMASK (   v,
  n 
)    (_TC_MAKE32((_TC_MAKE32(1)<<(v))-1) << _TC_MAKE32(n))

Definition at line 13 of file pkt_cls.h.

#define _TC_MAKEMASK1 (   n)    (_TC_MAKE32(1) << _TC_MAKE32(n))

Definition at line 12 of file pkt_cls.h.

#define _TC_MAKEVALUE (   v,
  n 
)    (_TC_MAKE32(v) << _TC_MAKE32(n))

Definition at line 14 of file pkt_cls.h.

#define AT_EGRESS   0x2

Definition at line 59 of file pkt_cls.h.

#define AT_INGRESS   0x1

Definition at line 58 of file pkt_cls.h.

#define AT_STACK   0x0

Definition at line 57 of file pkt_cls.h.

#define CLR_TC_MUNGED (   v)    ( v & ~TC_MUNGED)

Definition at line 40 of file pkt_cls.h.

#define CLR_TC_NCLS (   v)    ( v & ~TC_NCLS)

Definition at line 63 of file pkt_cls.h.

#define CLR_TC_OK2MUNGE (   v)    ( v & ~TC_OK2MUNGE)

Definition at line 44 of file pkt_cls.h.

#define FLOW_KEY_MAX   (__FLOW_KEY_MAX - 1)

Definition at line 339 of file pkt_cls.h.

#define G_TC_AT (   x)    _TC_GETVALUE(x,S_TC_AT,M_TC_AT)

Definition at line 73 of file pkt_cls.h.

#define G_TC_FROM (   x)    _TC_GETVALUE(x,S_TC_FROM,M_TC_FROM)

Definition at line 54 of file pkt_cls.h.

#define G_TC_RTTL (   x)    _TC_GETVALUE(x,S_TC_RTTL,M_TC_RTTL)

Definition at line 67 of file pkt_cls.h.

#define G_TC_VERD (   x)    _TC_GETVALUE(x,S_TC_VERD,M_TC_VERD)

Definition at line 48 of file pkt_cls.h.

#define M_TC_AT   _TC_MAKEMASK(2,S_TC_AT)

Definition at line 72 of file pkt_cls.h.

#define M_TC_FROM   _TC_MAKEMASK(2,S_TC_FROM)

Definition at line 53 of file pkt_cls.h.

#define M_TC_RTTL   _TC_MAKEMASK(3,S_TC_RTTL)

Definition at line 66 of file pkt_cls.h.

#define M_TC_VERD   _TC_MAKEMASK(4,S_TC_VERD)

Definition at line 47 of file pkt_cls.h.

#define MAX_REC_LOOP   4

Definition at line 96 of file pkt_cls.h.

#define MAX_RED_LOOP   4

Definition at line 97 of file pkt_cls.h.

#define S_TC_AT   _TC_MAKE32(12)

Definition at line 71 of file pkt_cls.h.

#define S_TC_FROM   _TC_MAKE32(6)

Definition at line 52 of file pkt_cls.h.

#define S_TC_RTTL   _TC_MAKE32(9)

Definition at line 65 of file pkt_cls.h.

#define S_TC_VERD   _TC_MAKE32(2)

Definition at line 46 of file pkt_cls.h.

#define SET_TC_AT (   v,
  n 
)    ((V_TC_AT(n)) | (v & ~M_TC_AT))

Definition at line 75 of file pkt_cls.h.

#define SET_TC_FROM (   v,
  n 
)    ((V_TC_FROM(n)) | (v & ~M_TC_FROM))

Definition at line 56 of file pkt_cls.h.

#define SET_TC_MUNGED (   v)    ( TC_MUNGED | (v & ~TC_MUNGED))

Definition at line 39 of file pkt_cls.h.

#define SET_TC_NCLS (   v)    ( TC_NCLS | (v & ~TC_NCLS))

Definition at line 62 of file pkt_cls.h.

#define SET_TC_OK2MUNGE (   v)    ( TC_OK2MUNGE | (v & ~TC_OK2MUNGE))

Definition at line 43 of file pkt_cls.h.

#define SET_TC_RTTL (   v,
  n 
)    ((V_TC_RTTL(n)) | (v & ~M_TC_RTTL))

Definition at line 69 of file pkt_cls.h.

#define SET_TC_VERD (   v,
  n 
)    ((V_TC_VERD(n)) | (v & ~M_TC_VERD))

Definition at line 50 of file pkt_cls.h.

#define TC_ACT_JUMP   0x10000000

Definition at line 107 of file pkt_cls.h.

#define TC_ACT_OK   0

Definition at line 100 of file pkt_cls.h.

#define TC_ACT_PIPE   3

Definition at line 103 of file pkt_cls.h.

#define TC_ACT_QUEUED   5

Definition at line 105 of file pkt_cls.h.

#define TC_ACT_RECLASSIFY   1

Definition at line 101 of file pkt_cls.h.

#define TC_ACT_REPEAT   6

Definition at line 106 of file pkt_cls.h.

#define TC_ACT_SHOT   2

Definition at line 102 of file pkt_cls.h.

#define TC_ACT_STOLEN   4

Definition at line 104 of file pkt_cls.h.

#define TC_ACT_UNSPEC   (-1)

Definition at line 99 of file pkt_cls.h.

#define tc_gen
Value:
int action; \
int refcnt; \
int bindcnt

Definition at line 149 of file pkt_cls.h.

#define TC_MUNGED   _TC_MAKEMASK1(0)

Definition at line 38 of file pkt_cls.h.

#define TC_NCLS   _TC_MAKEMASK1(8)

Definition at line 61 of file pkt_cls.h.

#define TC_OK2MUNGE   _TC_MAKEMASK1(1)

Definition at line 42 of file pkt_cls.h.

#define TC_POLICE_OK   TC_ACT_OK

Definition at line 123 of file pkt_cls.h.

#define TC_POLICE_PIPE   TC_ACT_PIPE

Definition at line 126 of file pkt_cls.h.

#define TC_POLICE_RECLASSIFY   TC_ACT_RECLASSIFY

Definition at line 124 of file pkt_cls.h.

#define TC_POLICE_SHOT   TC_ACT_SHOT

Definition at line 125 of file pkt_cls.h.

#define TC_POLICE_UNSPEC   TC_ACT_UNSPEC

Definition at line 122 of file pkt_cls.h.

#define TC_U32_EAT   8

Definition at line 234 of file pkt_cls.h.

#define TC_U32_HASH (   h)    (((h)>>12)&0xFF)

Definition at line 173 of file pkt_cls.h.

#define TC_U32_HTID (   h)    ((h)&0xFFF00000)

Definition at line 171 of file pkt_cls.h.

#define TC_U32_KEY (   h)    ((h)&0xFFFFF)

Definition at line 175 of file pkt_cls.h.

#define TC_U32_MAXDEPTH   8

Definition at line 236 of file pkt_cls.h.

#define TC_U32_NODE (   h)    ((h)&0xFFF)

Definition at line 174 of file pkt_cls.h.

#define TC_U32_OFFSET   2

Definition at line 232 of file pkt_cls.h.

#define TC_U32_ROOT   (0xFFF00000)

Definition at line 177 of file pkt_cls.h.

#define TC_U32_TERMINAL   1

Definition at line 231 of file pkt_cls.h.

#define TC_U32_UNSPEC   0

Definition at line 176 of file pkt_cls.h.

#define TC_U32_USERHTID (   h)    (TC_U32_HTID(h)>>20)

Definition at line 172 of file pkt_cls.h.

#define TC_U32_VAROFFSET   4

Definition at line 233 of file pkt_cls.h.

#define TCA_ACT_BIND   1

Definition at line 90 of file pkt_cls.h.

#define TCA_ACT_MAX   __TCA_ACT_MAX

Definition at line 87 of file pkt_cls.h.

#define TCA_ACT_MAX_PRIO   32

Definition at line 89 of file pkt_cls.h.

#define TCA_ACT_NOBIND   0

Definition at line 91 of file pkt_cls.h.

#define TCA_ACT_NOREPLACE   0

Definition at line 95 of file pkt_cls.h.

#define TCA_ACT_NOUNBIND   0

Definition at line 93 of file pkt_cls.h.

#define TCA_ACT_REPLACE   1

Definition at line 94 of file pkt_cls.h.

#define TCA_ACT_UNBIND   1

Definition at line 92 of file pkt_cls.h.

#define TCA_BASIC_MAX   (__TCA_BASIC_MAX - 1)

Definition at line 376 of file pkt_cls.h.

#define TCA_CGROUP_MAX   (__TCA_CGROUP_MAX - 1)

Definition at line 389 of file pkt_cls.h.

#define TCA_EMATCH_TREE_MAX   (__TCA_EMATCH_TREE_MAX - 1)

Definition at line 404 of file pkt_cls.h.

#define TCA_FLOW_MAX   (__TCA_FLOW_MAX - 1)

Definition at line 363 of file pkt_cls.h.

#define TCA_FW_MAX   (__TCA_FW_MAX - 1)

Definition at line 297 of file pkt_cls.h.

#define TCA_ID_MAX   __TCA_ID_MAX

Definition at line 117 of file pkt_cls.h.

#define TCA_OLD_COMPAT   (TCA_ACT_MAX+1)

Definition at line 88 of file pkt_cls.h.

#define TCA_POLICE_MAX   (__TCA_POLICE_MAX - 1)

Definition at line 167 of file pkt_cls.h.

#define TCA_POLICE_RESULT   TCA_POLICE_RESULT

Definition at line 164 of file pkt_cls.h.

#define TCA_ROUTE4_MAX   (__TCA_ROUTE4_MAX - 1)

Definition at line 282 of file pkt_cls.h.

#define TCA_RSVP_MAX   (__TCA_RSVP_MAX - 1 )

Definition at line 252 of file pkt_cls.h.

#define TCA_TCINDEX_MAX   (__TCA_TCINDEX_MAX - 1)

Definition at line 313 of file pkt_cls.h.

#define TCA_U32_MAX   (__TCA_U32_MAX - 1)

Definition at line 194 of file pkt_cls.h.

#define TCF_EM_CANID   7

Definition at line 455 of file pkt_cls.h.

#define TCF_EM_CMP   1

Definition at line 449 of file pkt_cls.h.

#define TCF_EM_CONTAINER   0

Definition at line 448 of file pkt_cls.h.

#define TCF_EM_INVERT   (1<<2)

Definition at line 430 of file pkt_cls.h.

#define TCF_EM_IPSET   8

Definition at line 456 of file pkt_cls.h.

#define TCF_EM_MAX   8

Definition at line 457 of file pkt_cls.h.

#define TCF_EM_META   4

Definition at line 452 of file pkt_cls.h.

#define TCF_EM_NBYTE   2

Definition at line 450 of file pkt_cls.h.

#define TCF_EM_REL_AND   (1<<0)

Definition at line 428 of file pkt_cls.h.

#define TCF_EM_REL_END   0

Definition at line 427 of file pkt_cls.h.

#define TCF_EM_REL_MASK   3

Definition at line 433 of file pkt_cls.h.

#define TCF_EM_REL_OR   (1<<1)

Definition at line 429 of file pkt_cls.h.

#define TCF_EM_REL_VALID (   v)    (((v) & TCF_EM_REL_MASK) != TCF_EM_REL_MASK)

Definition at line 434 of file pkt_cls.h.

#define TCF_EM_SIMPLE   (1<<3)

Definition at line 431 of file pkt_cls.h.

#define TCF_EM_TEXT   5

Definition at line 453 of file pkt_cls.h.

#define TCF_EM_U32   3

Definition at line 451 of file pkt_cls.h.

#define TCF_EM_VLAN   6

Definition at line 454 of file pkt_cls.h.

#define TCF_LAYER_MAX   (__TCF_LAYER_MAX - 1)

Definition at line 442 of file pkt_cls.h.

#define V_TC_AT (   x)    _TC_MAKEVALUE(x,S_TC_AT)

Definition at line 74 of file pkt_cls.h.

#define V_TC_FROM (   x)    _TC_MAKEVALUE(x,S_TC_FROM)

Definition at line 55 of file pkt_cls.h.

#define V_TC_RTTL (   x)    _TC_MAKEVALUE(x,S_TC_RTTL)

Definition at line 68 of file pkt_cls.h.

#define V_TC_VERD (   x)    _TC_MAKEVALUE(x,S_TC_VERD)

Definition at line 49 of file pkt_cls.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
TCA_ACT_UNSPEC 
TCA_ACT_KIND 
TCA_ACT_OPTIONS 
TCA_ACT_INDEX 
TCA_ACT_STATS 
__TCA_ACT_MAX 

Definition at line 78 of file pkt_cls.h.

anonymous enum
Enumerator:
TCA_ID_UNSPEC 
TCA_ID_POLICE 
__TCA_ID_MAX 

Definition at line 110 of file pkt_cls.h.

anonymous enum
Enumerator:
TCA_POLICE_UNSPEC 
TCA_POLICE_TBF 
TCA_POLICE_RATE 
TCA_POLICE_PEAKRATE 
TCA_POLICE_AVRATE 
TCA_POLICE_RESULT 
TCA_POLICE_RESULT 

Definition at line 156 of file pkt_cls.h.

anonymous enum
Enumerator:
TCA_U32_UNSPEC 
TCA_U32_CLASSID 
TCA_U32_HASH 
TCA_U32_LINK 
TCA_U32_DIVISOR 
TCA_U32_SEL 
TCA_U32_POLICE 
TCA_U32_ACT 
TCA_U32_INDEV 
TCA_U32_PCNT 
TCA_U32_MARK 
__TCA_U32_MAX 

Definition at line 179 of file pkt_cls.h.

anonymous enum
Enumerator:
TCA_RSVP_UNSPEC 
TCA_RSVP_CLASSID 
TCA_RSVP_DST 
TCA_RSVP_SRC 
TCA_RSVP_PINFO 
TCA_RSVP_POLICE 
TCA_RSVP_ACT 
__TCA_RSVP_MAX 

Definition at line 241 of file pkt_cls.h.

anonymous enum
Enumerator:
TCA_ROUTE4_UNSPEC 
TCA_ROUTE4_CLASSID 
TCA_ROUTE4_TO 
TCA_ROUTE4_FROM 
TCA_ROUTE4_IIF 
TCA_ROUTE4_POLICE 
TCA_ROUTE4_ACT 
__TCA_ROUTE4_MAX 

Definition at line 271 of file pkt_cls.h.

anonymous enum
Enumerator:
TCA_FW_UNSPEC 
TCA_FW_CLASSID 
TCA_FW_POLICE 
TCA_FW_INDEV 
TCA_FW_ACT 
TCA_FW_MASK 
__TCA_FW_MAX 

Definition at line 287 of file pkt_cls.h.

anonymous enum
Enumerator:
TCA_TCINDEX_UNSPEC 
TCA_TCINDEX_HASH 
TCA_TCINDEX_MASK 
TCA_TCINDEX_SHIFT 
TCA_TCINDEX_FALL_THROUGH 
TCA_TCINDEX_CLASSID 
TCA_TCINDEX_POLICE 
TCA_TCINDEX_ACT 
__TCA_TCINDEX_MAX 

Definition at line 301 of file pkt_cls.h.

anonymous enum
Enumerator:
FLOW_KEY_SRC 
FLOW_KEY_DST 
FLOW_KEY_PROTO 
FLOW_KEY_PROTO_SRC 
FLOW_KEY_PROTO_DST 
FLOW_KEY_IIF 
FLOW_KEY_PRIORITY 
FLOW_KEY_MARK 
FLOW_KEY_NFCT 
FLOW_KEY_NFCT_SRC 
FLOW_KEY_NFCT_DST 
FLOW_KEY_NFCT_PROTO_SRC 
FLOW_KEY_NFCT_PROTO_DST 
FLOW_KEY_RTCLASSID 
FLOW_KEY_SKUID 
FLOW_KEY_SKGID 
FLOW_KEY_VLAN_TAG 
FLOW_KEY_RXHASH 
__FLOW_KEY_MAX 

Definition at line 317 of file pkt_cls.h.

anonymous enum
Enumerator:
FLOW_MODE_MAP 
FLOW_MODE_HASH 

Definition at line 341 of file pkt_cls.h.

anonymous enum
Enumerator:
TCA_FLOW_UNSPEC 
TCA_FLOW_KEYS 
TCA_FLOW_MODE 
TCA_FLOW_BASECLASS 
TCA_FLOW_RSHIFT 
TCA_FLOW_ADDEND 
TCA_FLOW_MASK 
TCA_FLOW_XOR 
TCA_FLOW_DIVISOR 
TCA_FLOW_ACT 
TCA_FLOW_POLICE 
TCA_FLOW_EMATCHES 
TCA_FLOW_PERTURB 
__TCA_FLOW_MAX 

Definition at line 346 of file pkt_cls.h.

anonymous enum
Enumerator:
TCA_BASIC_UNSPEC 
TCA_BASIC_CLASSID 
TCA_BASIC_EMATCHES 
TCA_BASIC_ACT 
TCA_BASIC_POLICE 
__TCA_BASIC_MAX 

Definition at line 367 of file pkt_cls.h.

anonymous enum
Enumerator:
TCA_CGROUP_UNSPEC 
TCA_CGROUP_ACT 
TCA_CGROUP_POLICE 
TCA_CGROUP_EMATCHES 
__TCA_CGROUP_MAX 

Definition at line 381 of file pkt_cls.h.

anonymous enum
Enumerator:
TCA_EMATCH_TREE_UNSPEC 
TCA_EMATCH_TREE_HDR 
TCA_EMATCH_TREE_LIST 
__TCA_EMATCH_TREE_MAX 

Definition at line 398 of file pkt_cls.h.

anonymous enum
Enumerator:
TCF_LAYER_LINK 
TCF_LAYER_NETWORK 
TCF_LAYER_TRANSPORT 
__TCF_LAYER_MAX 

Definition at line 436 of file pkt_cls.h.

anonymous enum
Enumerator:
TCF_EM_PROG_TC 

Definition at line 459 of file pkt_cls.h.

anonymous enum
Enumerator:
TCF_EM_OPND_EQ 
TCF_EM_OPND_GT 
TCF_EM_OPND_LT 

Definition at line 463 of file pkt_cls.h.