Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum2_mr_tcam.c18 struct mlxsw_sp2_mr_tcam *mr_tcam; member
22 mlxsw_sp2_mr_tcam_proto_ruleset(struct mlxsw_sp2_mr_tcam *mr_tcam, in mlxsw_sp2_mr_tcam_proto_ruleset() argument
27 return mr_tcam->ruleset4; in mlxsw_sp2_mr_tcam_proto_ruleset()
29 return mr_tcam->ruleset6; in mlxsw_sp2_mr_tcam_proto_ruleset()
54 static int mlxsw_sp2_mr_tcam_ipv4_init(struct mlxsw_sp2_mr_tcam *mr_tcam) in mlxsw_sp2_mr_tcam_ipv4_init() argument
63 mr_tcam->ruleset4 = mlxsw_sp_acl_ruleset_get(mr_tcam->mlxsw_sp, in mlxsw_sp2_mr_tcam_ipv4_init()
64 mr_tcam->flow_block, in mlxsw_sp2_mr_tcam_ipv4_init()
69 if (IS_ERR(mr_tcam->ruleset4)) in mlxsw_sp2_mr_tcam_ipv4_init()
70 return PTR_ERR(mr_tcam->ruleset4); in mlxsw_sp2_mr_tcam_ipv4_init()
73 err = mlxsw_sp2_mr_tcam_bind_group(mr_tcam->mlxsw_sp, in mlxsw_sp2_mr_tcam_ipv4_init()
[all …]
Dspectrum1_mr_tcam.c83 mlxsw_sp1_mr_tcam_protocol_region(struct mlxsw_sp1_mr_tcam *mr_tcam, in mlxsw_sp1_mr_tcam_protocol_region() argument
86 return &mr_tcam->tcam_regions[proto]; in mlxsw_sp1_mr_tcam_protocol_region()
90 mlxsw_sp1_mr_tcam_route_parman_item_add(struct mlxsw_sp1_mr_tcam *mr_tcam, in mlxsw_sp1_mr_tcam_route_parman_item_add() argument
98 tcam_region = mlxsw_sp1_mr_tcam_protocol_region(mr_tcam, key->proto); in mlxsw_sp1_mr_tcam_route_parman_item_add()
110 mlxsw_sp1_mr_tcam_route_parman_item_remove(struct mlxsw_sp1_mr_tcam *mr_tcam, in mlxsw_sp1_mr_tcam_route_parman_item_remove() argument
116 tcam_region = mlxsw_sp1_mr_tcam_protocol_region(mr_tcam, key->proto); in mlxsw_sp1_mr_tcam_route_parman_item_remove()
129 struct mlxsw_sp1_mr_tcam *mr_tcam = priv; in mlxsw_sp1_mr_tcam_route_create() local
132 err = mlxsw_sp1_mr_tcam_route_parman_item_add(mr_tcam, route, in mlxsw_sp1_mr_tcam_route_create()
144 mlxsw_sp1_mr_tcam_route_parman_item_remove(mr_tcam, route, key); in mlxsw_sp1_mr_tcam_route_create()
154 struct mlxsw_sp1_mr_tcam *mr_tcam = priv; in mlxsw_sp1_mr_tcam_route_destroy() local
[all …]
Dspectrum_mr_tcam.c285 struct mlxsw_sp_mr_tcam *mr_tcam = priv; in mlxsw_sp_mr_tcam_route_create() local
324 err = ops->route_create(mlxsw_sp, mr_tcam->priv, route->priv, in mlxsw_sp_mr_tcam_route_create()
348 struct mlxsw_sp_mr_tcam *mr_tcam = priv; in mlxsw_sp_mr_tcam_route_destroy() local
350 ops->route_destroy(mlxsw_sp, mr_tcam->priv, route->priv, &route->key); in mlxsw_sp_mr_tcam_route_destroy()
572 struct mlxsw_sp_mr_tcam *mr_tcam = priv; in mlxsw_sp_mr_tcam_init() local
578 mr_tcam->priv = kzalloc(ops->priv_size, GFP_KERNEL); in mlxsw_sp_mr_tcam_init()
579 if (!mr_tcam->priv) in mlxsw_sp_mr_tcam_init()
582 err = ops->init(mlxsw_sp, mr_tcam->priv); in mlxsw_sp_mr_tcam_init()
588 kfree(mr_tcam->priv); in mlxsw_sp_mr_tcam_init()
595 struct mlxsw_sp_mr_tcam *mr_tcam = priv; in mlxsw_sp_mr_tcam_fini() local
[all …]