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.c306 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()
[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
229 if (nfp_flow->pre_tun_rule.dev || !pkt_host) { in nfp_fl_output()
234 nfp_flow->pre_tun_rule.dev = out_dev; in nfp_fl_output()
260 nfp_flow->meta.shortcut = output->port; in nfp_fl_output()
1260 struct nfp_fl_payload *nfp_flow, in nfp_flower_compile_action() argument
[all …]
Dmatch.c540 struct nfp_fl_payload *nfp_flow, in nfp_flower_compile_flow_match() argument
554 memset(nfp_flow->unmasked_data, 0, key_ls->key_size); in nfp_flower_compile_flow_match()
555 memset(nfp_flow->mask_data, 0, key_ls->key_size); in nfp_flower_compile_flow_match()
557 ext = nfp_flow->unmasked_data; in nfp_flower_compile_flow_match()
558 msk = nfp_flow->mask_data; in nfp_flower_compile_flow_match()
653 nfp_flow->nfp_tun_ipv6 = entry; in nfp_flower_compile_flow_match()
666 nfp_flow->nfp_tun_ipv4_addr = dst; in nfp_flower_compile_flow_match()
689 nfp_flow->nfp_tun_ipv6 = entry; in nfp_flower_compile_flow_match()
702 nfp_flow->nfp_tun_ipv4_addr = dst; in nfp_flower_compile_flow_match()
714 ext_len = (u32 *)ext - (u32 *)nfp_flow->unmasked_data; in nfp_flower_compile_flow_match()
Dmain.h597 struct nfp_fl_payload *nfp_flow,
603 struct nfp_fl_payload *nfp_flow,
606 struct nfp_fl_payload *nfp_flow,
610 struct nfp_fl_payload *nfp_flow);
612 struct nfp_fl_payload *nfp_flow);
694 nfp_flower_xmit_flow(struct nfp_app *app, struct nfp_fl_payload *nfp_flow,
Dconntrack.c1860 struct nfp_fl_payload *nfp_flow; in nfp_fl_ct_sub_stats() local
1863 nfp_flow = nft_merge->flow_pay; in nfp_fl_ct_sub_stats()
1864 if (!nfp_flow) in nfp_fl_ct_sub_stats()
1867 ctx_id = be32_to_cpu(nfp_flow->meta.host_ctx_id); in nfp_fl_ct_sub_stats()
1875 if (!list_empty(&nfp_flow->linked_flows)) in nfp_fl_ct_sub_stats()
1876 nfp_flower_update_merge_stats(priv->app, nfp_flow); in nfp_fl_ct_sub_stats()