Lines Matching refs:cmp
16 static inline int cmp_needs_transformation(struct tcf_em_cmp *cmp) in cmp_needs_transformation() argument
18 return unlikely(cmp->flags & TCF_EM_CMP_TRANS); in cmp_needs_transformation()
24 struct tcf_em_cmp *cmp = (struct tcf_em_cmp *) em->data; in em_cmp_match() local
25 unsigned char *ptr = tcf_get_base_ptr(skb, cmp->layer) + cmp->off; in em_cmp_match()
28 if (!tcf_valid_offset(skb, ptr, cmp->align)) in em_cmp_match()
31 switch (cmp->align) { in em_cmp_match()
39 if (cmp_needs_transformation(cmp)) in em_cmp_match()
49 if (cmp_needs_transformation(cmp)) in em_cmp_match()
57 if (cmp->mask) in em_cmp_match()
58 val &= cmp->mask; in em_cmp_match()
60 switch (cmp->opnd) { in em_cmp_match()
62 return val == cmp->val; in em_cmp_match()
64 return val < cmp->val; in em_cmp_match()
66 return val > cmp->val; in em_cmp_match()