| /drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| A D | port_tun.c | 86 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 …]
|
| A D | port_tun.h | 20 int reformat_type); 22 int reformat_type);
|
| /drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| A D | fs_hws_pools.c | 16 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() 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() 93 switch (pr_pool_ctx->reformat_type) { in mlx5_fs_pr_bulk_action_create() 177 enum mlx5hws_action_type reformat_type) in mlx5_fs_hws_pr_pool_init() argument 181 if (reformat_type != MLX5HWS_ACTION_TYP_INSERT_HEADER && in mlx5_fs_hws_pr_pool_init() [all …]
|
| A D | fs_hws_pools.h | 35 enum mlx5hws_action_type reformat_type; member 54 enum mlx5hws_action_type reformat_type);
|
| A D | fs_hws.c | 798 int reformat_type = fte_action->pkt_reformat->reformat_type; in mlx5_fs_fte_get_hws_actions() local 806 if (reformat_type == MLX5_REFORMAT_TYPE_L3_TUNNEL_TO_L2) { in mlx5_fs_fte_get_hws_actions() 813 } else if (reformat_type == MLX5_REFORMAT_TYPE_REMOVE_HDR) { in mlx5_fs_fte_get_hws_actions() 1236 enum mlx5hws_action_type reformat_type, size_t size) in mlx5_fs_get_pr_encap_pool() argument 1249 err = mlx5_fs_hws_pr_pool_init(pr_pool, dev, size, reformat_type); in mlx5_fs_get_pr_encap_pool() 1388 if (pkt_reformat->reformat_type == MLX5_REFORMAT_TYPE_REMOVE_HDR) in mlx5_cmd_hws_packet_reformat_dealloc() 1397 switch (pkt_reformat->reformat_type) { in mlx5_cmd_hws_packet_reformat_dealloc() 1573 params.type = pkt_reformat->reformat_type; in mlx5_fs_hws_action_get_pkt_reformat_id()
|
| A D | mlx5hws.h | 666 enum mlx5hws_action_type reformat_type,
|
| A D | action.c | 1151 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()
|
| A D | cmd.c | 836 MLX5_SET(packet_reformat_context_in, prctx, reformat_type, attr->type); in mlx5hws_cmd_packet_reformat_create()
|
| /drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ |
| A D | dr_action.c | 508 switch (reformat_type) { in dr_action_reformat_to_action_type() 1373 dr_action_verify_reformat_params(enum mlx5dr_action_type reformat_type, in dr_action_verify_reformat_params() argument 1380 if (reformat_type == DR_ACTION_TYP_INSERT_HDR) { in dr_action_verify_reformat_params() 1387 } else if (reformat_type == DR_ACTION_TYP_REMOVE_HDR) { in dr_action_verify_reformat_params() 1395 reformat_type > DR_ACTION_TYP_REMOVE_HDR) { in dr_action_verify_reformat_params() 1404 if (reformat_type != DR_ACTION_TYP_TNL_L2_TO_L2 && in dr_action_verify_reformat_params() 1405 reformat_type != DR_ACTION_TYP_TNL_L3_TO_L2) { in dr_action_verify_reformat_params() 1410 if (reformat_type != DR_ACTION_TYP_L2_TO_TNL_L2 && in dr_action_verify_reformat_params() 1411 reformat_type != DR_ACTION_TYP_L2_TO_TNL_L3) { in dr_action_verify_reformat_params() 1544 enum mlx5dr_action_reformat_type reformat_type, in mlx5dr_action_create_packet_reformat() argument [all …]
|
| A D | mlx5dr.h | 117 enum mlx5dr_action_reformat_type reformat_type,
|
| A D | fs_dr.c | 343 is_decap = pkt_reformat->reformat_type == in mlx5_cmd_dr_create_fte() 842 switch (pkt_reformat->reformat_type) { in mlx5_fs_dr_action_get_pkt_reformat_id()
|
| A D | dr_cmd.c | 558 MLX5_SET(packet_reformat_context_in, prctx, reformat_type, rt); in mlx5dr_cmd_create_reformat_ctx()
|
| /drivers/net/ethernet/mellanox/mlx5/core/en/ |
| A D | tc_tun.c | 313 reformat_params.type = e->reformat_type; in mlx5e_tc_tun_create_header_ipv4() 419 reformat_params.type = e->reformat_type; in mlx5e_tc_tun_update_header_ipv4() 583 reformat_params.type = e->reformat_type; in mlx5e_tc_tun_create_header_ipv6() 688 reformat_params.type = e->reformat_type; in mlx5e_tc_tun_update_header_ipv6() 790 e->reformat_type = -1; in mlx5e_tc_tun_init_encap_attr()
|
| A D | tc_tun_gre.c | 23 e->reformat_type = MLX5_REFORMAT_TYPE_L2_TO_NVGRE; in mlx5e_tc_tun_init_encap_attr_gretap()
|
| A D | tc_tun_mplsoudp.c | 24 e->reformat_type = MLX5_REFORMAT_TYPE_L2_TO_L3_TUNNEL; in init_encap_attr()
|
| A D | tc_tun_vxlan.c | 79 e->reformat_type = MLX5_REFORMAT_TYPE_L2_TO_VXLAN; in mlx5e_tc_tun_init_encap_attr_vxlan()
|
| A D | tc_tun_geneve.c | 75 e->reformat_type = MLX5_REFORMAT_TYPE_L2_TO_VXLAN; in mlx5e_tc_tun_init_encap_attr_geneve()
|
| A D | tc_tun_encap.c | 168 reformat_params.type = e->reformat_type; in mlx5e_tc_encap_flows_add()
|
| /drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
| A D | tc.c | 44 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()
|
| /drivers/net/ethernet/mellanox/mlx5/core/ |
| A D | en_rep.h | 218 int reformat_type; member
|
| A D | fs_core.h | 76 int reformat_type; /* from mlx5_ifc */ member
|
| A D | fs_cmd.c | 591 pkt_reformat->reformat_type); in mlx5_cmd_set_fte() 913 reformat_type, params->type); in mlx5_cmd_packet_reformat_alloc()
|
| A D | fs_core.c | 4134 pkt_reformat->reformat_type = params->type; in mlx5_packet_reformat_alloc()
|