Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dtc.c642 struct mlx5_mapped_obj *mapped_obj, in mlx5e_restore_skb_sample() argument
645 if (!mlx5e_restore_tunnel(priv, skb, tc_priv, mapped_obj->sample.tunnel_id)) { in mlx5e_restore_skb_sample()
650 mlx5e_tc_sample_skb(skb, mapped_obj); in mlx5e_restore_skb_sample()
658 struct mlx5_mapped_obj mapped_obj; in mlx5e_rep_tc_update_skb() local
675 err = mapping_find(esw->offloads.reg_c0_obj_pool, reg_c0, &mapped_obj); in mlx5e_rep_tc_update_skb()
683 if (mapped_obj.type == MLX5_MAPPED_OBJ_CHAIN) { in mlx5e_rep_tc_update_skb()
686 return mlx5e_restore_skb_chain(skb, mapped_obj.chain, reg_c1, tc_priv); in mlx5e_rep_tc_update_skb()
687 } else if (mapped_obj.type == MLX5_MAPPED_OBJ_SAMPLE) { in mlx5e_rep_tc_update_skb()
688 mlx5e_restore_skb_sample(priv, skb, &mapped_obj, tc_priv); in mlx5e_rep_tc_update_skb()
691 netdev_dbg(priv->netdev, "Invalid mapped object type: %d\n", mapped_obj.type); in mlx5e_rep_tc_update_skb()
/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);
65 mlx5e_tc_sample_skb(struct sk_buff *skb, struct mlx5_mapped_obj *mapped_obj) {} in mlx5e_tc_sample_skb() argument
Dsample.c350 void mlx5e_tc_sample_skb(struct sk_buff *skb, struct mlx5_mapped_obj *mapped_obj) in mlx5e_tc_sample_skb() argument
352 u32 trunc_size = mapped_obj->sample.trunc_size; in mlx5e_tc_sample_skb()
358 psample_group.group_num = mapped_obj->sample.group_id; in mlx5e_tc_sample_skb()
362 psample_sample_packet(&psample_group, skb, mapped_obj->sample.rate, &md); in mlx5e_tc_sample_skb()
/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()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c5284 struct mlx5_mapped_obj mapped_obj; in mlx5e_tc_update_skb() local
5292 err = mapping_find(tc->mapping, chain_tag, &mapped_obj); in mlx5e_tc_update_skb()
5300 if (mapped_obj.type == MLX5_MAPPED_OBJ_CHAIN) { in mlx5e_tc_update_skb()
5301 chain = mapped_obj.chain; in mlx5e_tc_update_skb()
5315 netdev_dbg(priv->netdev, "Invalid mapped object type: %d\n", mapped_obj.type); in mlx5e_tc_update_skb()