]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Increase hairpin buffer size
authorAriel Levkovich <lariel@nvidia.com>
Wed, 2 Dec 2020 19:46:04 +0000 (21:46 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 26 Jun 2021 07:31:18 +0000 (00:31 -0700)
commit146ba7efd09703c1d978635d1a9a4ece96203eae
treeaf9d4e6eaa353d78efc136b11c5a617b759e3356
parentd973920371199098e5ac1f7ba01364f88a873d71
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 <lariel@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c