Lines Matching refs:flow_pay
712 struct nfp_fl_payload *flow_pay, in nfp_fl_merge_actions_offload() argument
805 err = nfp_flower_compile_action(priv->app, a_rule, netdev, flow_pay, NULL); in nfp_fl_merge_actions_offload()
820 struct nfp_fl_payload *flow_pay; in nfp_fl_ct_add_offload() local
861 flow_pay = nfp_flower_allocate_new(&key_layer); in nfp_fl_ct_add_offload()
862 if (!flow_pay) in nfp_fl_ct_add_offload()
865 memset(flow_pay->unmasked_data, 0, key_layer.key_size); in nfp_fl_ct_add_offload()
866 memset(flow_pay->mask_data, 0, key_layer.key_size); in nfp_fl_ct_add_offload()
868 kdata = flow_pay->unmasked_data; in nfp_fl_ct_add_offload()
869 mdata = flow_pay->mask_data; in nfp_fl_ct_add_offload()
1006 flow_pay->nfp_tun_ipv6 = entry; in nfp_fl_ct_add_offload()
1019 flow_pay->nfp_tun_ipv4_addr = dst; in nfp_fl_ct_add_offload()
1047 flow_pay->nfp_tun_ipv6 = entry; in nfp_fl_ct_add_offload()
1060 flow_pay->nfp_tun_ipv4_addr = dst; in nfp_fl_ct_add_offload()
1074 err = nfp_fl_merge_actions_offload(rules, priv, netdev, flow_pay, num_rules); in nfp_fl_ct_add_offload()
1083 flow_pay->tc_flower_cookie = ((unsigned long)flow_pay) | 0x1; in nfp_fl_ct_add_offload()
1084 err = nfp_compile_flow_metadata(priv->app, flow_pay->tc_flower_cookie, in nfp_fl_ct_add_offload()
1085 flow_pay, netdev, NULL); in nfp_fl_ct_add_offload()
1092 err = rhashtable_insert_fast(&priv->flow_table, &flow_pay->fl_node, in nfp_fl_ct_add_offload()
1097 err = nfp_flower_xmit_flow(priv->app, flow_pay, in nfp_fl_ct_add_offload()
1102 m_entry->tc_flower_cookie = flow_pay->tc_flower_cookie; in nfp_fl_ct_add_offload()
1103 m_entry->flow_pay = flow_pay; in nfp_fl_ct_add_offload()
1112 &flow_pay->fl_node, in nfp_fl_ct_add_offload()
1115 nfp_modify_flow_metadata(priv->app, flow_pay); in nfp_fl_ct_add_offload()
1117 if (flow_pay->nfp_tun_ipv4_addr) in nfp_fl_ct_add_offload()
1118 nfp_tunnel_del_ipv4_off(priv->app, flow_pay->nfp_tun_ipv4_addr); in nfp_fl_ct_add_offload()
1119 if (flow_pay->nfp_tun_ipv6) in nfp_fl_ct_add_offload()
1120 nfp_tunnel_put_ipv6_off(priv->app, flow_pay->nfp_tun_ipv6); in nfp_fl_ct_add_offload()
1121 kfree(flow_pay->action_data); in nfp_fl_ct_add_offload()
1122 kfree(flow_pay->mask_data); in nfp_fl_ct_add_offload()
1123 kfree(flow_pay->unmasked_data); in nfp_fl_ct_add_offload()
1124 kfree(flow_pay); in nfp_fl_ct_add_offload()
1132 struct nfp_fl_payload *flow_pay; in nfp_fl_ct_del_offload() local
1139 flow_pay = nfp_flower_search_fl_table(app, cookie, netdev); in nfp_fl_ct_del_offload()
1140 if (!flow_pay) in nfp_fl_ct_del_offload()
1143 err = nfp_modify_flow_metadata(app, flow_pay); in nfp_fl_ct_del_offload()
1147 if (flow_pay->nfp_tun_ipv4_addr) in nfp_fl_ct_del_offload()
1148 nfp_tunnel_del_ipv4_off(app, flow_pay->nfp_tun_ipv4_addr); in nfp_fl_ct_del_offload()
1150 if (flow_pay->nfp_tun_ipv6) in nfp_fl_ct_del_offload()
1151 nfp_tunnel_put_ipv6_off(app, flow_pay->nfp_tun_ipv6); in nfp_fl_ct_del_offload()
1153 if (!flow_pay->in_hw) { in nfp_fl_ct_del_offload()
1158 err = nfp_flower_xmit_flow(app, flow_pay, in nfp_fl_ct_del_offload()
1162 nfp_flower_del_linked_merge_flows(app, flow_pay); in nfp_fl_ct_del_offload()
1165 kfree(flow_pay->action_data); in nfp_fl_ct_del_offload()
1166 kfree(flow_pay->mask_data); in nfp_fl_ct_del_offload()
1167 kfree(flow_pay->unmasked_data); in nfp_fl_ct_del_offload()
1169 &flow_pay->fl_node, in nfp_fl_ct_del_offload()
1171 kfree_rcu(flow_pay, rcu); in nfp_fl_ct_del_offload()
1956 nfp_flow = nft_merge->flow_pay; in nfp_fl_ct_sub_stats()