/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_acl.c | 70 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 in mlxsw_sp_acl_rulei_create() 342 mlxsw_sp_acl_rulei_destroy(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_rulei_destroy() argument 356 mlxsw_sp_acl_rulei_commit(struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_rulei_commit() argument 361 mlxsw_sp_acl_rulei_priority(struct mlxsw_sp_acl_rule_info *rulei, unsigned int priority) mlxsw_sp_acl_rulei_priority() argument 367 mlxsw_sp_acl_rulei_keymask_u32(struct mlxsw_sp_acl_rule_info *rulei, enum mlxsw_afk_element element, u32 key_value, u32 mask_value) mlxsw_sp_acl_rulei_keymask_u32() argument 375 mlxsw_sp_acl_rulei_keymask_buf(struct mlxsw_sp_acl_rule_info *rulei, enum mlxsw_afk_element element, const char *key_value, const char *mask_value, unsigned int len) mlxsw_sp_acl_rulei_keymask_buf() argument 384 mlxsw_sp_acl_rulei_act_continue(struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_rulei_act_continue() argument 389 mlxsw_sp_acl_rulei_act_jump(struct mlxsw_sp_acl_rule_info *rulei, u16 group_id) mlxsw_sp_acl_rulei_act_jump() argument 395 mlxsw_sp_acl_rulei_act_terminate(struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_rulei_act_terminate() argument 400 mlxsw_sp_acl_rulei_act_drop(struct mlxsw_sp_acl_rule_info *rulei, bool ingress, const struct flow_action_cookie *fa_cookie, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_drop() argument 409 mlxsw_sp_acl_rulei_act_trap(struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_rulei_act_trap() argument 415 mlxsw_sp_acl_rulei_act_fwd(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct net_device *out_dev, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_fwd() argument 447 mlxsw_sp_acl_rulei_act_mirror(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct mlxsw_sp_flow_block *block, struct net_device *out_dev, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_mirror() argument 471 mlxsw_sp_acl_rulei_act_vlan(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, u32 action, u16 vid, u16 proto, u8 prio, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_vlan() argument 503 mlxsw_sp_acl_rulei_act_priority(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, u32 prio, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_priority() argument 583 mlxsw_sp_acl_rulei_act_mangle_field(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct mlxsw_sp_acl_mangle_action *mact, u32 val, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_mangle_field() argument 603 mlxsw_sp1_acl_rulei_act_mangle_field(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct mlxsw_sp_acl_mangle_action *mact, u32 val, struct netlink_ext_ack *extack) mlxsw_sp1_acl_rulei_act_mangle_field() argument 619 mlxsw_sp2_acl_rulei_act_mangle_field_ip_odd(struct mlxsw_sp_acl_rule_info *rulei, enum mlxsw_sp_acl_mangle_field field, u32 val, struct netlink_ext_ack *extack) mlxsw_sp2_acl_rulei_act_mangle_field_ip_odd() argument 634 mlxsw_sp2_acl_rulei_act_mangle_field(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct mlxsw_sp_acl_mangle_action *mact, u32 val, struct netlink_ext_ack *extack) mlxsw_sp2_acl_rulei_act_mangle_field() argument 713 mlxsw_sp_acl_rulei_act_mangle(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, enum flow_action_mangle_base htype, u32 offset, u32 mask, u32 val, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_mangle() argument 739 mlxsw_sp_acl_rulei_act_police(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, u32 index, u64 rate_bytes_ps, u32 burst, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_police() argument 757 mlxsw_sp_acl_rulei_act_count(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_count() argument 771 mlxsw_sp_acl_rulei_act_fid_set(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, u16 fid, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_fid_set() argument 778 mlxsw_sp_acl_rulei_act_ignore(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, bool disable_learning, bool disable_security) mlxsw_sp_acl_rulei_act_ignore() argument 787 mlxsw_sp_acl_rulei_act_sample(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct mlxsw_sp_flow_block *block, struct psample_group *psample_group, u32 rate, u32 trunc_size, bool truncate, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_sample() argument 929 struct mlxsw_sp_acl_rule_info *rulei; mlxsw_sp_acl_rule_action_replace() local 1017 struct mlxsw_sp_acl_rule_info *rulei; mlxsw_sp_acl_rule_get_stats() local [all...] |
H A D | spectrum_flower.c | 60 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_flower_parse_actions() 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() 112 /* Forbid block with this rulei to be bound 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() 158 /* Forbid block with this rulei t in mlxsw_sp_flower_parse_actions() 58 mlxsw_sp_flower_parse_actions(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, struct mlxsw_sp_acl_rule_info *rulei, struct flow_action *flow_action, struct netlink_ext_ack *extack) mlxsw_sp_flower_parse_actions() argument 295 mlxsw_sp_flower_parse_meta_iif(struct mlxsw_sp_acl_rule_info *rulei, const struct mlxsw_sp_flow_block *block, const struct flow_match_meta *match, struct netlink_ext_ack *extack) mlxsw_sp_flower_parse_meta_iif() argument 337 mlxsw_sp_flower_parse_meta(struct mlxsw_sp_acl_rule_info *rulei, struct flow_cls_offload *f, struct mlxsw_sp_flow_block *block) mlxsw_sp_flower_parse_meta() argument 356 mlxsw_sp_flower_parse_ipv4(struct mlxsw_sp_acl_rule_info *rulei, struct flow_cls_offload *f) mlxsw_sp_flower_parse_ipv4() argument 371 mlxsw_sp_flower_parse_ipv6(struct mlxsw_sp_acl_rule_info *rulei, struct flow_cls_offload *f) mlxsw_sp_flower_parse_ipv6() argument 404 mlxsw_sp_flower_parse_ports(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct flow_cls_offload *f, u8 ip_proto) mlxsw_sp_flower_parse_ports() argument 432 mlxsw_sp_flower_parse_ports_range(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct flow_cls_offload *f, u8 ip_proto) mlxsw_sp_flower_parse_ports_range() argument 493 mlxsw_sp_flower_parse_tcp(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct flow_cls_offload *f, u8 ip_proto) mlxsw_sp_flower_parse_tcp() argument 524 mlxsw_sp_flower_parse_ip(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct flow_cls_offload *f, u16 n_proto) mlxsw_sp_flower_parse_ip() argument 557 mlxsw_sp_flower_parse(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, struct mlxsw_sp_acl_rule_info *rulei, struct flow_cls_offload *f) mlxsw_sp_flower_parse() argument 730 struct mlxsw_sp_acl_rule_info *rulei; mlxsw_sp_flower_replace() local 843 struct mlxsw_sp_acl_rule_info rulei; mlxsw_sp_flower_tmplt_create() local [all...] |
H A D | spectrum1_acl_tcam.c | 18 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() 103 struct mlxsw_sp_acl_rule_info *rulei = region->catchall.rulei; mlxsw_sp1_acl_ctcam_region_catchall_del() local 170 mlxsw_sp1_acl_tcam_entry_add(struct mlxsw_sp *mlxsw_sp, void *region_priv, void *chunk_priv, void *entry_priv, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp1_acl_tcam_entry_add() argument 197 mlxsw_sp1_acl_tcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, void *region_priv, void *entry_priv, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp1_acl_tcam_entry_action_replace() argument [all...] |
H A D | spectrum2_mr_tcam.c | 142 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_9 in mlxsw_sp2_mr_tcam_rule_parse6() 188 struct mlxsw_sp_acl_rule_info *rulei; mlxsw_sp2_mr_tcam_rule_parse() local [all...] |
H A D | spectrum_acl_ctcam.c | 43 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_acl_ctcam_region_entry_insert() 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() 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() 231 rulei->act_block, in mlxsw_sp_acl_ctcam_entry_action_replace() 232 rulei->priority); in mlxsw_sp_acl_ctcam_entry_action_replace() 40 mlxsw_sp_acl_ctcam_region_entry_insert(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_entry *centry, struct mlxsw_sp_acl_rule_info *rulei, bool fillup_priority) mlxsw_sp_acl_ctcam_region_entry_insert() argument 188 mlxsw_sp_acl_ctcam_entry_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_chunk *cchunk, struct mlxsw_sp_acl_ctcam_entry *centry, struct mlxsw_sp_acl_rule_info *rulei, bool fillup_priority) mlxsw_sp_acl_ctcam_entry_add() argument 224 mlxsw_sp_acl_ctcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_entry *centry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_ctcam_entry_action_replace() argument
|
H A D | spectrum_acl_atcam.c | 381 struct mlxsw_sp_acl_rule_info *rulei) in mlxsw_sp_acl_atcam_region_entry_insert() 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() 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() 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() 378 mlxsw_sp_acl_atcam_region_entry_insert(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_atcam_region_entry_insert() argument 442 mlxsw_sp_acl_atcam_region_entry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_atcam_region_entry_action_replace() argument 470 __mlxsw_sp_acl_atcam_entry_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry, struct mlxsw_sp_acl_rule_info *rulei) __mlxsw_sp_acl_atcam_entry_add() argument 558 __mlxsw_sp_acl_atcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry, struct mlxsw_sp_acl_rule_info *rulei) __mlxsw_sp_acl_atcam_entry_action_replace() argument 567 mlxsw_sp_acl_atcam_entry_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_chunk *achunk, struct mlxsw_sp_acl_atcam_entry *aentry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_atcam_entry_add() argument 605 mlxsw_sp_acl_atcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_atcam_entry_action_replace() argument [all...] |
H A D | spectrum2_acl_tcam.c | 213 struct mlxsw_sp_acl_rule_info *rulei) in mlxsw_sp2_acl_tcam_entry_add() 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() 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() 210 mlxsw_sp2_acl_tcam_entry_add(struct mlxsw_sp *mlxsw_sp, void *region_priv, void *chunk_priv, void *entry_priv, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp2_acl_tcam_entry_add() argument 238 mlxsw_sp2_acl_tcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, void *region_priv, void *entry_priv, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp2_acl_tcam_entry_action_replace() argument
|
H A D | spectrum_acl_tcam.h | 33 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);
|
H A D | spectrum.h | 1002 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...] |
H A D | spectrum_acl_tcam.c | 34 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_acl_tcam_priority_get() 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() 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() 1096 vchunk = mlxsw_sp_acl_tcam_vchunk_get(mlxsw_sp, vgroup, rulei->priority, in mlxsw_sp_acl_tcam_ventry_add() 1097 &rulei in mlxsw_sp_acl_tcam_ventry_add() 33 mlxsw_sp_acl_tcam_priority_get(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, u32 *priority, bool fillup_priority) mlxsw_sp_acl_tcam_priority_get() argument 1065 mlxsw_sp_acl_tcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region, struct mlxsw_sp_acl_tcam_entry *entry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_tcam_entry_action_replace() argument 1087 mlxsw_sp_acl_tcam_ventry_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_vgroup *vgroup, struct mlxsw_sp_acl_tcam_ventry *ventry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_tcam_ventry_add() argument 1140 mlxsw_sp_acl_tcam_ventry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_ventry *ventry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_tcam_ventry_action_replace() argument 1715 mlxsw_sp_acl_tcam_flower_rule_add(struct mlxsw_sp *mlxsw_sp, void *ruleset_priv, void *rule_priv, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_tcam_flower_rule_add() argument 1735 mlxsw_sp_acl_tcam_flower_rule_action_replace(struct mlxsw_sp *mlxsw_sp, void *rule_priv, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_tcam_flower_rule_action_replace() argument 1850 mlxsw_sp_acl_tcam_mr_rule_add(struct mlxsw_sp *mlxsw_sp, void *ruleset_priv, void *rule_priv, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_tcam_mr_rule_add() argument 1870 mlxsw_sp_acl_tcam_mr_rule_action_replace(struct mlxsw_sp *mlxsw_sp, void *rule_priv, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_tcam_mr_rule_action_replace() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_flower.c | 20 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_flower_parse_actions() 39 err = mlxsw_sp_acl_rulei_act_count(mlxsw_sp, rulei, extack); in mlxsw_sp_flower_parse_actions() 50 err = mlxsw_sp_acl_rulei_act_terminate(rulei); in mlxsw_sp_flower_parse_actions() 64 err = mlxsw_sp_acl_rulei_act_drop(rulei, ingress, in mlxsw_sp_flower_parse_actions() 71 /* Forbid block with this rulei to be bound in mlxsw_sp_flower_parse_actions() 76 rulei->egress_bind_blocker = 1; in mlxsw_sp_flower_parse_actions() 78 rulei->ingress_bind_blocker = 1; in mlxsw_sp_flower_parse_actions() 82 err = mlxsw_sp_acl_rulei_act_trap(rulei); in mlxsw_sp_flower_parse_actions() 100 err = mlxsw_sp_acl_rulei_act_jump(rulei, group_id); in mlxsw_sp_flower_parse_actions() 117 /* Forbid block with this rulei t in mlxsw_sp_flower_parse_actions() 18 mlxsw_sp_flower_parse_actions(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, struct mlxsw_sp_acl_rule_info *rulei, struct flow_action *flow_action, struct netlink_ext_ack *extack) mlxsw_sp_flower_parse_actions() argument 216 mlxsw_sp_flower_parse_meta(struct mlxsw_sp_acl_rule_info *rulei, struct flow_cls_offload *f, struct mlxsw_sp_flow_block *block) mlxsw_sp_flower_parse_meta() argument 259 mlxsw_sp_flower_parse_ipv4(struct mlxsw_sp_acl_rule_info *rulei, struct flow_cls_offload *f) mlxsw_sp_flower_parse_ipv4() argument 274 mlxsw_sp_flower_parse_ipv6(struct mlxsw_sp_acl_rule_info *rulei, struct flow_cls_offload *f) mlxsw_sp_flower_parse_ipv6() argument 307 mlxsw_sp_flower_parse_ports(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct flow_cls_offload *f, u8 ip_proto) mlxsw_sp_flower_parse_ports() argument 334 mlxsw_sp_flower_parse_tcp(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct flow_cls_offload *f, u8 ip_proto) mlxsw_sp_flower_parse_tcp() argument 365 mlxsw_sp_flower_parse_ip(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct flow_cls_offload *f, u16 n_proto) mlxsw_sp_flower_parse_ip() argument 398 mlxsw_sp_flower_parse(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, struct mlxsw_sp_acl_rule_info *rulei, struct flow_cls_offload *f) mlxsw_sp_flower_parse() argument 564 struct mlxsw_sp_acl_rule_info *rulei; mlxsw_sp_flower_replace() local 677 struct mlxsw_sp_acl_rule_info rulei; mlxsw_sp_flower_tmplt_create() local [all...] |
H A D | spectrum_acl.c | 65 struct mlxsw_sp_acl_rule_info *rulei; member 312 struct mlxsw_sp_acl_rule_info *rulei; in mlxsw_sp_acl_rulei_create() local 315 rulei = kzalloc(sizeof(*rulei), GFP_KERNEL); in mlxsw_sp_acl_rulei_create() 316 if (!rulei) in mlxsw_sp_acl_rulei_create() 320 rulei->act_block = afa_block; in mlxsw_sp_acl_rulei_create() 321 return rulei; in mlxsw_sp_acl_rulei_create() 324 rulei->act_block = mlxsw_afa_block_create(acl->mlxsw_sp->afa); in mlxsw_sp_acl_rulei_create() 325 if (IS_ERR(rulei->act_block)) { in mlxsw_sp_acl_rulei_create() 326 err = PTR_ERR(rulei in mlxsw_sp_acl_rulei_create() 337 mlxsw_sp_acl_rulei_destroy(struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_rulei_destroy() argument 344 mlxsw_sp_acl_rulei_commit(struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_rulei_commit() argument 349 mlxsw_sp_acl_rulei_priority(struct mlxsw_sp_acl_rule_info *rulei, unsigned int priority) mlxsw_sp_acl_rulei_priority() argument 355 mlxsw_sp_acl_rulei_keymask_u32(struct mlxsw_sp_acl_rule_info *rulei, enum mlxsw_afk_element element, u32 key_value, u32 mask_value) mlxsw_sp_acl_rulei_keymask_u32() argument 363 mlxsw_sp_acl_rulei_keymask_buf(struct mlxsw_sp_acl_rule_info *rulei, enum mlxsw_afk_element element, const char *key_value, const char *mask_value, unsigned int len) mlxsw_sp_acl_rulei_keymask_buf() argument 372 mlxsw_sp_acl_rulei_act_continue(struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_rulei_act_continue() argument 377 mlxsw_sp_acl_rulei_act_jump(struct mlxsw_sp_acl_rule_info *rulei, u16 group_id) mlxsw_sp_acl_rulei_act_jump() argument 383 mlxsw_sp_acl_rulei_act_terminate(struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_rulei_act_terminate() argument 388 mlxsw_sp_acl_rulei_act_drop(struct mlxsw_sp_acl_rule_info *rulei, bool ingress, const struct flow_action_cookie *fa_cookie, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_drop() argument 397 mlxsw_sp_acl_rulei_act_trap(struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_rulei_act_trap() argument 403 mlxsw_sp_acl_rulei_act_fwd(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct net_device *out_dev, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_fwd() argument 435 mlxsw_sp_acl_rulei_act_mirror(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct mlxsw_sp_flow_block *block, struct net_device *out_dev, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_mirror() argument 459 mlxsw_sp_acl_rulei_act_vlan(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, u32 action, u16 vid, u16 proto, u8 prio, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_vlan() argument 491 mlxsw_sp_acl_rulei_act_priority(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, u32 prio, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_priority() argument 567 mlxsw_sp_acl_rulei_act_mangle_field(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct mlxsw_sp_acl_mangle_action *mact, u32 val, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_mangle_field() argument 587 mlxsw_sp1_acl_rulei_act_mangle_field(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct mlxsw_sp_acl_mangle_action *mact, u32 val, struct netlink_ext_ack *extack) mlxsw_sp1_acl_rulei_act_mangle_field() argument 602 mlxsw_sp2_acl_rulei_act_mangle_field(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct mlxsw_sp_acl_mangle_action *mact, u32 val, struct netlink_ext_ack *extack) mlxsw_sp2_acl_rulei_act_mangle_field() argument 626 mlxsw_sp_acl_rulei_act_mangle(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, enum flow_action_mangle_base htype, u32 offset, u32 mask, u32 val, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_mangle() argument 652 mlxsw_sp_acl_rulei_act_police(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, u32 index, u64 rate_bytes_ps, u32 burst, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_police() argument 670 mlxsw_sp_acl_rulei_act_count(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_count() argument 684 mlxsw_sp_acl_rulei_act_fid_set(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, u16 fid, struct netlink_ext_ack *extack) mlxsw_sp_acl_rulei_act_fid_set() argument 808 struct mlxsw_sp_acl_rule_info *rulei; mlxsw_sp_acl_rule_action_replace() local 896 struct mlxsw_sp_acl_rule_info *rulei; mlxsw_sp_acl_rule_get_stats() local [all...] |
H A D | spectrum1_acl_tcam.c | 18 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() 103 struct mlxsw_sp_acl_rule_info *rulei = region->catchall.rulei; mlxsw_sp1_acl_ctcam_region_catchall_del() local 170 mlxsw_sp1_acl_tcam_entry_add(struct mlxsw_sp *mlxsw_sp, void *region_priv, void *chunk_priv, void *entry_priv, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp1_acl_tcam_entry_add() argument 197 mlxsw_sp1_acl_tcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, void *region_priv, void *entry_priv, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp1_acl_tcam_entry_action_replace() argument [all...] |
H A D | spectrum2_mr_tcam.c | 142 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_9 in mlxsw_sp2_mr_tcam_rule_parse6() 188 struct mlxsw_sp_acl_rule_info *rulei; mlxsw_sp2_mr_tcam_rule_parse() local [all...] |
H A D | spectrum_acl_ctcam.c | 43 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_acl_ctcam_region_entry_insert() 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() 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() 231 rulei->act_block, in mlxsw_sp_acl_ctcam_entry_action_replace() 232 rulei->priority); in mlxsw_sp_acl_ctcam_entry_action_replace() 40 mlxsw_sp_acl_ctcam_region_entry_insert(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_entry *centry, struct mlxsw_sp_acl_rule_info *rulei, bool fillup_priority) mlxsw_sp_acl_ctcam_region_entry_insert() argument 188 mlxsw_sp_acl_ctcam_entry_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_chunk *cchunk, struct mlxsw_sp_acl_ctcam_entry *centry, struct mlxsw_sp_acl_rule_info *rulei, bool fillup_priority) mlxsw_sp_acl_ctcam_entry_add() argument 224 mlxsw_sp_acl_ctcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_ctcam_entry *centry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_ctcam_entry_action_replace() argument
|
H A D | spectrum_acl_atcam.c | 381 struct mlxsw_sp_acl_rule_info *rulei) in mlxsw_sp_acl_atcam_region_entry_insert() 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() 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() 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() 378 mlxsw_sp_acl_atcam_region_entry_insert(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_atcam_region_entry_insert() argument 442 mlxsw_sp_acl_atcam_region_entry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_atcam_region_entry_action_replace() argument 470 __mlxsw_sp_acl_atcam_entry_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry, struct mlxsw_sp_acl_rule_info *rulei) __mlxsw_sp_acl_atcam_entry_add() argument 558 __mlxsw_sp_acl_atcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry, struct mlxsw_sp_acl_rule_info *rulei) __mlxsw_sp_acl_atcam_entry_action_replace() argument 567 mlxsw_sp_acl_atcam_entry_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_chunk *achunk, struct mlxsw_sp_acl_atcam_entry *aentry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_atcam_entry_add() argument 605 mlxsw_sp_acl_atcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_atcam_region *aregion, struct mlxsw_sp_acl_atcam_entry *aentry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_atcam_entry_action_replace() argument [all...] |
H A D | spectrum2_acl_tcam.c | 203 struct mlxsw_sp_acl_rule_info *rulei) in mlxsw_sp2_acl_tcam_entry_add() 209 entry->act_block = rulei->act_block; in mlxsw_sp2_acl_tcam_entry_add() 212 rulei); in mlxsw_sp2_acl_tcam_entry_add() 230 struct mlxsw_sp_acl_rule_info *rulei) in mlxsw_sp2_acl_tcam_entry_action_replace() 235 entry->act_block = rulei->act_block; in mlxsw_sp2_acl_tcam_entry_action_replace() 238 &entry->aentry, rulei); in mlxsw_sp2_acl_tcam_entry_action_replace() 200 mlxsw_sp2_acl_tcam_entry_add(struct mlxsw_sp *mlxsw_sp, void *region_priv, void *chunk_priv, void *entry_priv, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp2_acl_tcam_entry_add() argument 228 mlxsw_sp2_acl_tcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, void *region_priv, void *entry_priv, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp2_acl_tcam_entry_action_replace() argument
|
H A D | spectrum_acl_tcam.h | 38 struct mlxsw_sp_acl_rule_info *rulei, 58 struct mlxsw_sp_acl_rule_info *rulei); 61 struct mlxsw_sp_acl_rule_info *rulei); 130 struct mlxsw_sp_acl_rule_info *rulei, 139 struct mlxsw_sp_acl_rule_info *rulei); 231 struct mlxsw_sp_acl_rule_info *rulei); 239 struct mlxsw_sp_acl_rule_info *rulei);
|
H A D | spectrum.h | 879 void mlxsw_sp_acl_rulei_destroy(struct mlxsw_sp_acl_rule_info *rulei); 880 int mlxsw_sp_acl_rulei_commit(struct mlxsw_sp_acl_rule_info *rulei); 881 void mlxsw_sp_acl_rulei_priority(struct mlxsw_sp_acl_rule_info *rulei, 883 void mlxsw_sp_acl_rulei_keymask_u32(struct mlxsw_sp_acl_rule_info *rulei, 886 void mlxsw_sp_acl_rulei_keymask_buf(struct mlxsw_sp_acl_rule_info *rulei, 890 int mlxsw_sp_acl_rulei_act_continue(struct mlxsw_sp_acl_rule_info *rulei); 891 int mlxsw_sp_acl_rulei_act_jump(struct mlxsw_sp_acl_rule_info *rulei, 893 int mlxsw_sp_acl_rulei_act_terminate(struct mlxsw_sp_acl_rule_info *rulei); 894 int mlxsw_sp_acl_rulei_act_drop(struct mlxsw_sp_acl_rule_info *rulei, 898 int mlxsw_sp_acl_rulei_act_trap(struct mlxsw_sp_acl_rule_info *rulei); [all...] |
H A D | spectrum_acl_tcam.c | 33 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_acl_tcam_priority_get() 48 if (rulei->priority >= max_priority) in mlxsw_sp_acl_tcam_priority_get() 52 *priority = max_priority - rulei->priority; in mlxsw_sp_acl_tcam_priority_get() 192 struct mlxsw_sp_acl_rule_info *rulei; member 1077 entry->priv, ventry->rulei); in mlxsw_sp_acl_tcam_entry_create() 1102 struct mlxsw_sp_acl_rule_info *rulei) in mlxsw_sp_acl_tcam_entry_action_replace() 1107 entry->priv, rulei); in mlxsw_sp_acl_tcam_entry_action_replace() 1124 struct mlxsw_sp_acl_rule_info *rulei) in mlxsw_sp_acl_tcam_ventry_add() 1130 vchunk = mlxsw_sp_acl_tcam_vchunk_get(mlxsw_sp, vgroup, rulei->priority, in mlxsw_sp_acl_tcam_ventry_add() 1131 &rulei in mlxsw_sp_acl_tcam_ventry_add() 32 mlxsw_sp_acl_tcam_priority_get(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, u32 *priority, bool fillup_priority) mlxsw_sp_acl_tcam_priority_get() argument 1099 mlxsw_sp_acl_tcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region, struct mlxsw_sp_acl_tcam_entry *entry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_tcam_entry_action_replace() argument 1121 mlxsw_sp_acl_tcam_ventry_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_vgroup *vgroup, struct mlxsw_sp_acl_tcam_ventry *ventry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_tcam_ventry_add() argument 1174 mlxsw_sp_acl_tcam_ventry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_ventry *ventry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_tcam_ventry_action_replace() argument 1667 mlxsw_sp_acl_tcam_flower_rule_add(struct mlxsw_sp *mlxsw_sp, void *ruleset_priv, void *rule_priv, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_tcam_flower_rule_add() argument 1687 mlxsw_sp_acl_tcam_flower_rule_action_replace(struct mlxsw_sp *mlxsw_sp, void *rule_priv, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_tcam_flower_rule_action_replace() argument 1802 mlxsw_sp_acl_tcam_mr_rule_add(struct mlxsw_sp *mlxsw_sp, void *ruleset_priv, void *rule_priv, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_tcam_mr_rule_add() argument 1822 mlxsw_sp_acl_tcam_mr_rule_action_replace(struct mlxsw_sp *mlxsw_sp, void *rule_priv, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_tcam_mr_rule_action_replace() argument [all...] |