Searched refs:acl_block (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum2_mr_tcam.c | 12 struct mlxsw_sp_acl_block *acl_block; member 64 mr_tcam->acl_block, in mlxsw_sp2_mr_tcam_ipv4_init() 114 mr_tcam->acl_block, in mlxsw_sp2_mr_tcam_ipv6_init() 292 mr_tcam->acl_block = mlxsw_sp_acl_block_create(mlxsw_sp, NULL); in mlxsw_sp2_mr_tcam_init() 293 if (!mr_tcam->acl_block) in mlxsw_sp2_mr_tcam_init() 309 mlxsw_sp_acl_block_destroy(mr_tcam->acl_block); in mlxsw_sp2_mr_tcam_init() 319 mlxsw_sp_acl_block_destroy(mr_tcam->acl_block); in mlxsw_sp2_mr_tcam_fini()
|
D | spectrum.c | 1515 mlxsw_sp_setup_tc_cls_flower(struct mlxsw_sp_acl_block *acl_block, in mlxsw_sp_setup_tc_cls_flower() argument 1518 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_acl_block_mlxsw_sp(acl_block); in mlxsw_sp_setup_tc_cls_flower() 1522 return mlxsw_sp_flower_replace(mlxsw_sp, acl_block, f); in mlxsw_sp_setup_tc_cls_flower() 1524 mlxsw_sp_flower_destroy(mlxsw_sp, acl_block, f); in mlxsw_sp_setup_tc_cls_flower() 1527 return mlxsw_sp_flower_stats(mlxsw_sp, acl_block, f); in mlxsw_sp_setup_tc_cls_flower() 1529 return mlxsw_sp_flower_tmplt_create(mlxsw_sp, acl_block, f); in mlxsw_sp_setup_tc_cls_flower() 1531 mlxsw_sp_flower_tmplt_destroy(mlxsw_sp, acl_block, f); in mlxsw_sp_setup_tc_cls_flower() 1578 struct mlxsw_sp_acl_block *acl_block = cb_priv; in mlxsw_sp_setup_tc_block_cb_flower() local 1584 if (mlxsw_sp_acl_block_disabled(acl_block)) in mlxsw_sp_setup_tc_block_cb_flower() 1587 return mlxsw_sp_setup_tc_cls_flower(acl_block, type_data); in mlxsw_sp_setup_tc_block_cb_flower() [all …]
|
/Linux-v5.4/drivers/net/ethernet/mscc/ |
D | ocelot_ace.c | 15 static struct ocelot_acl_block *acl_block; variable 650 ocelot_ace_rule_add(acl_block, rule); in ocelot_ace_rule_offload_add() 653 index = ocelot_ace_rule_get_index_id(acl_block, rule); in ocelot_ace_rule_offload_add() 656 for (i = acl_block->count - 1; i > index; i--) { in ocelot_ace_rule_offload_add() 657 ace = ocelot_ace_rule_get_rule_index(acl_block, i); in ocelot_ace_rule_offload_add() 692 index = ocelot_ace_rule_get_index_id(acl_block, rule); in ocelot_ace_rule_offload_del() 695 ocelot_ace_rule_del(acl_block, rule); in ocelot_ace_rule_offload_del() 698 for (i = index; i < acl_block->count; i++) { in ocelot_ace_rule_offload_del() 699 ace = ocelot_ace_rule_get_rule_index(acl_block, i); in ocelot_ace_rule_offload_del() 704 is2_entry_set(rule->port->ocelot, acl_block->count, &del_ace); in ocelot_ace_rule_offload_del() [all …]
|