Lines Matching refs:cmp
20 static inline int cmp_needs_transformation(struct tcf_em_cmp *cmp) in cmp_needs_transformation() argument
22 return unlikely(cmp->flags & TCF_EM_CMP_TRANS); in cmp_needs_transformation()
28 struct tcf_em_cmp *cmp = (struct tcf_em_cmp *) em->data; in em_cmp_match() local
29 unsigned char *ptr = tcf_get_base_ptr(skb, cmp->layer) + cmp->off; in em_cmp_match()
32 if (!tcf_valid_offset(skb, ptr, cmp->align)) in em_cmp_match()
35 switch (cmp->align) { in em_cmp_match()
43 if (cmp_needs_transformation(cmp)) in em_cmp_match()
53 if (cmp_needs_transformation(cmp)) in em_cmp_match()
61 if (cmp->mask) in em_cmp_match()
62 val &= cmp->mask; in em_cmp_match()
64 switch (cmp->opnd) { in em_cmp_match()
66 return val == cmp->val; in em_cmp_match()
68 return val < cmp->val; in em_cmp_match()
70 return val > cmp->val; in em_cmp_match()