Home
last modified time | relevance | path

Searched refs:reformat_type (Results 1 – 17 of 17) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dport_tun.c86 int reformat_type, bool enable) in mlx5_set_entropy() argument
98 reformat_type == MLX5_REFORMAT_TYPE_L2_TO_NVGRE) { in mlx5_set_entropy()
144 int reformat_type) in mlx5_tun_entropy_refcount_inc() argument
149 if ((reformat_type == MLX5_REFORMAT_TYPE_L2_TO_VXLAN || in mlx5_tun_entropy_refcount_inc()
150 reformat_type == MLX5_REFORMAT_TYPE_L2_TO_L3_TUNNEL) && in mlx5_tun_entropy_refcount_inc()
158 } else if (reformat_type == MLX5_REFORMAT_TYPE_L2_TO_NVGRE) { in mlx5_tun_entropy_refcount_inc()
164 err = mlx5_set_entropy(tun_entropy, reformat_type, 0); in mlx5_tun_entropy_refcount_inc()
176 int reformat_type) in mlx5_tun_entropy_refcount_dec() argument
179 if (reformat_type == MLX5_REFORMAT_TYPE_L2_TO_VXLAN) in mlx5_tun_entropy_refcount_dec()
181 else if (reformat_type == MLX5_REFORMAT_TYPE_L2_TO_NVGRE && in mlx5_tun_entropy_refcount_dec()
[all …]
H A Dport_tun.h20 int reformat_type);
22 int reformat_type);
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dfs_hws_pools.c16 enum mlx5hws_action_type reformat_type; in mlx5_fs_dl3tnltol2_bulk_action_create() local
19 reformat_type = MLX5HWS_ACTION_TYP_REFORMAT_TNL_L3_TO_L2; in mlx5_fs_dl3tnltol2_bulk_action_create()
24 return mlx5hws_action_create_reformat(ctx, reformat_type, 2, in mlx5_fs_dl3tnltol2_bulk_action_create()
33 enum mlx5hws_action_type reformat_type; in mlx5_fs_el2tol3tnl_bulk_action_create() local
36 reformat_type = MLX5HWS_ACTION_TYP_REFORMAT_L2_TO_TNL_L3; in mlx5_fs_el2tol3tnl_bulk_action_create()
40 return mlx5hws_action_create_reformat(ctx, reformat_type, 1, in mlx5_fs_el2tol3tnl_bulk_action_create()
49 enum mlx5hws_action_type reformat_type; in mlx5_fs_el2tol2tnl_bulk_action_create() local
52 reformat_type = MLX5HWS_ACTION_TYP_REFORMAT_L2_TO_TNL_L2; in mlx5_fs_el2tol2tnl_bulk_action_create()
56 return mlx5hws_action_create_reformat(ctx, reformat_type, 1, in mlx5_fs_el2tol2tnl_bulk_action_create()
93 switch (pr_pool_ctx->reformat_type) { in mlx5_fs_pr_bulk_action_create()
[all …]
H A Dfs_hws.c799 int reformat_type = fte_action->pkt_reformat->reformat_type; in mlx5_fs_fte_get_hws_actions() local
807 if (reformat_type == MLX5_REFORMAT_TYPE_L3_TUNNEL_TO_L2) { in mlx5_fs_fte_get_hws_actions()
814 } else if (reformat_type == MLX5_REFORMAT_TYPE_REMOVE_HDR) { in mlx5_fs_fte_get_hws_actions()
1232 enum mlx5hws_action_type reformat_type, size_t size) in mlx5_fs_get_pr_encap_pool() argument
1245 err = mlx5_fs_hws_pr_pool_init(pr_pool, dev, size, reformat_type); in mlx5_fs_get_pr_encap_pool()
1384 if (pkt_reformat->reformat_type == MLX5_REFORMAT_TYPE_REMOVE_HDR) in mlx5_cmd_hws_packet_reformat_dealloc()
1393 switch (pkt_reformat->reformat_type) { in mlx5_cmd_hws_packet_reformat_dealloc()
1569 params.type = pkt_reformat->reformat_type; in mlx5_fs_hws_action_get_pkt_reformat_id()
H A Dmlx5hws.h667 enum mlx5hws_action_type reformat_type,
H A Daction.c1151 enum mlx5hws_action_type reformat_type, in mlx5hws_action_create_reformat() argument
1165 action = hws_action_create_generic_bulk(ctx, flags, reformat_type, num_of_hdrs); in mlx5hws_action_create_reformat()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_gre.c23 e->reformat_type = MLX5_REFORMAT_TYPE_L2_TO_NVGRE; in mlx5e_tc_tun_init_encap_attr_gretap()
H A Dtc_tun_mplsoudp.c24 e->reformat_type = MLX5_REFORMAT_TYPE_L2_TO_L3_TUNNEL; in init_encap_attr()
H A Dtc_tun_vxlan.c79 e->reformat_type = MLX5_REFORMAT_TYPE_L2_TO_VXLAN; in mlx5e_tc_tun_init_encap_attr_vxlan()
H A Dtc_tun_geneve.c75 e->reformat_type = MLX5_REFORMAT_TYPE_L2_TO_VXLAN; in mlx5e_tc_tun_init_encap_attr_geneve()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
H A Dtc.c44 err = mlx5_tun_entropy_refcount_inc(tun_entropy, e->reformat_type); in mlx5e_rep_encap_entry_attach()
55 e->reformat_type); in mlx5e_rep_encap_entry_attach()
86 mlx5_tun_entropy_refcount_dec(tun_entropy, e->reformat_type); in mlx5e_rep_encap_entry_detach()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Dmlx5dr.h117 enum mlx5dr_action_reformat_type reformat_type,
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_rep.h218 int reformat_type; member
H A Dfs_core.h76 int reformat_type; /* from mlx5_ifc */ member
H A Dfs_cmd.c618 pkt_reformat->reformat_type); in mlx5_cmd_set_fte()
944 reformat_type, params->type); in mlx5_cmd_packet_reformat_alloc()
H A Dfs_core.c4186 pkt_reformat->reformat_type = params->type; in mlx5_packet_reformat_alloc()
/linux/include/linux/mlx5/
H A Dmlx5_ifc.h7138 u8 reformat_type[0x8]; member