Lines Matching refs:ct_entry

1582 	map->ct_entry = entry;  in nfp_fl_ct_add_flow()
1633 pre_ct_map_ent.ct_entry = m_entry->next_pre_ct_entry; in cleanup_nft_merge_entry()
1652 struct nfp_fl_ct_flow_entry *ct_entry = entry; in nfp_free_nft_merge_children() local
1654 list_for_each_entry_safe(m_entry, tmp, &ct_entry->children, in nfp_free_nft_merge_children()
1660 struct nfp_fl_ct_tc_merge *ct_entry = entry; in nfp_free_nft_merge_children() local
1662 list_for_each_entry_safe(m_entry, tmp, &ct_entry->children, in nfp_free_nft_merge_children()
1812 struct nfp_fl_ct_flow_entry *ct_entry; in nfp_fl_ct_handle_pre_ct() local
1848 ct_entry = nfp_fl_ct_add_flow(zt, netdev, flow, false, extack); in nfp_fl_ct_handle_pre_ct()
1849 if (IS_ERR(ct_entry)) in nfp_fl_ct_handle_pre_ct()
1850 return PTR_ERR(ct_entry); in nfp_fl_ct_handle_pre_ct()
1851 ct_entry->type = CT_TYPE_PRE_CT; in nfp_fl_ct_handle_pre_ct()
1852 ct_entry->chain_index = flow->common.chain_index; in nfp_fl_ct_handle_pre_ct()
1853 ct_entry->goto_chain_index = ct_goto->chain_index; in nfp_fl_ct_handle_pre_ct()
1861 ct_entry->prev_m_entries[i] = pre_ct_entry->prev_m_entries[i]; in nfp_fl_ct_handle_pre_ct()
1862 ct_entry->prev_m_entries[i++] = m_entry; in nfp_fl_ct_handle_pre_ct()
1863 ct_entry->num_prev_m_entries = i; in nfp_fl_ct_handle_pre_ct()
1865 m_entry->next_pre_ct_entry = ct_entry; in nfp_fl_ct_handle_pre_ct()
1868 list_add(&ct_entry->list_node, &zt->pre_ct_list); in nfp_fl_ct_handle_pre_ct()
1871 nfp_ct_merge_tc_entries(ct_entry, zt, zt); in nfp_fl_ct_handle_pre_ct()
1875 nfp_ct_merge_tc_entries(ct_entry, priv->ct_zone_wc, zt); in nfp_fl_ct_handle_pre_ct()
1886 struct nfp_fl_ct_flow_entry *ct_entry; in nfp_fl_ct_handle_post_ct() local
1929 ct_entry = nfp_fl_ct_add_flow(zt, netdev, flow, false, extack); in nfp_fl_ct_handle_post_ct()
1930 if (IS_ERR(ct_entry)) in nfp_fl_ct_handle_post_ct()
1931 return PTR_ERR(ct_entry); in nfp_fl_ct_handle_post_ct()
1933 ct_entry->type = CT_TYPE_POST_CT; in nfp_fl_ct_handle_post_ct()
1934 ct_entry->chain_index = flow->common.chain_index; in nfp_fl_ct_handle_post_ct()
1936 ct_entry->goto_chain_index = ct_goto ? ct_goto->chain_index : 0; in nfp_fl_ct_handle_post_ct()
1937 list_add(&ct_entry->list_node, &zt->post_ct_list); in nfp_fl_ct_handle_post_ct()
1953 nfp_ct_merge_tc_entries(ct_entry, zone_table, zone_table); in nfp_fl_ct_handle_post_ct()
1959 nfp_ct_merge_tc_entries(ct_entry, zt, zt); in nfp_fl_ct_handle_post_ct()
2066 struct nfp_fl_ct_flow_entry *ct_entry = ct_map_ent->ct_entry; in nfp_fl_ct_stats() local
2073 spin_lock_bh(&ct_entry->zt->priv->stats_lock); in nfp_fl_ct_stats()
2075 if (ct_entry->type == CT_TYPE_PRE_CT) { in nfp_fl_ct_stats()
2077 list_for_each_entry_safe(tc_merge, tc_m_tmp, &ct_entry->children, in nfp_fl_ct_stats()
2096 } else if (ct_entry->type == CT_TYPE_POST_CT) { in nfp_fl_ct_stats()
2098 list_for_each_entry_safe(tc_merge, tc_m_tmp, &ct_entry->children, in nfp_fl_ct_stats()
2119 list_for_each_entry_safe(nft_merge, nft_m_tmp, &ct_entry->children, in nfp_fl_ct_stats()
2129 flow_stats_update(&ct_entry->stats, bytes, pkts, 0, used, in nfp_fl_ct_stats()
2132 flow_stats_update(&flow->stats, ct_entry->stats.bytes, in nfp_fl_ct_stats()
2133 ct_entry->stats.pkts, 0, in nfp_fl_ct_stats()
2134 ct_entry->stats.lastused, in nfp_fl_ct_stats()
2139 ct_entry->stats.pkts = 0; in nfp_fl_ct_stats()
2140 ct_entry->stats.bytes = 0; in nfp_fl_ct_stats()
2141 spin_unlock_bh(&ct_entry->zt->priv->stats_lock); in nfp_fl_ct_stats()
2171 struct nfp_fl_ct_flow_entry *ct_entry; in nfp_fl_ct_offload_nft_flow() local
2186 ct_entry = nfp_fl_ct_add_flow(zt, NULL, flow, true, extack); in nfp_fl_ct_offload_nft_flow()
2187 if (IS_ERR(ct_entry)) in nfp_fl_ct_offload_nft_flow()
2188 return PTR_ERR(ct_entry); in nfp_fl_ct_offload_nft_flow()
2189 ct_entry->type = CT_TYPE_NFT; in nfp_fl_ct_offload_nft_flow()
2190 list_add(&ct_entry->list_node, &zt->nft_flows_list); in nfp_fl_ct_offload_nft_flow()
2192 nfp_ct_merge_nft_with_tc(ct_entry, zt); in nfp_fl_ct_offload_nft_flow()
2250 struct nfp_fl_ct_flow_entry *ct_entry; in nfp_fl_ct_del_flow() local
2258 zt = ct_map_ent->ct_entry->zt; in nfp_fl_ct_del_flow()
2259 ct_entry = ct_map_ent->ct_entry; in nfp_fl_ct_del_flow()
2262 switch (ct_entry->type) { in nfp_fl_ct_del_flow()
2268 nfp_fl_ct_clean_flow_entry(ct_entry); in nfp_fl_ct_del_flow()
2285 nfp_fl_ct_clean_flow_entry(ct_entry); in nfp_fl_ct_del_flow()
2292 nfp_fl_ct_clean_flow_entry(ct_map_ent->ct_entry); in nfp_fl_ct_del_flow()