Home
last modified time | relevance | path

Searched refs:reformat_params (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c222 struct mlx5_pkt_reformat_params reformat_params; in mlx5e_tc_tun_create_header_ipv4() local
307 memset(&reformat_params, 0, sizeof(reformat_params)); in mlx5e_tc_tun_create_header_ipv4()
308 reformat_params.type = e->reformat_type; in mlx5e_tc_tun_create_header_ipv4()
309 reformat_params.size = ipv4_encap_size; in mlx5e_tc_tun_create_header_ipv4()
310 reformat_params.data = encap_header; in mlx5e_tc_tun_create_header_ipv4()
311 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, &reformat_params, in mlx5e_tc_tun_create_header_ipv4()
338 struct mlx5_pkt_reformat_params reformat_params; in mlx5e_tc_tun_update_header_ipv4() local
412 memset(&reformat_params, 0, sizeof(reformat_params)); in mlx5e_tc_tun_update_header_ipv4()
413 reformat_params.type = e->reformat_type; in mlx5e_tc_tun_update_header_ipv4()
414 reformat_params.size = ipv4_encap_size; in mlx5e_tc_tun_update_header_ipv4()
[all …]
Dtc_tun_encap.c123 struct mlx5_pkt_reformat_params reformat_params; in mlx5e_tc_encap_flows_add() local
134 memset(&reformat_params, 0, sizeof(reformat_params)); in mlx5e_tc_encap_flows_add()
135 reformat_params.type = e->reformat_type; in mlx5e_tc_encap_flows_add()
136 reformat_params.size = e->encap_size; in mlx5e_tc_encap_flows_add()
137 reformat_params.data = e->encap_header; in mlx5e_tc_encap_flows_add()
139 &reformat_params, in mlx5e_tc_encap_flows_add()
846 struct mlx5_pkt_reformat_params reformat_params; in mlx5e_attach_decap() local
888 memset(&reformat_params, 0, sizeof(reformat_params)); in mlx5e_attach_decap()
889 reformat_params.type = MLX5_REFORMAT_TYPE_L3_TUNNEL_TO_L2; in mlx5e_attach_decap()
890 reformat_params.size = sizeof(parse_attr->eth); in mlx5e_attach_decap()
[all …]
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dbridge.c762 struct mlx5_pkt_reformat_params reformat_params = {}; in mlx5_esw_bridge_vlan_push_create() local
773 reformat_params.type = MLX5_REFORMAT_TYPE_INSERT_HDR; in mlx5_esw_bridge_vlan_push_create()
774 reformat_params.param_0 = MLX5_REFORMAT_CONTEXT_ANCHOR_MAC_START; in mlx5_esw_bridge_vlan_push_create()
775 reformat_params.param_1 = offsetof(struct vlan_ethhdr, h_vlan_proto); in mlx5_esw_bridge_vlan_push_create()
776 reformat_params.size = sizeof(vlan_hdr); in mlx5_esw_bridge_vlan_push_create()
777 reformat_params.data = &vlan_hdr; in mlx5_esw_bridge_vlan_push_create()
779 &reformat_params, in mlx5_esw_bridge_vlan_push_create()
801 struct mlx5_pkt_reformat_params reformat_params = {}; in mlx5_esw_bridge_vlan_pop_create() local
812 reformat_params.type = MLX5_REFORMAT_TYPE_REMOVE_HDR; in mlx5_esw_bridge_vlan_pop_create()
813 reformat_params.param_0 = MLX5_REFORMAT_CONTEXT_ANCHOR_MAC_START; in mlx5_esw_bridge_vlan_pop_create()
[all …]
/Linux-v5.15/drivers/infiniband/hw/mlx5/
Dfs.c2288 struct mlx5_pkt_reformat_params reformat_params; in mlx5_ib_flow_action_create_packet_reformat_ctx() local
2301 memset(&reformat_params, 0, sizeof(reformat_params)); in mlx5_ib_flow_action_create_packet_reformat_ctx()
2302 reformat_params.type = prm_prt; in mlx5_ib_flow_action_create_packet_reformat_ctx()
2303 reformat_params.size = len; in mlx5_ib_flow_action_create_packet_reformat_ctx()
2304 reformat_params.data = in; in mlx5_ib_flow_action_create_packet_reformat_ctx()
2306 mlx5_packet_reformat_alloc(dev->mdev, &reformat_params, in mlx5_ib_flow_action_create_packet_reformat_ctx()