Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dbridge.c55 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()
1032 struct mlx5_pkt_reformat_params reformat_params = {}; in mlx5_esw_bridge_vlan_push_create() local
1043 reformat_params.type = MLX5_REFORMAT_TYPE_INSERT_HDR; in mlx5_esw_bridge_vlan_push_create()
1044 reformat_params.param_0 = MLX5_REFORMAT_CONTEXT_ANCHOR_MAC_START; in mlx5_esw_bridge_vlan_push_create()
1045 reformat_params.param_1 = offsetof(struct vlan_ethhdr, h_vlan_proto); in mlx5_esw_bridge_vlan_push_create()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_fs.c1749 struct mlx5_pkt_reformat_params *reformat_params) in setup_pkt_tunnel_reformat() argument
1797 reformat_params->type = MLX5_REFORMAT_TYPE_L3_ESP_TUNNEL_TO_L2; in setup_pkt_tunnel_reformat()
1800 reformat_params->type = MLX5_REFORMAT_TYPE_L2_TO_L3_ESP_TUNNEL; in setup_pkt_tunnel_reformat()
1801 reformat_params->param_0 = attrs->authsize; in setup_pkt_tunnel_reformat()
1835 reformat_params->size = bfflen; in setup_pkt_tunnel_reformat()
1836 reformat_params->data = reformatbf; in setup_pkt_tunnel_reformat()
1870 struct mlx5_pkt_reformat_params *reformat_params) in setup_pkt_transport_reformat() argument
1878 reformat_params->type = get_reformat_type(attrs); in setup_pkt_transport_reformat()
1879 if (reformat_params->type < 0) in setup_pkt_transport_reformat()
1880 return reformat_params->type; in setup_pkt_transport_reformat()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dmacsec_fs.c801 struct mlx5_pkt_reformat_params reformat_params = {}; in macsec_fs_tx_add_rule() local
835 reformat_params.type = MLX5_REFORMAT_TYPE_ADD_MACSEC; in macsec_fs_tx_add_rule()
836 reformat_params.size = reformat_size; in macsec_fs_tx_add_rule()
837 reformat_params.data = reformatbf; in macsec_fs_tx_add_rule()
840 reformat_params.param_0 = MLX5_REFORMAT_PARAM_ADD_MACSEC_OFFSET_4_BYTES; in macsec_fs_tx_add_rule()
843 &reformat_params, in macsec_fs_tx_add_rule()
1139 struct mlx5_pkt_reformat_params reformat_params = {}; in macsec_fs_rx_create_check_decap_rule() local
1154 reformat_params.type = MLX5_REFORMAT_TYPE_DEL_MACSEC; in macsec_fs_rx_create_check_decap_rule()
1155 reformat_params.size = reformat_param_size; in macsec_fs_rx_create_check_decap_rule()
1156 reformat_params.data = mlx5_reformat_buf; in macsec_fs_rx_create_check_decap_rule()
[all …]