| 1082 | } |
| 1083 | |
| 1084 | static void |
| 1085 | eval_jslt_jsge(struct bpf_reg_val *trd, struct bpf_reg_val *trs, |
| 1086 | struct bpf_reg_val *frd, struct bpf_reg_val *frs) |
| 1087 | { |
| 1088 | frd->s.min = RTE_MAX(frd->s.min, frs->s.min); |
| 1089 | trd->s.max = RTE_MIN(trd->s.max, trs->s.max - 1); |
| 1090 | } |
| 1091 | |
| 1092 | static const char * |
| 1093 | eval_jcc(struct bpf_verifier *bvf, const struct ebpf_insn *ins) |