Searched refs:ct_ft (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.1/net/sched/ |
D | act_ct.c | 282 struct tcf_ct_flow_table *ct_ft; in tcf_ct_flow_table_get() local 286 ct_ft = rhashtable_lookup_fast(&zones_ht, ¶ms->zone, zones_params); in tcf_ct_flow_table_get() 287 if (ct_ft && refcount_inc_not_zero(&ct_ft->ref)) in tcf_ct_flow_table_get() 290 ct_ft = kzalloc(sizeof(*ct_ft), GFP_KERNEL); in tcf_ct_flow_table_get() 291 if (!ct_ft) in tcf_ct_flow_table_get() 293 refcount_set(&ct_ft->ref, 1); in tcf_ct_flow_table_get() 295 ct_ft->zone = params->zone; in tcf_ct_flow_table_get() 296 err = rhashtable_insert_fast(&zones_ht, &ct_ft->node, zones_params); in tcf_ct_flow_table_get() 300 ct_ft->nf_ft.type = &flowtable_ct; in tcf_ct_flow_table_get() 301 ct_ft->nf_ft.flags |= NF_FLOWTABLE_HW_OFFLOAD | in tcf_ct_flow_table_get() [all …]
|
/Linux-v6.1/include/net/tc_act/ |
D | tc_ct.h | 29 struct tcf_ct_flow_table *ct_ft; member
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_ct.c | 1448 static int tc_ct_pre_ct_add_rules(struct mlx5_ct_ft *ct_ft, in tc_ct_pre_ct_add_rules() argument 1452 struct mlx5_tc_ct_priv *ct_priv = ct_ft->ct_priv; in tc_ct_pre_ct_add_rules() 1469 zone = ct_ft->zone & MLX5_CT_ZONE_MASK; in tc_ct_pre_ct_add_rules() 1536 tc_ct_pre_ct_del_rules(struct mlx5_ct_ft *ct_ft, in tc_ct_pre_ct_del_rules() argument 1539 struct mlx5_tc_ct_priv *ct_priv = ct_ft->ct_priv; in tc_ct_pre_ct_del_rules() 1548 mlx5_tc_ct_alloc_pre_ct(struct mlx5_ct_ft *ct_ft, in mlx5_tc_ct_alloc_pre_ct() argument 1553 struct mlx5_tc_ct_priv *ct_priv = ct_ft->ct_priv; in mlx5_tc_ct_alloc_pre_ct() 1625 err = tc_ct_pre_ct_add_rules(ct_ft, pre_ct, nat); in mlx5_tc_ct_alloc_pre_ct() 1644 mlx5_tc_ct_free_pre_ct(struct mlx5_ct_ft *ct_ft, in mlx5_tc_ct_free_pre_ct() argument 1647 tc_ct_pre_ct_del_rules(ct_ft, pre_ct); in mlx5_tc_ct_free_pre_ct()
|