Searched refs:adjust_head (Results 1 - 4 of 4) sorted by relevance

/linux-master/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.c213 nfp_err(cpp, "truncated adjust_head TLV: %d\n", length);
217 bpf->adjust_head.flags = readl(&cap->flags);
218 bpf->adjust_head.off_min = readl(&cap->off_min);
219 bpf->adjust_head.off_max = readl(&cap->off_max);
220 bpf->adjust_head.guaranteed_sub = readl(&cap->guaranteed_sub);
221 bpf->adjust_head.guaranteed_add = readl(&cap->guaranteed_add);
223 if (bpf->adjust_head.off_min > bpf->adjust_head.off_max) {
224 nfp_err(cpp, "invalid adjust_head TLV: min > max\n");
227 if (!FIELD_FIT(UR_REG_IMM_MAX, bpf->adjust_head
[all...]
H A Dverifier.c65 if (imm > (int)bpf->adjust_head.guaranteed_add ||
66 imm < -bpf->adjust_head.guaranteed_sub)
182 if (!bpf->adjust_head.off_max) {
183 pr_vlog(env, "adjust_head not supported by FW\n");
186 if (!(bpf->adjust_head.flags & NFP_BPF_ADJUST_HEAD_NO_META)) {
187 pr_vlog(env, "adjust_head: FW requires shifting metadata, not supported by the driver\n");
H A Dmain.h104 * @adjust_head: adjust head capability
105 * @adjust_head.flags: extra flags for adjust head
106 * @adjust_head.off_min: minimal packet offset within buffer required
107 * @adjust_head.off_max: maximum packet offset within buffer required
108 * @adjust_head.guaranteed_sub: negative adjustment guaranteed possible
109 * @adjust_head.guaranteed_add: positive adjustment guaranteed possible
155 } adjust_head; member in struct:nfp_app_bpf
H A Djit.c1600 static int adjust_head(struct nfp_prog *nfp_prog, struct nfp_insn_meta *meta) function
1603 struct nfp_bpf_cap_adjust_head *adjust_head; local
1606 adjust_head = &nfp_prog->bpf->adjust_head;
1639 tmp, ALU_OP_SUB, reg_imm(adjust_head->off_min));
1642 reg_imm(adjust_head->off_max), ALU_OP_SUB, tmp);
3351 return adjust_head(nfp_prog, meta);

Completed in 144 milliseconds