Searched refs:chain_index (Results 1 - 25 of 34) sorted by relevance

12

/linux-master/drivers/net/ethernet/marvell/prestera/
H A Dprestera_flower.h22 int prestera_flower_prio_get(struct prestera_flow_block *block, u32 chain_index,
H A Dprestera_acl.h133 u32 chain_index; member in struct:prestera_acl_rule
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 Dprestera_flower.c13 u32 chain_index; member in struct:prestera_flower_template
36 u32 chain_index,
41 if (act->chain_index <= chain_index)
49 act->chain_index);
64 u32 chain_index,
83 err = prestera_acl_chain_to_client(chain_index, block->ingress,
124 chain_index,
366 f->common.chain_index,
400 int prestera_flower_prio_get(struct prestera_flow_block *block, u32 chain_index, 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) 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) argument
[all...]
H A Dprestera_acl.c25 u32 chain_index; member in struct:prestera_acl_ruleset_ht_key
102 int prestera_acl_chain_to_client(u32 chain_index, bool ingress, u32 *client) argument
112 if (chain_index > 0)
119 if (chain_index >= ARRAY_SIZE(ingress_client_map))
122 *client = ingress_client_map[chain_index];
126 static bool prestera_acl_chain_is_supported(u32 chain_index, bool ingress) argument
130 return chain_index == 0;
132 return (chain_index & ~PRESTERA_ACL_CHAIN_MASK) == 0;
138 u32 chain_index)
144 if (!prestera_acl_chain_is_supported(chain_index, bloc
136 prestera_acl_ruleset_create(struct prestera_acl *acl, struct prestera_flow_block *block, u32 chain_index) argument
269 __prestera_acl_ruleset_lookup(struct prestera_acl *acl, struct prestera_flow_block *block, u32 chain_index) argument
283 prestera_acl_ruleset_lookup(struct prestera_acl *acl, struct prestera_flow_block *block, u32 chain_index) argument
298 prestera_acl_ruleset_get(struct prestera_acl *acl, struct prestera_flow_block *block, u32 chain_index) argument
436 prestera_acl_rule_create(struct prestera_acl_ruleset *ruleset, unsigned long cookie, u32 chain_index) argument
[all...]
H A Dprestera_matchall.c21 err = prestera_flower_prio_get(block, f->common.chain_index,
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dgoto.c18 u32 dest_chain = act->chain_index;
81 attr->dest_chain = act->chain_index;
/linux-master/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_tc_matchall.c27 return lan966x_goto_port_add(port, f->common.chain_index,
28 act->chain_index, f->cookie,
H A Dlan966x_tc_flower.c287 if (!vcap_is_next_lookup(vctrl, fco->common.chain_index,
288 last_actent->chain_index)) {
293 } else if (!vcap_is_last_chain(vctrl, fco->common.chain_index,
388 diff = vcap_chain_offset(vctrl, f->common.chain_index, to_cid);
458 f->common.chain_index, VCAP_USER_TC,
469 f->common.chain_index);
504 f, act->chain_index);
602 f->common.chain_index);
/linux-master/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_tc_matchall.c34 tmo->common.chain_index,
35 action->chain_index, tmo->cookie,
H A Dsparx5_tc_flower.c313 if (!vcap_is_next_lookup(vctrl, fco->common.chain_index,
314 last_actent->chain_index)) {
319 } else if (!vcap_is_last_chain(vctrl, fco->common.chain_index,
1083 if (ftp->cid != fco->common.chain_index)
1122 vrule = vcap_alloc_rule(vctrl, ndev, fco->common.chain_index, VCAP_USER_TC,
1140 fco->common.chain_index);
1182 fco->common.chain_index,
1183 act->chain_index);
1381 count = vcap_admin_rule_count(admin, fco->common.chain_index);
1392 ftp->cid = fco->common.chain_index;
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl.c51 u32 chain_index; member in struct:mlxsw_sp_acl_ruleset_ht_key
167 struct mlxsw_sp_flow_block *block, u32 chain_index,
182 ruleset->ht_key.chain_index = chain_index;
239 struct mlxsw_sp_flow_block *block, u32 chain_index,
246 ht_key.chain_index = chain_index;
254 struct mlxsw_sp_flow_block *block, u32 chain_index,
264 ruleset = __mlxsw_sp_acl_ruleset_lookup(acl, block, chain_index, ops);
272 struct mlxsw_sp_flow_block *block, u32 chain_index,
166 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) argument
238 __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) argument
253 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) argument
271 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) argument
[all...]
H A Dspectrum_flower.c130 u32 chain_index = act->chain_index; local
135 chain_index,
706 err = mlxsw_sp_mall_prio_get(block, f->common.chain_index,
740 f->common.chain_index,
785 f->common.chain_index,
813 f->common.chain_index,
851 f->common.chain_index,
866 f->common.chain_index,
877 u32 chain_index, unsigne
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) argument
[all...]
H A Dspectrum_matchall.c218 if (f->common.chain_index) {
228 err = mlxsw_sp_flower_prio_get(mlxsw_sp, block, f->common.chain_index,
365 int mlxsw_sp_mall_prio_get(struct mlxsw_sp_flow_block *block, u32 chain_index, argument
368 if (chain_index || list_empty(&block->mall.list))
H A Dspectrum.h987 struct mlxsw_sp_flow_block *block, u32 chain_index,
991 struct mlxsw_sp_flow_block *block, u32 chain_index,
1234 int mlxsw_sp_mall_prio_get(struct mlxsw_sp_flow_block *block, u32 chain_index,
1255 u32 chain_index, unsigned int *p_min_prio,
/linux-master/net/sched/
H A Dcls_api.c57 u32 chain_index; member in struct:tcf_exts_miss_cookie_node
91 n->chain_index = tp->chain->index;
470 u32 chain_index)
482 chain->index = chain_index;
566 u32 chain_index)
573 if (chain->index == chain_index)
581 u32 chain_index)
586 if (chain->index == chain_index)
598 u32 chain_index, bool create,
605 chain = tcf_chain_lookup(block, chain_index);
469 tcf_chain_create(struct tcf_block *block, u32 chain_index) argument
565 tcf_chain_lookup(struct tcf_block *block, u32 chain_index) argument
580 tcf_chain_lookup_rcu(const struct tcf_block *block, u32 chain_index) argument
597 __tcf_chain_get(struct tcf_block *block, u32 chain_index, bool create, bool by_act) argument
637 tcf_chain_get(struct tcf_block *block, u32 chain_index, bool create) argument
643 tcf_chain_get_by_act(struct tcf_block *block, u32 chain_index) argument
2182 u32 chain_index; local
2415 u32 chain_index; local
2571 u32 chain_index; local
2875 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) argument
2964 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) argument
3046 u32 chain_index; local
[all...]
H A Dact_gact.c254 entry->chain_index = tcf_gact_goto_chain_index(act);
/linux-master/drivers/net/ethernet/netronome/nfp/flower/
H A Dconntrack.h117 * @chain_index: Chain index of the original flow
133 u32 chain_index; member in struct:nfp_fl_ct_flow_entry
H A Dconntrack.c70 if (flow->common.chain_index)
118 if (flow->common.chain_index && exist_ct_clear)
1288 /* Checks that the chain_index of the filter matches the
1289 * chain_index of the GOTO action.
1291 if (post_ct_entry->chain_index != pre_ct_entry->goto_chain_index)
1530 entry->chain_index = flow->common.chain_index;
1852 ct_entry->chain_index = flow->common.chain_index;
1853 ct_entry->goto_chain_index = ct_goto->chain_index;
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
H A Dtc.c232 if (tmp.common.chain_index != 0)
235 tmp.common.chain_index = mlx5_chains_get_nf_ft_chain(esw_chains(esw));
413 tmp.common.chain_index)
416 tmp.common.chain_index = mlx5_chains_get_nf_ft_chain(esw_chains(esw));
/linux-master/drivers/net/ethernet/sfc/
H A Dtc.c695 u32 chain_index,
704 rid->chain_index = chain_index;
849 * (the hardware equivalent of chain_index), while LHS rules may go in either
998 if (!fa->chain_index) {
1002 rid = efx_tc_get_recirc_id(efx, fa->chain_index,
1005 NL_SET_ERR_MSG_MOD(extack, "Failed to allocate a hardware recirculation ID for this chain_index");
1571 if (tc->common.chain_index) {
1709 if (tc->common.chain_index) {
1712 rid = efx_tc_get_recirc_id(efx, tc->common.chain_index, net_de
694 efx_tc_get_recirc_id(struct efx_nic *efx, u32 chain_index, struct net_device *net_dev) argument
[all...]
H A Dtc.h92 u8 recirc_id; /* mapped from (u32) TC chain_index to smaller space */
172 u32 chain_index; member in struct:efx_tc_recirc_id
/linux-master/drivers/net/ethernet/mscc/
H A Docelot_flower.c249 chain = f->common.chain_index;
452 filter->goto_target = a->chain_index;
873 int chain = f->common.chain_index;
944 block_id = ocelot_chain_to_block(f->common.chain_index, ingress);
982 block_id = ocelot_chain_to_block(f->common.chain_index, ingress);
/linux-master/include/net/
H A Dflow_offload.h243 u32 chain_index; /* FLOW_ACTION_GOTO */ member in union:flow_action_entry::__anon2578
595 u32 chain_index; member in struct:flow_cls_common_offload
H A Dpkt_cls.h48 u32 chain_index);
704 if (common->chain_index) {
746 cls_common->chain_index = tp->chain->index;
/linux-master/drivers/net/ethernet/freescale/enetc/
H A Denetc_qos.c1141 if (f->common.chain_index >= priv->psfp_cap.max_streamid) {
1160 filter->sid.index = f->common.chain_index;
1440 if (f->common.chain_index >= priv->psfp_cap.max_streamid) {
1445 filter = enetc_get_stream_by_index(f->common.chain_index);
1472 filter = enetc_get_stream_by_index(f->common.chain_index);

Completed in 239 milliseconds

12