Home
last modified time | relevance | path

Searched refs:nfp_flow (Results 1 – 6 of 6) sorted by relevance

/drivers/net/ethernet/netronome/nfp/flower/
Dmetadata.c294 struct nfp_fl_payload *nfp_flow, in nfp_compile_flow_metadata() argument
311 nfp_flow->meta.host_ctx_id = cpu_to_be32(stats_cxt); in nfp_compile_flow_metadata()
312 nfp_flow->meta.host_cookie = cpu_to_be64(cookie); in nfp_compile_flow_metadata()
313 nfp_flow->ingress_dev = netdev; in nfp_compile_flow_metadata()
322 ctx_entry->flow = nfp_flow; in nfp_compile_flow_metadata()
336 if (!nfp_flow->pre_tun_rule.dev && in nfp_compile_flow_metadata()
337 !nfp_check_mask_add(app, nfp_flow->mask_data, in nfp_compile_flow_metadata()
338 nfp_flow->meta.mask_len, in nfp_compile_flow_metadata()
339 &nfp_flow->meta.flags, &new_mask_id)) { in nfp_compile_flow_metadata()
350 nfp_flow->meta.flow_version = cpu_to_be64(priv->flower_version); in nfp_compile_flow_metadata()
[all …]
Doffload.c95 nfp_flower_xmit_flow(struct nfp_app *app, struct nfp_fl_payload *nfp_flow, in nfp_flower_xmit_flow() argument
103 key_len = nfp_flow->meta.key_len; in nfp_flower_xmit_flow()
104 mask_len = nfp_flow->meta.mask_len; in nfp_flower_xmit_flow()
105 act_len = nfp_flow->meta.act_len; in nfp_flower_xmit_flow()
112 nfp_flow->meta.key_len >>= NFP_FL_LW_SIZ; in nfp_flower_xmit_flow()
113 nfp_flow->meta.mask_len >>= NFP_FL_LW_SIZ; in nfp_flower_xmit_flow()
114 nfp_flow->meta.act_len >>= NFP_FL_LW_SIZ; in nfp_flower_xmit_flow()
121 memcpy(msg, &nfp_flow->meta, meta_len); in nfp_flower_xmit_flow()
122 memcpy(&msg[meta_len], nfp_flow->unmasked_data, key_len); in nfp_flower_xmit_flow()
123 memcpy(&msg[meta_len + key_len], nfp_flow->mask_data, mask_len); in nfp_flower_xmit_flow()
[all …]
Daction.c134 struct nfp_fl_payload *nfp_flow, int act_len, in nfp_fl_pre_lag() argument
155 memmove(nfp_flow->action_data + act_size, in nfp_fl_pre_lag()
156 nfp_flow->action_data, act_len); in nfp_fl_pre_lag()
158 pre_lag = (struct nfp_fl_pre_lag *)nfp_flow->action_data; in nfp_fl_pre_lag()
166 nfp_flow->meta.shortcut = cpu_to_be32(NFP_FL_SC_ACT_NULL); in nfp_fl_pre_lag()
174 struct nfp_fl_payload *nfp_flow, in nfp_fl_output() argument
228 if (nfp_flow->pre_tun_rule.dev || !pkt_host) { in nfp_fl_output()
233 nfp_flow->pre_tun_rule.dev = out_dev; in nfp_fl_output()
259 nfp_flow->meta.shortcut = output->port; in nfp_fl_output()
1199 struct nfp_fl_payload *nfp_flow, in nfp_flower_compile_action() argument
[all …]
Dmain.h476 struct nfp_fl_payload *nfp_flow,
482 struct nfp_fl_payload *nfp_flow,
485 struct nfp_fl_payload *nfp_flow,
489 struct nfp_fl_payload *nfp_flow);
491 struct nfp_fl_payload *nfp_flow);
569 nfp_flower_xmit_flow(struct nfp_app *app, struct nfp_fl_payload *nfp_flow,
Dmatch.c517 struct nfp_fl_payload *nfp_flow, in nfp_flower_compile_flow_match() argument
531 memset(nfp_flow->unmasked_data, 0, key_ls->key_size); in nfp_flower_compile_flow_match()
532 memset(nfp_flow->mask_data, 0, key_ls->key_size); in nfp_flower_compile_flow_match()
534 ext = nfp_flow->unmasked_data; in nfp_flower_compile_flow_match()
535 msk = nfp_flow->mask_data; in nfp_flower_compile_flow_match()
630 nfp_flow->nfp_tun_ipv6 = entry; in nfp_flower_compile_flow_match()
643 nfp_flow->nfp_tun_ipv4_addr = dst; in nfp_flower_compile_flow_match()
666 nfp_flow->nfp_tun_ipv6 = entry; in nfp_flower_compile_flow_match()
679 nfp_flow->nfp_tun_ipv4_addr = dst; in nfp_flower_compile_flow_match()
691 ext_len = (u32 *)ext - (u32 *)nfp_flow->unmasked_data; in nfp_flower_compile_flow_match()
Dconntrack.c1534 struct nfp_fl_payload *nfp_flow; in nfp_fl_ct_sub_stats() local
1537 nfp_flow = nft_merge->flow_pay; in nfp_fl_ct_sub_stats()
1538 if (!nfp_flow) in nfp_fl_ct_sub_stats()
1541 ctx_id = be32_to_cpu(nfp_flow->meta.host_ctx_id); in nfp_fl_ct_sub_stats()
1549 if (!list_empty(&nfp_flow->linked_flows)) in nfp_fl_ct_sub_stats()
1550 nfp_flower_update_merge_stats(priv->app, nfp_flow); in nfp_fl_ct_sub_stats()