Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
A Dtc.c682 struct mlx5_mapped_obj *mapped_obj, in mlx5e_restore_skb_sample() argument
690 mlx5e_tc_sample_skb(skb, mapped_obj); in mlx5e_restore_skb_sample()
695 struct mlx5_mapped_obj *mapped_obj, in mlx5e_restore_skb_int_port() argument
713 mapped_obj->int_port_metadata, forward_tx)) { in mlx5e_restore_skb_int_port()
728 struct mlx5_mapped_obj mapped_obj; in mlx5e_rep_tc_receive() local
746 err = mapping_find(esw->offloads.reg_c0_obj_pool, reg_c0, &mapped_obj); in mlx5e_rep_tc_receive()
754 if (mapped_obj.type == MLX5_MAPPED_OBJ_CHAIN) { in mlx5e_rep_tc_receive()
758 } else if (mapped_obj.type == MLX5_MAPPED_OBJ_SAMPLE) { in mlx5e_rep_tc_receive()
759 mlx5e_restore_skb_sample(priv, skb, &mapped_obj, &tc_priv); in mlx5e_rep_tc_receive()
761 } else if (mapped_obj.type == MLX5_MAPPED_OBJ_INT_PORT_METADATA) { in mlx5e_rep_tc_receive()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
A 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
A 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()
A Dsample.c349 void mlx5e_tc_sample_skb(struct sk_buff *skb, struct mlx5_mapped_obj *mapped_obj) in mlx5e_tc_sample_skb() argument
351 u32 trunc_size = mapped_obj->sample.trunc_size; in mlx5e_tc_sample_skb()
357 psample_group.group_num = mapped_obj->sample.group_id; in mlx5e_tc_sample_skb()
361 psample_sample_packet(&psample_group, skb, mapped_obj->sample.rate, &md); in mlx5e_tc_sample_skb()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
A Dfs_chains.c796 struct mlx5_mapped_obj mapped_obj = {}; in mlx5_chains_get_chain_mapping() local
798 mapped_obj.type = MLX5_MAPPED_OBJ_CHAIN; in mlx5_chains_get_chain_mapping()
799 mapped_obj.chain = chain; in mlx5_chains_get_chain_mapping()
800 return mapping_add(ctx, &mapped_obj, chain_mapping); in mlx5_chains_get_chain_mapping()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_tc.c5416 struct mlx5_mapped_obj mapped_obj; in mlx5e_tc_update_skb() local
5424 err = mapping_find(tc->mapping, chain_tag, &mapped_obj); in mlx5e_tc_update_skb()
5432 if (mapped_obj.type == MLX5_MAPPED_OBJ_CHAIN) { in mlx5e_tc_update_skb()
5433 chain = mapped_obj.chain; in mlx5e_tc_update_skb()
5447 netdev_dbg(priv->netdev, "Invalid mapped object type: %d\n", mapped_obj.type); in mlx5e_tc_update_skb()

Completed in 27 milliseconds