Lines Matching refs:flow_pay
685 struct nfp_fl_payload *flow_pay) in nfp_fl_merge_actions_offload() argument
777 err = nfp_flower_compile_action(priv->app, a_rule, netdev, flow_pay, NULL); in nfp_fl_merge_actions_offload()
790 struct nfp_fl_payload *flow_pay; in nfp_fl_ct_add_offload() local
825 flow_pay = nfp_flower_allocate_new(&key_layer); in nfp_fl_ct_add_offload()
826 if (!flow_pay) in nfp_fl_ct_add_offload()
829 memset(flow_pay->unmasked_data, 0, key_layer.key_size); in nfp_fl_ct_add_offload()
830 memset(flow_pay->mask_data, 0, key_layer.key_size); in nfp_fl_ct_add_offload()
832 kdata = flow_pay->unmasked_data; in nfp_fl_ct_add_offload()
833 mdata = flow_pay->mask_data; in nfp_fl_ct_add_offload()
970 flow_pay->nfp_tun_ipv6 = entry; in nfp_fl_ct_add_offload()
983 flow_pay->nfp_tun_ipv4_addr = dst; in nfp_fl_ct_add_offload()
1011 flow_pay->nfp_tun_ipv6 = entry; in nfp_fl_ct_add_offload()
1024 flow_pay->nfp_tun_ipv4_addr = dst; in nfp_fl_ct_add_offload()
1038 err = nfp_fl_merge_actions_offload(rules, priv, netdev, flow_pay); in nfp_fl_ct_add_offload()
1047 flow_pay->tc_flower_cookie = ((unsigned long)flow_pay) | 0x1; in nfp_fl_ct_add_offload()
1048 err = nfp_compile_flow_metadata(priv->app, flow_pay->tc_flower_cookie, in nfp_fl_ct_add_offload()
1049 flow_pay, netdev, NULL); in nfp_fl_ct_add_offload()
1056 err = rhashtable_insert_fast(&priv->flow_table, &flow_pay->fl_node, in nfp_fl_ct_add_offload()
1061 err = nfp_flower_xmit_flow(priv->app, flow_pay, in nfp_fl_ct_add_offload()
1066 m_entry->tc_flower_cookie = flow_pay->tc_flower_cookie; in nfp_fl_ct_add_offload()
1067 m_entry->flow_pay = flow_pay; in nfp_fl_ct_add_offload()
1076 &flow_pay->fl_node, in nfp_fl_ct_add_offload()
1079 nfp_modify_flow_metadata(priv->app, flow_pay); in nfp_fl_ct_add_offload()
1081 if (flow_pay->nfp_tun_ipv4_addr) in nfp_fl_ct_add_offload()
1082 nfp_tunnel_del_ipv4_off(priv->app, flow_pay->nfp_tun_ipv4_addr); in nfp_fl_ct_add_offload()
1083 if (flow_pay->nfp_tun_ipv6) in nfp_fl_ct_add_offload()
1084 nfp_tunnel_put_ipv6_off(priv->app, flow_pay->nfp_tun_ipv6); in nfp_fl_ct_add_offload()
1085 kfree(flow_pay->action_data); in nfp_fl_ct_add_offload()
1086 kfree(flow_pay->mask_data); in nfp_fl_ct_add_offload()
1087 kfree(flow_pay->unmasked_data); in nfp_fl_ct_add_offload()
1088 kfree(flow_pay); in nfp_fl_ct_add_offload()
1096 struct nfp_fl_payload *flow_pay; in nfp_fl_ct_del_offload() local
1103 flow_pay = nfp_flower_search_fl_table(app, cookie, netdev); in nfp_fl_ct_del_offload()
1104 if (!flow_pay) in nfp_fl_ct_del_offload()
1107 err = nfp_modify_flow_metadata(app, flow_pay); in nfp_fl_ct_del_offload()
1111 if (flow_pay->nfp_tun_ipv4_addr) in nfp_fl_ct_del_offload()
1112 nfp_tunnel_del_ipv4_off(app, flow_pay->nfp_tun_ipv4_addr); in nfp_fl_ct_del_offload()
1114 if (flow_pay->nfp_tun_ipv6) in nfp_fl_ct_del_offload()
1115 nfp_tunnel_put_ipv6_off(app, flow_pay->nfp_tun_ipv6); in nfp_fl_ct_del_offload()
1117 if (!flow_pay->in_hw) { in nfp_fl_ct_del_offload()
1122 err = nfp_flower_xmit_flow(app, flow_pay, in nfp_fl_ct_del_offload()
1126 nfp_flower_del_linked_merge_flows(app, flow_pay); in nfp_fl_ct_del_offload()
1129 kfree(flow_pay->action_data); in nfp_fl_ct_del_offload()
1130 kfree(flow_pay->mask_data); in nfp_fl_ct_del_offload()
1131 kfree(flow_pay->unmasked_data); in nfp_fl_ct_del_offload()
1133 &flow_pay->fl_node, in nfp_fl_ct_del_offload()
1135 kfree_rcu(flow_pay, rcu); in nfp_fl_ct_del_offload()
1843 nfp_flow = nft_merge->flow_pay; in nfp_fl_ct_sub_stats()