Home | History | Annotate | Download | only in ematch

Lines Matching refs:cmp

2  * lib/route/cls/ematch/cmp.c	Simple packet data comparison ematch
36 static const char *align_txt(struct tcf_em_cmp *cmp)
38 switch (cmp->align) {
42 return (cmp->flags & TCF_EM_CMP_TRANS) ? "h16" : "u16";
44 return (cmp->flags & TCF_EM_CMP_TRANS) ? "h32" : "u32";
46 return (cmp->flags & TCF_EM_CMP_TRANS) ? "h?" : "u?";
50 static const char *layer_txt(struct tcf_em_cmp *cmp)
52 switch (cmp->layer) {
64 static const char *relation_txt(struct tcf_em_cmp *cmp)
66 switch (cmp->opnd) {
87 struct tcf_em_cmp *cmp = rtnl_ematch_data(m);
90 align_txt(cmp), layer_txt(cmp), cmp->off);
92 if (cmp->mask)
93 nl_dump(p, "& 0x%x ", cmp->mask);
95 nl_dump(p, "%s %u", relation_txt(cmp), cmp->val);
100 .eo_name = "cmp",