Lines Matching refs:nfp_flow
306 struct nfp_fl_payload *nfp_flow, in nfp_compile_flow_metadata() argument
323 nfp_flow->meta.host_ctx_id = cpu_to_be32(stats_cxt); in nfp_compile_flow_metadata()
324 nfp_flow->meta.host_cookie = cpu_to_be64(cookie); in nfp_compile_flow_metadata()
325 nfp_flow->ingress_dev = netdev; in nfp_compile_flow_metadata()
334 ctx_entry->flow = nfp_flow; in nfp_compile_flow_metadata()
348 if (!nfp_flow->pre_tun_rule.dev && in nfp_compile_flow_metadata()
349 !nfp_check_mask_add(app, nfp_flow->mask_data, in nfp_compile_flow_metadata()
350 nfp_flow->meta.mask_len, in nfp_compile_flow_metadata()
351 &nfp_flow->meta.flags, &new_mask_id)) { in nfp_compile_flow_metadata()
357 nfp_flow->meta.flow_version = cpu_to_be64(priv->flower_version); in nfp_compile_flow_metadata()
361 nfp_flow->unmasked_data[NFP_FL_MASK_ID_LOCATION] = new_mask_id; in nfp_compile_flow_metadata()
376 if (!nfp_flow->pre_tun_rule.dev) in nfp_compile_flow_metadata()
377 nfp_check_mask_remove(app, nfp_flow->mask_data, in nfp_compile_flow_metadata()
378 nfp_flow->meta.mask_len, in nfp_compile_flow_metadata()
393 struct nfp_fl_payload *nfp_flow) in __nfp_modify_flow_metadata() argument
395 nfp_flow->meta.flags &= ~NFP_FL_META_FLAG_MANAGE_MASK; in __nfp_modify_flow_metadata()
396 nfp_flow->meta.flow_version = cpu_to_be64(priv->flower_version); in __nfp_modify_flow_metadata()
401 struct nfp_fl_payload *nfp_flow) in nfp_modify_flow_metadata() argument
408 __nfp_modify_flow_metadata(priv, nfp_flow); in nfp_modify_flow_metadata()
410 if (!nfp_flow->pre_tun_rule.dev) in nfp_modify_flow_metadata()
411 nfp_check_mask_remove(app, nfp_flow->mask_data, in nfp_modify_flow_metadata()
412 nfp_flow->meta.mask_len, &nfp_flow->meta.flags, in nfp_modify_flow_metadata()
416 nfp_flow->unmasked_data[NFP_FL_MASK_ID_LOCATION] = new_mask_id; in nfp_modify_flow_metadata()
419 temp_ctx_id = be32_to_cpu(nfp_flow->meta.host_ctx_id); in nfp_modify_flow_metadata()