Home
last modified time | relevance | path

Searched refs:mapped_obj (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dtc.c800 struct mlx5_mapped_obj *mapped_obj, in mlx5e_restore_skb_sample() argument
803 if (!mlx5e_restore_tunnel(priv, skb, tc_priv, mapped_obj->sample.tunnel_id)) { in mlx5e_restore_skb_sample()
808 mlx5e_tc_sample_skb(skb, mapped_obj); in mlx5e_restore_skb_sample()
813 struct mlx5_mapped_obj *mapped_obj, in mlx5e_restore_skb_int_port() argument
831 mapped_obj->int_port_metadata, forward_tx)) { in mlx5e_restore_skb_int_port()
846 struct mlx5_mapped_obj mapped_obj; in mlx5e_rep_tc_receive() local
864 err = mapping_find(esw->offloads.reg_c0_obj_pool, reg_c0, &mapped_obj); in mlx5e_rep_tc_receive()
872 if (mapped_obj.type == MLX5_MAPPED_OBJ_CHAIN) { in mlx5e_rep_tc_receive()
873 if (!mlx5e_restore_skb_chain(skb, mapped_obj.chain, reg_c1, &tc_priv) && in mlx5e_rep_tc_receive()
876 } else if (mapped_obj.type == MLX5_MAPPED_OBJ_SAMPLE) { in mlx5e_rep_tc_receive()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dsample.h24 void mlx5e_tc_sample_skb(struct sk_buff *skb, struct mlx5_mapped_obj *mapped_obj);
63 mlx5e_tc_sample_skb(struct sk_buff *skb, struct mlx5_mapped_obj *mapped_obj) {} in mlx5e_tc_sample_skb() argument
Dint_port.c155 struct mlx5_mapped_obj mapped_obj = {}; in mlx5e_int_port_add() local
183 mapped_obj.type = MLX5_MAPPED_OBJ_INT_PORT_METADATA; in mlx5e_int_port_add()
184 mapped_obj.int_port_metadata = match_metadata; in mlx5e_int_port_add()
185 err = mapping_add(ctx, &mapped_obj, &mapping); in mlx5e_int_port_add()
Dsample.c326 void mlx5e_tc_sample_skb(struct sk_buff *skb, struct mlx5_mapped_obj *mapped_obj) in mlx5e_tc_sample_skb() argument
328 u32 trunc_size = mapped_obj->sample.trunc_size; in mlx5e_tc_sample_skb()
334 psample_group.group_num = mapped_obj->sample.group_id; in mlx5e_tc_sample_skb()
338 psample_sample_packet(&psample_group, skb, mapped_obj->sample.rate, &md); in mlx5e_tc_sample_skb()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dfs_chains.c797 struct mlx5_mapped_obj mapped_obj = {}; in mlx5_chains_get_chain_mapping() local
799 mapped_obj.type = MLX5_MAPPED_OBJ_CHAIN; in mlx5_chains_get_chain_mapping()
800 mapped_obj.chain = chain; in mlx5_chains_get_chain_mapping()
801 return mapping_add(ctx, &mapped_obj, chain_mapping); in mlx5_chains_get_chain_mapping()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c5254 struct mlx5_mapped_obj mapped_obj; in mlx5e_tc_update_skb() local
5263 err = mapping_find(tc->mapping, chain_tag, &mapped_obj); in mlx5e_tc_update_skb()
5271 if (mapped_obj.type == MLX5_MAPPED_OBJ_CHAIN) { in mlx5e_tc_update_skb()
5272 chain = mapped_obj.chain; in mlx5e_tc_update_skb()
5286 netdev_dbg(priv->netdev, "Invalid mapped object type: %d\n", mapped_obj.type); in mlx5e_tc_update_skb()