Searched refs:reformat_params (Results 1 – 6 of 6) sorted by relevance
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun.c | 229 struct mlx5_pkt_reformat_params reformat_params; in mlx5e_tc_tun_create_header_ipv4() local 314 memset(&reformat_params, 0, sizeof(reformat_params)); in mlx5e_tc_tun_create_header_ipv4() 315 reformat_params.type = e->reformat_type; in mlx5e_tc_tun_create_header_ipv4() 316 reformat_params.size = ipv4_encap_size; in mlx5e_tc_tun_create_header_ipv4() 317 reformat_params.data = encap_header; in mlx5e_tc_tun_create_header_ipv4() 318 e->pkt_reformat = mlx5_packet_reformat_alloc(priv->mdev, &reformat_params, in mlx5e_tc_tun_create_header_ipv4() 345 struct mlx5_pkt_reformat_params reformat_params; in mlx5e_tc_tun_update_header_ipv4() local 419 memset(&reformat_params, 0, sizeof(reformat_params)); in mlx5e_tc_tun_update_header_ipv4() 420 reformat_params.type = e->reformat_type; in mlx5e_tc_tun_update_header_ipv4() 421 reformat_params.size = ipv4_encap_size; in mlx5e_tc_tun_update_header_ipv4() [all …]
|
D | tc_tun_encap.c | 148 struct mlx5_pkt_reformat_params reformat_params; in mlx5e_tc_encap_flows_add() local 159 memset(&reformat_params, 0, sizeof(reformat_params)); in mlx5e_tc_encap_flows_add() 160 reformat_params.type = e->reformat_type; in mlx5e_tc_encap_flows_add() 161 reformat_params.size = e->encap_size; in mlx5e_tc_encap_flows_add() 162 reformat_params.data = e->encap_header; in mlx5e_tc_encap_flows_add() 164 &reformat_params, in mlx5e_tc_encap_flows_add() 946 struct mlx5_pkt_reformat_params reformat_params; in mlx5e_attach_decap() local 986 memset(&reformat_params, 0, sizeof(reformat_params)); in mlx5e_attach_decap() 987 reformat_params.type = MLX5_REFORMAT_TYPE_L3_TUNNEL_TO_L2; in mlx5e_attach_decap() 988 reformat_params.size = sizeof(attr->eth); in mlx5e_attach_decap() [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec_fs.c | 1119 struct mlx5_pkt_reformat_params *reformat_params) in setup_pkt_tunnel_reformat() argument 1167 reformat_params->type = MLX5_REFORMAT_TYPE_L3_ESP_TUNNEL_TO_L2; in setup_pkt_tunnel_reformat() 1170 reformat_params->type = MLX5_REFORMAT_TYPE_L2_TO_L3_ESP_TUNNEL; in setup_pkt_tunnel_reformat() 1171 reformat_params->param_0 = attrs->authsize; in setup_pkt_tunnel_reformat() 1205 reformat_params->size = bfflen; in setup_pkt_tunnel_reformat() 1206 reformat_params->data = reformatbf; in setup_pkt_tunnel_reformat() 1240 struct mlx5_pkt_reformat_params *reformat_params) in setup_pkt_transport_reformat() argument 1248 reformat_params->type = get_reformat_type(attrs); in setup_pkt_transport_reformat() 1249 if (reformat_params->type < 0) in setup_pkt_transport_reformat() 1250 return reformat_params->type; in setup_pkt_transport_reformat() [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | bridge.c | 55 struct mlx5_pkt_reformat_params reformat_params = {}; in mlx5_esw_bridge_pkt_reformat_vlan_pop_create() local 57 reformat_params.type = MLX5_REFORMAT_TYPE_REMOVE_HDR; in mlx5_esw_bridge_pkt_reformat_vlan_pop_create() 58 reformat_params.param_0 = MLX5_REFORMAT_CONTEXT_ANCHOR_MAC_START; in mlx5_esw_bridge_pkt_reformat_vlan_pop_create() 59 reformat_params.param_1 = offsetof(struct vlan_ethhdr, h_vlan_proto); in mlx5_esw_bridge_pkt_reformat_vlan_pop_create() 60 reformat_params.size = sizeof(struct vlan_hdr); in mlx5_esw_bridge_pkt_reformat_vlan_pop_create() 61 return mlx5_packet_reformat_alloc(esw->dev, &reformat_params, MLX5_FLOW_NAMESPACE_FDB); in mlx5_esw_bridge_pkt_reformat_vlan_pop_create() 1028 struct mlx5_pkt_reformat_params reformat_params = {}; in mlx5_esw_bridge_vlan_push_create() local 1039 reformat_params.type = MLX5_REFORMAT_TYPE_INSERT_HDR; in mlx5_esw_bridge_vlan_push_create() 1040 reformat_params.param_0 = MLX5_REFORMAT_CONTEXT_ANCHOR_MAC_START; in mlx5_esw_bridge_vlan_push_create() 1041 reformat_params.param_1 = offsetof(struct vlan_ethhdr, h_vlan_proto); in mlx5_esw_bridge_vlan_push_create() [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | macsec_fs.c | 805 struct mlx5_pkt_reformat_params reformat_params = {}; in macsec_fs_tx_add_rule() local 839 reformat_params.type = MLX5_REFORMAT_TYPE_ADD_MACSEC; in macsec_fs_tx_add_rule() 840 reformat_params.size = reformat_size; in macsec_fs_tx_add_rule() 841 reformat_params.data = reformatbf; in macsec_fs_tx_add_rule() 844 reformat_params.param_0 = MLX5_REFORMAT_PARAM_ADD_MACSEC_OFFSET_4_BYTES; in macsec_fs_tx_add_rule() 847 &reformat_params, in macsec_fs_tx_add_rule() 1143 struct mlx5_pkt_reformat_params reformat_params = {}; in macsec_fs_rx_create_check_decap_rule() local 1158 reformat_params.type = MLX5_REFORMAT_TYPE_DEL_MACSEC; in macsec_fs_rx_create_check_decap_rule() 1159 reformat_params.size = reformat_param_size; in macsec_fs_rx_create_check_decap_rule() 1160 reformat_params.data = mlx5_reformat_buf; in macsec_fs_rx_create_check_decap_rule() [all …]
|
/linux-6.6.21/drivers/infiniband/hw/mlx5/ |
D | fs.c | 2616 struct mlx5_pkt_reformat_params reformat_params; in mlx5_ib_flow_action_create_packet_reformat_ctx() local 2629 memset(&reformat_params, 0, sizeof(reformat_params)); in mlx5_ib_flow_action_create_packet_reformat_ctx() 2630 reformat_params.type = prm_prt; in mlx5_ib_flow_action_create_packet_reformat_ctx() 2631 reformat_params.size = len; in mlx5_ib_flow_action_create_packet_reformat_ctx() 2632 reformat_params.data = in; in mlx5_ib_flow_action_create_packet_reformat_ctx() 2634 mlx5_packet_reformat_alloc(dev->mdev, &reformat_params, in mlx5_ib_flow_action_create_packet_reformat_ctx()
|