Skip to content

Commit 6cdc686

Browse files
Awik84Saeed Mahameed
authored andcommitted
net/mlx5: Increase hairpin buffer size
The max packet size a hairpin queue is able to handle is determined by the total hairpin buffer size divided by 4. Currently the buffer size is set to 32KB which makes the max packet size to be 8KB and doesn't support jumbo frames of size 9KB. This change increases the buffer size to 64KB to increase the max frame size and support 9KB frames. Signed-off-by: Ariel Levkovich <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 1ab6dc3 commit 6cdc686

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_tc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ static int mlx5e_hairpin_flow_add(struct mlx5e_priv *priv,
846846
hash_hairpin_info(peer_id, match_prio));
847847
mutex_unlock(&priv->fs.tc.hairpin_tbl_lock);
848848

849-
params.log_data_size = 15;
849+
params.log_data_size = 16;
850850
params.log_data_size = min_t(u8, params.log_data_size,
851851
MLX5_CAP_GEN(priv->mdev, log_max_hairpin_wq_data_sz));
852852
params.log_data_size = max_t(u8, params.log_data_size,

0 commit comments

Comments
 (0)