Home
last modified time | relevance | path

Searched refs:ct_ft (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.15/net/sched/
Dact_ct.c281 struct tcf_ct_flow_table *ct_ft; in tcf_ct_flow_table_get() local
285 ct_ft = rhashtable_lookup_fast(&zones_ht, &params->zone, zones_params); in tcf_ct_flow_table_get()
286 if (ct_ft && refcount_inc_not_zero(&ct_ft->ref)) in tcf_ct_flow_table_get()
289 ct_ft = kzalloc(sizeof(*ct_ft), GFP_KERNEL); in tcf_ct_flow_table_get()
290 if (!ct_ft) in tcf_ct_flow_table_get()
292 refcount_set(&ct_ft->ref, 1); in tcf_ct_flow_table_get()
294 ct_ft->zone = params->zone; in tcf_ct_flow_table_get()
295 err = rhashtable_insert_fast(&zones_ht, &ct_ft->node, zones_params); in tcf_ct_flow_table_get()
299 ct_ft->nf_ft.type = &flowtable_ct; in tcf_ct_flow_table_get()
300 ct_ft->nf_ft.flags |= NF_FLOWTABLE_HW_OFFLOAD | in tcf_ct_flow_table_get()
[all …]
/Linux-v5.15/include/net/tc_act/
Dtc_ct.h29 struct tcf_ct_flow_table *ct_ft; member
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_ct.c1375 static int tc_ct_pre_ct_add_rules(struct mlx5_ct_ft *ct_ft, in tc_ct_pre_ct_add_rules() argument
1379 struct mlx5_tc_ct_priv *ct_priv = ct_ft->ct_priv; in tc_ct_pre_ct_add_rules()
1396 zone = ct_ft->zone & MLX5_CT_ZONE_MASK; in tc_ct_pre_ct_add_rules()
1463 tc_ct_pre_ct_del_rules(struct mlx5_ct_ft *ct_ft, in tc_ct_pre_ct_del_rules() argument
1466 struct mlx5_tc_ct_priv *ct_priv = ct_ft->ct_priv; in tc_ct_pre_ct_del_rules()
1475 mlx5_tc_ct_alloc_pre_ct(struct mlx5_ct_ft *ct_ft, in mlx5_tc_ct_alloc_pre_ct() argument
1480 struct mlx5_tc_ct_priv *ct_priv = ct_ft->ct_priv; in mlx5_tc_ct_alloc_pre_ct()
1552 err = tc_ct_pre_ct_add_rules(ct_ft, pre_ct, nat); in mlx5_tc_ct_alloc_pre_ct()
1571 mlx5_tc_ct_free_pre_ct(struct mlx5_ct_ft *ct_ft, in mlx5_tc_ct_free_pre_ct() argument
1574 tc_ct_pre_ct_del_rules(ct_ft, pre_ct); in mlx5_tc_ct_free_pre_ct()