/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_acl.c | 25 u32 chain_index; member 102 int prestera_acl_chain_to_client(u32 chain_index, bool ingress, u32 *client) in prestera_acl_chain_to_client() argument 112 if (chain_index > 0) in prestera_acl_chain_to_client() 119 if (chain_index >= ARRAY_SIZE(ingress_client_map)) in prestera_acl_chain_to_client() 122 *client = ingress_client_map[chain_index]; in prestera_acl_chain_to_client() 126 static bool prestera_acl_chain_is_supported(u32 chain_index, bool ingress) in prestera_acl_chain_is_supported() argument 130 return chain_index == 0; in prestera_acl_chain_is_supported() 132 return (chain_index & ~PRESTERA_ACL_CHAIN_MASK) == 0; in prestera_acl_chain_is_supported() 138 u32 chain_index) in prestera_acl_ruleset_create() 144 if (!prestera_acl_chain_is_supported(chain_index, bloc in prestera_acl_ruleset_create() 136 prestera_acl_ruleset_create(struct prestera_acl *acl, struct prestera_flow_block *block, u32 chain_index) prestera_acl_ruleset_create() argument 269 __prestera_acl_ruleset_lookup(struct prestera_acl *acl, struct prestera_flow_block *block, u32 chain_index) __prestera_acl_ruleset_lookup() argument 283 prestera_acl_ruleset_lookup(struct prestera_acl *acl, struct prestera_flow_block *block, u32 chain_index) prestera_acl_ruleset_lookup() argument 298 prestera_acl_ruleset_get(struct prestera_acl *acl, struct prestera_flow_block *block, u32 chain_index) prestera_acl_ruleset_get() argument 436 prestera_acl_rule_create(struct prestera_acl_ruleset *ruleset, unsigned long cookie, u32 chain_index) prestera_acl_rule_create() argument [all...] |
H A D | prestera_flower.c | 13 u32 chain_index; member 36 u32 chain_index, in prestera_flower_parse_goto_action() 41 if (act->chain_index <= chain_index) in prestera_flower_parse_goto_action() 49 act->chain_index); in prestera_flower_parse_goto_action() 64 u32 chain_index, in prestera_flower_parse_actions() 83 err = prestera_acl_chain_to_client(chain_index, block->ingress, in prestera_flower_parse_actions() 124 chain_index, in prestera_flower_parse_actions() 366 f->common.chain_index, in prestera_flower_parse() 400 int prestera_flower_prio_get(struct prestera_flow_block *block, u32 chain_index, in prestera_flower_prio_get() argument 34 prestera_flower_parse_goto_action(struct prestera_flow_block *block, struct prestera_acl_rule *rule, u32 chain_index, const struct flow_action_entry *act) prestera_flower_parse_goto_action() argument 61 prestera_flower_parse_actions(struct prestera_flow_block *block, struct prestera_acl_rule *rule, struct flow_action *flow_action, u32 chain_index, struct netlink_ext_ack *extack) prestera_flower_parse_actions() argument [all...] |
H A D | prestera_acl.h | 133 u32 chain_index; member 157 unsigned long cookie, u32 chain_index); 183 u32 chain_index); 187 u32 chain_index); 207 int prestera_acl_chain_to_client(u32 chain_index, bool ingress, u32 *client);
|
H A D | prestera_flower.h | 22 int prestera_flower_prio_get(struct prestera_flow_block *block, u32 chain_index,
|
H A D | prestera_matchall.c | 21 err = prestera_flower_prio_get(block, f->common.chain_index, in prestera_mall_prio_check()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_flower.c | 89 u32 chain_index = act->chain_index; in mlxsw_sp_flower_parse_actions() local 94 chain_index, in mlxsw_sp_flower_parse_actions() 540 err = mlxsw_sp_mall_prio_get(block, f->common.chain_index, in mlxsw_sp_flower_mall_prio_check() 574 f->common.chain_index, in mlxsw_sp_flower_replace() 619 f->common.chain_index, in mlxsw_sp_flower_destroy() 647 f->common.chain_index, in mlxsw_sp_flower_stats() 685 f->common.chain_index, in mlxsw_sp_flower_tmplt_create() 700 f->common.chain_index, in mlxsw_sp_flower_tmplt_destroy() 711 u32 chain_index, unsigne in mlxsw_sp_flower_prio_get() 709 mlxsw_sp_flower_prio_get(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, u32 chain_index, unsigned int *p_min_prio, unsigned int *p_max_prio) mlxsw_sp_flower_prio_get() argument [all...] |
H A D | spectrum_acl.c | 45 u32 chain_index; member 161 struct mlxsw_sp_flow_block *block, u32 chain_index, in mlxsw_sp_acl_ruleset_create() 176 ruleset->ht_key.chain_index = chain_index; in mlxsw_sp_acl_ruleset_create() 233 struct mlxsw_sp_flow_block *block, u32 chain_index, in __mlxsw_sp_acl_ruleset_lookup() 240 ht_key.chain_index = chain_index; in __mlxsw_sp_acl_ruleset_lookup() 248 struct mlxsw_sp_flow_block *block, u32 chain_index, in mlxsw_sp_acl_ruleset_lookup() 258 ruleset = __mlxsw_sp_acl_ruleset_lookup(acl, block, chain_index, ops); in mlxsw_sp_acl_ruleset_lookup() 266 struct mlxsw_sp_flow_block *block, u32 chain_index, in mlxsw_sp_acl_ruleset_get() 160 mlxsw_sp_acl_ruleset_create(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, u32 chain_index, const struct mlxsw_sp_acl_profile_ops *ops, struct mlxsw_afk_element_usage *tmplt_elusage) mlxsw_sp_acl_ruleset_create() argument 232 __mlxsw_sp_acl_ruleset_lookup(struct mlxsw_sp_acl *acl, struct mlxsw_sp_flow_block *block, u32 chain_index, const struct mlxsw_sp_acl_profile_ops *ops) __mlxsw_sp_acl_ruleset_lookup() argument 247 mlxsw_sp_acl_ruleset_lookup(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, u32 chain_index, enum mlxsw_sp_acl_profile profile) mlxsw_sp_acl_ruleset_lookup() argument 265 mlxsw_sp_acl_ruleset_get(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, u32 chain_index, enum mlxsw_sp_acl_profile profile, struct mlxsw_afk_element_usage *tmplt_elusage) mlxsw_sp_acl_ruleset_get() argument [all...] |
H A D | spectrum_matchall.c | 192 if (f->common.chain_index) { in mlxsw_sp_mall_replace() 202 err = mlxsw_sp_flower_prio_get(mlxsw_sp, block, f->common.chain_index, in mlxsw_sp_mall_replace() 345 int mlxsw_sp_mall_prio_get(struct mlxsw_sp_flow_block *block, u32 chain_index, in mlxsw_sp_mall_prio_get() argument 348 if (chain_index || list_empty(&block->mall.list)) in mlxsw_sp_mall_prio_get()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_tc_flower.c | 287 if (!vcap_is_next_lookup(vctrl, fco->common.chain_index, in lan966x_tc_flower_action_check() 288 last_actent->chain_index)) { in lan966x_tc_flower_action_check() 293 } else if (!vcap_is_last_chain(vctrl, fco->common.chain_index, in lan966x_tc_flower_action_check() 388 diff = vcap_chain_offset(vctrl, f->common.chain_index, to_cid); in lan966x_tc_add_rule_link() 458 f->common.chain_index, VCAP_USER_TC, in lan966x_tc_flower_add() 469 f->common.chain_index); in lan966x_tc_flower_add() 504 f, act->chain_index); in lan966x_tc_flower_add() 602 f->common.chain_index); in lan966x_tc_flower()
|
H A D | lan966x_tc_matchall.c | 27 return lan966x_goto_port_add(port, f->common.chain_index, in lan966x_tc_matchall_add() 28 act->chain_index, f->cookie, in lan966x_tc_matchall_add()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_flower.c | 130 u32 chain_index = act->chain_index; in mlxsw_sp_flower_parse_actions() local 135 chain_index, in mlxsw_sp_flower_parse_actions() 706 err = mlxsw_sp_mall_prio_get(block, f->common.chain_index, in mlxsw_sp_flower_mall_prio_check() 740 f->common.chain_index, in mlxsw_sp_flower_replace() 785 f->common.chain_index, in mlxsw_sp_flower_destroy() 813 f->common.chain_index, in mlxsw_sp_flower_stats() 851 f->common.chain_index, in mlxsw_sp_flower_tmplt_create() 866 f->common.chain_index, in mlxsw_sp_flower_tmplt_destroy() 877 u32 chain_index, unsigne in mlxsw_sp_flower_prio_get() 875 mlxsw_sp_flower_prio_get(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, u32 chain_index, unsigned int *p_min_prio, unsigned int *p_max_prio) mlxsw_sp_flower_prio_get() argument [all...] |
H A D | spectrum_acl.c | 50 u32 chain_index; member 166 struct mlxsw_sp_flow_block *block, u32 chain_index, in mlxsw_sp_acl_ruleset_create() 181 ruleset->ht_key.chain_index = chain_index; in mlxsw_sp_acl_ruleset_create() 238 struct mlxsw_sp_flow_block *block, u32 chain_index, in __mlxsw_sp_acl_ruleset_lookup() 245 ht_key.chain_index = chain_index; in __mlxsw_sp_acl_ruleset_lookup() 253 struct mlxsw_sp_flow_block *block, u32 chain_index, in mlxsw_sp_acl_ruleset_lookup() 263 ruleset = __mlxsw_sp_acl_ruleset_lookup(acl, block, chain_index, ops); in mlxsw_sp_acl_ruleset_lookup() 271 struct mlxsw_sp_flow_block *block, u32 chain_index, in mlxsw_sp_acl_ruleset_get() 165 mlxsw_sp_acl_ruleset_create(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, u32 chain_index, const struct mlxsw_sp_acl_profile_ops *ops, struct mlxsw_afk_element_usage *tmplt_elusage) mlxsw_sp_acl_ruleset_create() argument 237 __mlxsw_sp_acl_ruleset_lookup(struct mlxsw_sp_acl *acl, struct mlxsw_sp_flow_block *block, u32 chain_index, const struct mlxsw_sp_acl_profile_ops *ops) __mlxsw_sp_acl_ruleset_lookup() argument 252 mlxsw_sp_acl_ruleset_lookup(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, u32 chain_index, enum mlxsw_sp_acl_profile profile) mlxsw_sp_acl_ruleset_lookup() argument 270 mlxsw_sp_acl_ruleset_get(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, u32 chain_index, enum mlxsw_sp_acl_profile profile, struct mlxsw_afk_element_usage *tmplt_elusage) mlxsw_sp_acl_ruleset_get() argument [all...] |
H A D | spectrum_matchall.c | 218 if (f->common.chain_index) { in mlxsw_sp_mall_replace() 228 err = mlxsw_sp_flower_prio_get(mlxsw_sp, block, f->common.chain_index, in mlxsw_sp_mall_replace() 365 int mlxsw_sp_mall_prio_get(struct mlxsw_sp_flow_block *block, u32 chain_index, in mlxsw_sp_mall_prio_get() argument 368 if (chain_index || list_empty(&block->mall.list)) in mlxsw_sp_mall_prio_get()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_tc_flower.c | 294 if (!vcap_is_next_lookup(vctrl, fco->common.chain_index, in sparx5_tc_flower_action_check() 295 last_actent->chain_index)) { in sparx5_tc_flower_action_check() 300 } else if (!vcap_is_last_chain(vctrl, fco->common.chain_index, in sparx5_tc_flower_action_check() 1064 if (ftp->cid != fco->common.chain_index) in sparx5_tc_flower_use_template() 1103 vrule = vcap_alloc_rule(vctrl, ndev, fco->common.chain_index, VCAP_USER_TC, in sparx5_tc_flower_replace() 1121 fco->common.chain_index); in sparx5_tc_flower_replace() 1163 fco->common.chain_index, in sparx5_tc_flower_replace() 1164 act->chain_index); in sparx5_tc_flower_replace() 1362 count = vcap_admin_rule_count(admin, fco->common.chain_index); in sparx5_tc_flower_template_create() 1373 ftp->cid = fco->common.chain_index; in sparx5_tc_flower_template_create() [all...] |
H A D | sparx5_tc_matchall.c | 34 tmo->common.chain_index, in sparx5_tc_matchall_replace() 35 action->chain_index, tmo->cookie, in sparx5_tc_matchall_replace()
|
/kernel/linux/linux-6.6/net/sched/ |
H A D | cls_api.c | 57 u32 chain_index; member 91 n->chain_index = tp->chain->index; in tcf_exts_miss_cookie_base_alloc() 470 u32 chain_index) in tcf_chain_create() 482 chain->index = chain_index; in tcf_chain_create() 565 u32 chain_index) in tcf_chain_lookup() 572 if (chain->index == chain_index) in tcf_chain_lookup() 580 u32 chain_index) in tcf_chain_lookup_rcu() 585 if (chain->index == chain_index) in tcf_chain_lookup_rcu() 597 u32 chain_index, bool create, in __tcf_chain_get() 604 chain = tcf_chain_lookup(block, chain_index); in __tcf_chain_get() 469 tcf_chain_create(struct tcf_block *block, u32 chain_index) tcf_chain_create() argument 564 tcf_chain_lookup(struct tcf_block *block, u32 chain_index) tcf_chain_lookup() argument 579 tcf_chain_lookup_rcu(const struct tcf_block *block, u32 chain_index) tcf_chain_lookup_rcu() argument 596 __tcf_chain_get(struct tcf_block *block, u32 chain_index, bool create, bool by_act) __tcf_chain_get() argument 636 tcf_chain_get(struct tcf_block *block, u32 chain_index, bool create) tcf_chain_get() argument 642 tcf_chain_get_by_act(struct tcf_block *block, u32 chain_index) tcf_chain_get_by_act() argument 2135 u32 chain_index; tc_new_tfilter() local 2368 u32 chain_index; tc_del_tfilter() local 2525 u32 chain_index; tc_get_tfilter() local 2828 tc_chain_fill_node(const struct tcf_proto_ops *tmplt_ops, void *tmplt_priv, u32 chain_index, struct net *net, struct sk_buff *skb, struct tcf_block *block, u32 portid, u32 seq, u16 flags, int event, struct netlink_ext_ack *extack) tc_chain_fill_node() argument 2914 tc_chain_notify_delete(const struct tcf_proto_ops *tmplt_ops, void *tmplt_priv, u32 chain_index, struct tcf_block *block, struct sk_buff *oskb, u32 seq, u16 flags, bool unicast) tc_chain_notify_delete() argument 2996 u32 chain_index; tc_ctl_chain() local [all...] |
/kernel/linux/linux-5.10/net/sched/ |
H A D | cls_api.c | 347 u32 chain_index) in tcf_chain_create() 359 chain->index = chain_index; in tcf_chain_create() 442 u32 chain_index) in tcf_chain_lookup() 449 if (chain->index == chain_index) in tcf_chain_lookup() 457 u32 chain_index) in tcf_chain_lookup_rcu() 462 if (chain->index == chain_index) in tcf_chain_lookup_rcu() 473 u32 chain_index, bool create, in __tcf_chain_get() 480 chain = tcf_chain_lookup(block, chain_index); in __tcf_chain_get() 486 chain = tcf_chain_create(block, chain_index); in __tcf_chain_get() 512 static struct tcf_chain *tcf_chain_get(struct tcf_block *block, u32 chain_index, in tcf_chain_get() argument 346 tcf_chain_create(struct tcf_block *block, u32 chain_index) tcf_chain_create() argument 441 tcf_chain_lookup(struct tcf_block *block, u32 chain_index) tcf_chain_lookup() argument 456 tcf_chain_lookup_rcu(const struct tcf_block *block, u32 chain_index) tcf_chain_lookup_rcu() argument 472 __tcf_chain_get(struct tcf_block *block, u32 chain_index, bool create, bool by_act) __tcf_chain_get() argument 518 tcf_chain_get_by_act(struct tcf_block *block, u32 chain_index) tcf_chain_get_by_act() argument 1957 u32 chain_index; tc_new_tfilter() local 2186 u32 chain_index; tc_del_tfilter() local 2346 u32 chain_index; tc_get_tfilter() local 2649 tc_chain_fill_node(const struct tcf_proto_ops *tmplt_ops, void *tmplt_priv, u32 chain_index, struct net *net, struct sk_buff *skb, struct tcf_block *block, u32 portid, u32 seq, u16 flags, int event) tc_chain_fill_node() argument 2730 tc_chain_notify_delete(const struct tcf_proto_ops *tmplt_ops, void *tmplt_priv, u32 chain_index, struct tcf_block *block, struct sk_buff *oskb, u32 seq, u16 flags, bool unicast) tc_chain_notify_delete() argument 2811 u32 chain_index; tc_ctl_chain() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
H A D | goto.c | 18 u32 dest_chain = act->chain_index; in validate_goto_chain() 81 attr->dest_chain = act->chain_index; in tc_act_parse_goto()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/ |
H A D | ocelot_flower.c | 175 chain = f->common.chain_index; in ocelot_flower_parse_action() 323 filter->goto_target = a->chain_index; in ocelot_flower_parse_action() 696 int chain = f->common.chain_index; in ocelot_cls_flower_replace() 731 block_id = ocelot_chain_to_block(f->common.chain_index, ingress); in ocelot_cls_flower_destroy() 755 block_id = ocelot_chain_to_block(f->common.chain_index, ingress); in ocelot_cls_flower_stats()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | conntrack.c | 70 if (flow->common.chain_index) in is_pre_ct_flow() 118 if (flow->common.chain_index && exist_ct_clear) in is_post_ct_flow() 1288 /* Checks that the chain_index of the filter matches the in nfp_ct_do_tc_merge() 1289 * chain_index of the GOTO action. in nfp_ct_do_tc_merge() 1291 if (post_ct_entry->chain_index != pre_ct_entry->goto_chain_index) in nfp_ct_do_tc_merge() 1530 entry->chain_index = flow->common.chain_index; in nfp_fl_ct_add_flow() 1852 ct_entry->chain_index = flow->common.chain_index; in nfp_fl_ct_handle_pre_ct() 1853 ct_entry->goto_chain_index = ct_goto->chain_index; in nfp_fl_ct_handle_pre_ct() [all...] |
H A D | conntrack.h | 117 * @chain_index: Chain index of the original flow 133 u32 chain_index; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
H A D | tc.c | 212 if (tmp.common.chain_index != 0) in mlx5e_rep_setup_ft_cb() 215 tmp.common.chain_index = mlx5_chains_get_nf_ft_chain(esw_chains(esw)); in mlx5e_rep_setup_ft_cb() 384 tmp.common.chain_index) in mlx5e_rep_indr_setup_ft_cb() 387 tmp.common.chain_index = mlx5_chains_get_nf_ft_chain(esw_chains(esw)); in mlx5e_rep_indr_setup_ft_cb()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
H A D | tc.c | 218 if (tmp.common.chain_index != 0) in mlx5e_rep_setup_ft_cb() 221 tmp.common.chain_index = mlx5_chains_get_nf_ft_chain(esw_chains(esw)); in mlx5e_rep_setup_ft_cb() 399 tmp.common.chain_index) in mlx5e_rep_indr_setup_ft_cb() 402 tmp.common.chain_index = mlx5_chains_get_nf_ft_chain(esw_chains(esw)); in mlx5e_rep_indr_setup_ft_cb()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mscc/ |
H A D | ocelot_flower.c | 249 chain = f->common.chain_index; in ocelot_flower_parse_action() 452 filter->goto_target = a->chain_index; in ocelot_flower_parse_action() 873 int chain = f->common.chain_index; in ocelot_cls_flower_replace() 944 block_id = ocelot_chain_to_block(f->common.chain_index, ingress); in ocelot_cls_flower_destroy() 982 block_id = ocelot_chain_to_block(f->common.chain_index, ingress); in ocelot_cls_flower_stats()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/ |
H A D | tc.c | 686 u32 chain_index, in efx_tc_get_recirc_id() 695 rid->chain_index = chain_index; in efx_tc_get_recirc_id() 840 * (the hardware equivalent of chain_index), while LHS rules may go in either 899 if (!fa->chain_index) { in efx_tc_flower_handle_lhs_actions() 903 rid = efx_tc_get_recirc_id(efx, fa->chain_index, in efx_tc_flower_handle_lhs_actions() 906 NL_SET_ERR_MSG_MOD(extack, "Failed to allocate a hardware recirculation ID for this chain_index"); in efx_tc_flower_handle_lhs_actions() 1390 if (tc->common.chain_index) { in efx_tc_flower_replace_foreign() 1393 rid = efx_tc_get_recirc_id(efx, tc->common.chain_index, net_dev); in efx_tc_flower_replace_foreign() 1396 "Failed to allocate a hardware recirculation ID for chain_index in efx_tc_flower_replace_foreign() 685 efx_tc_get_recirc_id(struct efx_nic *efx, u32 chain_index, struct net_device *net_dev) efx_tc_get_recirc_id() argument [all...] |