/linux/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() argument 144 if (!prestera_acl_chain_is_supported(chain_index, block->ingress)) in prestera_acl_ruleset_create() [all …]
|
H A D | prestera_flower.c | 13 u32 chain_index; member 36 u32 chain_index, in prestera_flower_parse_goto_action() argument 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() argument 83 err = prestera_acl_chain_to_client(chain_index, block->ingress, in prestera_flower_parse_actions() 124 chain_index, in prestera_flower_parse_actions() 370 f->common.chain_index, in prestera_flower_parse() 404 int prestera_flower_prio_get(struct prestera_flow_block *block, u32 chain_index, in prestera_flower_prio_get() argument 409 ruleset = prestera_acl_ruleset_lookup(block->sw->acl, block, chain_index); in prestera_flower_prio_get() [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()
|
/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_tc_flower.c | 293 if (!vcap_is_next_lookup(vctrl, fco->common.chain_index, in lan966x_tc_flower_action_check() 294 last_actent->chain_index)) { in lan966x_tc_flower_action_check() 299 } else if (!vcap_is_last_chain(vctrl, fco->common.chain_index, in lan966x_tc_flower_action_check() 394 diff = vcap_chain_offset(vctrl, f->common.chain_index, to_cid); in lan966x_tc_add_rule_link() 464 f->common.chain_index, VCAP_USER_TC, in lan966x_tc_flower_add() 475 f->common.chain_index); in lan966x_tc_flower_add() 510 f, act->chain_index); in lan966x_tc_flower_add() 608 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()
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_acl.c | 51 u32 chain_index; member 167 struct mlxsw_sp_flow_block *block, u32 chain_index, in mlxsw_sp_acl_ruleset_create() argument 182 ruleset->ht_key.chain_index = chain_index; in mlxsw_sp_acl_ruleset_create() 239 struct mlxsw_sp_flow_block *block, u32 chain_index, in __mlxsw_sp_acl_ruleset_lookup() argument 246 ht_key.chain_index = chain_index; in __mlxsw_sp_acl_ruleset_lookup() 254 struct mlxsw_sp_flow_block *block, u32 chain_index, in mlxsw_sp_acl_ruleset_lookup() argument 264 ruleset = __mlxsw_sp_acl_ruleset_lookup(acl, block, chain_index, ops); in mlxsw_sp_acl_ruleset_lookup() 272 struct mlxsw_sp_flow_block *block, u32 chain_index, in mlxsw_sp_acl_ruleset_get() argument 284 ruleset = __mlxsw_sp_acl_ruleset_lookup(acl, block, chain_index, ops); in mlxsw_sp_acl_ruleset_get() 289 return mlxsw_sp_acl_ruleset_create(mlxsw_sp, block, chain_index, ops, in mlxsw_sp_acl_ruleset_get() [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()
|
H A D | spectrum_qdisc.c | 2009 if (f->common.chain_index) { in mlxsw_sp_qevent_mall_replace()
|
/linux/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() 499 u32 chain_index) in tcf_chain_create() argument 511 chain->index = chain_index; in tcf_chain_create() 595 u32 chain_index) in tcf_chain_lookup() argument 602 if (chain->index == chain_index) in tcf_chain_lookup() 610 u32 chain_index) in tcf_chain_lookup_rcu() argument 615 if (chain->index == chain_index) in tcf_chain_lookup_rcu() 627 u32 chain_index, bool create, in __tcf_chain_get() argument 634 chain = tcf_chain_lookup(block, chain_index); in __tcf_chain_get() [all …]
|
H A D | act_gact.c | 254 entry->chain_index = tcf_gact_goto_chain_index(act); in tcf_gact_offload_act_setup()
|
H A D | cls_flower.c | 2777 cls_flower.common.chain_index = chain->index; in fl_hw_create_tmplt() 2799 cls_flower.common.chain_index = chain->index; in fl_hw_destroy_tmplt() 2871 cls_flower.common.chain_index = chain->index; in fl_tmplt_reoffload()
|
/linux/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()
|
/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_tc_matchall.c | 104 tmo->common.chain_index, in sparx5_tc_matchall_replace() 105 action->chain_index, tmo->cookie, in sparx5_tc_matchall_replace()
|
/linux/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() 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() 1934 ct_entry->chain_index = flow->common.chain_index; in nfp_fl_ct_handle_post_ct() 1936 ct_entry->goto_chain_index = ct_goto ? ct_goto->chain_index : 0; in nfp_fl_ct_handle_post_ct() 1978 new_pre_ct_flow.common.chain_index = post_ct_entry->chain_index; in nfp_fl_create_new_pre_ct()
|
H A D | conntrack.h | 133 u32 chain_index; member
|
H A D | offload.c | 1315 if (flow->common.chain_index) in offload_pre_check()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
H A D | tc.c | 232 if (tmp.common.chain_index != 0) in mlx5e_rep_setup_ft_cb() 235 tmp.common.chain_index = mlx5_chains_get_nf_ft_chain(esw_chains(esw)); in mlx5e_rep_setup_ft_cb() 413 tmp.common.chain_index) in mlx5e_rep_indr_setup_ft_cb() 416 tmp.common.chain_index = mlx5_chains_get_nf_ft_chain(esw_chains(esw)); in mlx5e_rep_indr_setup_ft_cb()
|
/linux/drivers/net/ethernet/sfc/ |
H A D | tc.c | 691 u32 chain_index, in efx_tc_get_recirc_id() argument 700 rid->chain_index = chain_index; in efx_tc_get_recirc_id() 994 if (!fa->chain_index) { in efx_tc_flower_handle_lhs_actions() 998 rid = efx_tc_get_recirc_id(efx, fa->chain_index, in efx_tc_flower_handle_lhs_actions() 1567 if (tc->common.chain_index) { in efx_tc_flower_replace_foreign_lhs() 1705 if (tc->common.chain_index) { in efx_tc_flower_replace_foreign() 1708 rid = efx_tc_get_recirc_id(efx, tc->common.chain_index, net_dev); in efx_tc_flower_replace_foreign() 1712 tc->common.chain_index); in efx_tc_flower_replace_foreign() 1789 } else if (!tc->common.chain_index) { in efx_tc_flower_replace_foreign() 2002 if (tc->common.chain_index) { in efx_tc_flower_replace_lhs() [all …]
|
H A D | tc.h | 172 u32 chain_index; member
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_selftests.c | 1121 cls_u32.common.chain_index = 0; in stmmac_test_rxp() 1367 cls->common.chain_index = 0; in __stmmac_test_l3filt() 1495 cls->common.chain_index = 0; in __stmmac_test_l4filt()
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_main.c | 8371 if (cls_flower->common.chain_index) in ice_setup_tc_cls_flower()
|