Home
last modified time | relevance | path

Searched refs:rulei (Results 1 – 10 of 10) sorted by relevance

/Linux-v6.6/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl.c70 struct mlxsw_sp_acl_rule_info *rulei; member
317 struct mlxsw_sp_acl_rule_info *rulei; in mlxsw_sp_acl_rulei_create() local
320 rulei = kzalloc(sizeof(*rulei), GFP_KERNEL); in mlxsw_sp_acl_rulei_create()
321 if (!rulei) in mlxsw_sp_acl_rulei_create()
325 rulei->act_block = afa_block; in mlxsw_sp_acl_rulei_create()
326 return rulei; in mlxsw_sp_acl_rulei_create()
329 rulei->act_block = mlxsw_afa_block_create(acl->mlxsw_sp->afa); in mlxsw_sp_acl_rulei_create()
330 if (IS_ERR(rulei->act_block)) { in mlxsw_sp_acl_rulei_create()
331 err = PTR_ERR(rulei->act_block); in mlxsw_sp_acl_rulei_create()
334 rulei->action_created = 1; in mlxsw_sp_acl_rulei_create()
[all …]
Dspectrum_flower.c60 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_flower_parse_actions() argument
80 err = mlxsw_sp_acl_rulei_act_count(mlxsw_sp, rulei, extack); in mlxsw_sp_flower_parse_actions()
91 err = mlxsw_sp_acl_rulei_act_terminate(rulei); in mlxsw_sp_flower_parse_actions()
105 err = mlxsw_sp_acl_rulei_act_drop(rulei, ingress, in mlxsw_sp_flower_parse_actions()
117 rulei->egress_bind_blocker = 1; in mlxsw_sp_flower_parse_actions()
119 rulei->ingress_bind_blocker = 1; in mlxsw_sp_flower_parse_actions()
123 err = mlxsw_sp_acl_rulei_act_trap(rulei); in mlxsw_sp_flower_parse_actions()
141 err = mlxsw_sp_acl_rulei_act_jump(rulei, group_id); in mlxsw_sp_flower_parse_actions()
161 rulei->egress_bind_blocker = 1; in mlxsw_sp_flower_parse_actions()
166 err = mlxsw_sp_acl_rulei_act_ignore(mlxsw_sp, rulei, in mlxsw_sp_flower_parse_actions()
[all …]
Dspectrum1_acl_tcam.c18 struct mlxsw_sp_acl_rule_info *rulei; member
64 struct mlxsw_sp_acl_rule_info *rulei; in mlxsw_sp1_acl_ctcam_region_catchall_add() local
70 rulei = mlxsw_sp_acl_rulei_create(mlxsw_sp->acl, NULL); in mlxsw_sp1_acl_ctcam_region_catchall_add()
71 if (IS_ERR(rulei)) { in mlxsw_sp1_acl_ctcam_region_catchall_add()
72 err = PTR_ERR(rulei); in mlxsw_sp1_acl_ctcam_region_catchall_add()
75 err = mlxsw_sp_acl_rulei_act_continue(rulei); in mlxsw_sp1_acl_ctcam_region_catchall_add()
78 err = mlxsw_sp_acl_rulei_commit(rulei); in mlxsw_sp1_acl_ctcam_region_catchall_add()
84 rulei, false); in mlxsw_sp1_acl_ctcam_region_catchall_add()
87 region->catchall.rulei = rulei; in mlxsw_sp1_acl_ctcam_region_catchall_add()
93 mlxsw_sp_acl_rulei_destroy(mlxsw_sp, rulei); in mlxsw_sp1_acl_ctcam_region_catchall_add()
[all …]
Dspectrum2_mr_tcam.c142 mlxsw_sp2_mr_tcam_rule_parse4(struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp2_mr_tcam_rule_parse4() argument
145 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_SRC_IP_0_31, in mlxsw_sp2_mr_tcam_rule_parse4()
148 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_DST_IP_0_31, in mlxsw_sp2_mr_tcam_rule_parse4()
154 mlxsw_sp2_mr_tcam_rule_parse6(struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp2_mr_tcam_rule_parse6() argument
157 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_SRC_IP_96_127, in mlxsw_sp2_mr_tcam_rule_parse6()
160 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_SRC_IP_64_95, in mlxsw_sp2_mr_tcam_rule_parse6()
163 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_SRC_IP_32_63, in mlxsw_sp2_mr_tcam_rule_parse6()
166 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_SRC_IP_0_31, in mlxsw_sp2_mr_tcam_rule_parse6()
169 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_DST_IP_96_127, in mlxsw_sp2_mr_tcam_rule_parse6()
172 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_DST_IP_64_95, in mlxsw_sp2_mr_tcam_rule_parse6()
[all …]
Dspectrum_acl_ctcam.c43 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_acl_ctcam_region_entry_insert() argument
55 err = mlxsw_sp_acl_tcam_priority_get(mlxsw_sp, rulei, &priority, in mlxsw_sp_acl_ctcam_region_entry_insert()
65 mlxsw_afk_encode(afk, region->key_info, &rulei->values, key, mask); in mlxsw_sp_acl_ctcam_region_entry_insert()
72 act_set = mlxsw_afa_block_first_set(rulei->act_block); in mlxsw_sp_acl_ctcam_region_entry_insert()
192 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_acl_ctcam_entry_add() argument
203 rulei, fillup_priority); in mlxsw_sp_acl_ctcam_entry_add()
227 struct mlxsw_sp_acl_rule_info *rulei) in mlxsw_sp_acl_ctcam_entry_action_replace() argument
231 rulei->act_block, in mlxsw_sp_acl_ctcam_entry_action_replace()
232 rulei->priority); in mlxsw_sp_acl_ctcam_entry_action_replace()
Dspectrum_acl_atcam.c381 struct mlxsw_sp_acl_rule_info *rulei) in mlxsw_sp_acl_atcam_region_entry_insert() argument
390 err = mlxsw_sp_acl_tcam_priority_get(mlxsw_sp, rulei, &priority, true); in mlxsw_sp_acl_atcam_region_entry_insert()
399 kvdl_index = mlxsw_afa_block_first_kvdl_index(rulei->act_block); in mlxsw_sp_acl_atcam_region_entry_insert()
445 struct mlxsw_sp_acl_rule_info *rulei) in mlxsw_sp_acl_atcam_region_entry_action_replace() argument
454 err = mlxsw_sp_acl_tcam_priority_get(mlxsw_sp, rulei, &priority, true); in mlxsw_sp_acl_atcam_region_entry_action_replace()
457 kvdl_index = mlxsw_afa_block_first_kvdl_index(rulei->act_block); in mlxsw_sp_acl_atcam_region_entry_action_replace()
473 struct mlxsw_sp_acl_rule_info *rulei) in __mlxsw_sp_acl_atcam_entry_add() argument
482 mlxsw_afk_encode(afk, region->key_info, &rulei->values, in __mlxsw_sp_acl_atcam_entry_add()
527 rulei); in __mlxsw_sp_acl_atcam_entry_add()
561 struct mlxsw_sp_acl_rule_info *rulei) in __mlxsw_sp_acl_atcam_entry_action_replace() argument
[all …]
Dspectrum_acl_tcam.h33 struct mlxsw_sp_acl_rule_info *rulei,
53 struct mlxsw_sp_acl_rule_info *rulei);
56 struct mlxsw_sp_acl_rule_info *rulei);
125 struct mlxsw_sp_acl_rule_info *rulei,
134 struct mlxsw_sp_acl_rule_info *rulei);
226 struct mlxsw_sp_acl_rule_info *rulei);
234 struct mlxsw_sp_acl_rule_info *rulei);
Dspectrum2_acl_tcam.c213 struct mlxsw_sp_acl_rule_info *rulei) in mlxsw_sp2_acl_tcam_entry_add() argument
219 entry->act_block = rulei->act_block; in mlxsw_sp2_acl_tcam_entry_add()
222 rulei); in mlxsw_sp2_acl_tcam_entry_add()
240 struct mlxsw_sp_acl_rule_info *rulei) in mlxsw_sp2_acl_tcam_entry_action_replace() argument
245 entry->act_block = rulei->act_block; in mlxsw_sp2_acl_tcam_entry_action_replace()
248 &entry->aentry, rulei); in mlxsw_sp2_acl_tcam_entry_action_replace()
Dspectrum.h1002 struct mlxsw_sp_acl_rule_info *rulei);
1003 int mlxsw_sp_acl_rulei_commit(struct mlxsw_sp_acl_rule_info *rulei);
1004 void mlxsw_sp_acl_rulei_priority(struct mlxsw_sp_acl_rule_info *rulei,
1006 void mlxsw_sp_acl_rulei_keymask_u32(struct mlxsw_sp_acl_rule_info *rulei,
1009 void mlxsw_sp_acl_rulei_keymask_buf(struct mlxsw_sp_acl_rule_info *rulei,
1013 int mlxsw_sp_acl_rulei_act_continue(struct mlxsw_sp_acl_rule_info *rulei);
1014 int mlxsw_sp_acl_rulei_act_jump(struct mlxsw_sp_acl_rule_info *rulei,
1016 int mlxsw_sp_acl_rulei_act_terminate(struct mlxsw_sp_acl_rule_info *rulei);
1017 int mlxsw_sp_acl_rulei_act_drop(struct mlxsw_sp_acl_rule_info *rulei,
1021 int mlxsw_sp_acl_rulei_act_trap(struct mlxsw_sp_acl_rule_info *rulei);
[all …]
Dspectrum_acl_tcam.c34 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_acl_tcam_priority_get() argument
49 if (rulei->priority >= max_priority) in mlxsw_sp_acl_tcam_priority_get()
53 *priority = max_priority - rulei->priority; in mlxsw_sp_acl_tcam_priority_get()
193 struct mlxsw_sp_acl_rule_info *rulei; member
1043 entry->priv, ventry->rulei); in mlxsw_sp_acl_tcam_entry_create()
1068 struct mlxsw_sp_acl_rule_info *rulei) in mlxsw_sp_acl_tcam_entry_action_replace() argument
1073 entry->priv, rulei); in mlxsw_sp_acl_tcam_entry_action_replace()
1090 struct mlxsw_sp_acl_rule_info *rulei) in mlxsw_sp_acl_tcam_ventry_add() argument
1096 vchunk = mlxsw_sp_acl_tcam_vchunk_get(mlxsw_sp, vgroup, rulei->priority, in mlxsw_sp_acl_tcam_ventry_add()
1097 &rulei->values.elusage); in mlxsw_sp_acl_tcam_ventry_add()
[all …]