Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Mar 2025 16:03:24 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: c2987d7876a0 - main - mlx5: bump the max LRO packet size
Message-ID:  <202503131603.52DG3O2j048862@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=c2987d7876a04c292d29c74cd6f9c02a82689ed5

commit c2987d7876a04c292d29c74cd6f9c02a82689ed5
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-02-20 23:52:52 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-03-13 16:01:36 +0000

    mlx5: bump the max LRO packet size
    
    The belief is that the 7*MCLBYTES limit was set to not hit the segment
    limit for wqe busdma tag.  But with the current mbuf allocator it is not
    possible, and even if it was, the corresponding wqe fill would simply
    fail.
    
    Reviewed by:    Ariel Ehrenberg <aehrenberg@nvidia.com>, Slava Shwartsman <slavash@nvidia.com>
    Sponsored by:   NVidia networking
    MFC after:      1 week
---
 sys/dev/mlx5/mlx5_en/en.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/dev/mlx5/mlx5_en/en.h b/sys/dev/mlx5/mlx5_en/en.h
index bcc33824a5f5..bcd31de3f490 100644
--- a/sys/dev/mlx5/mlx5_en/en.h
+++ b/sys/dev/mlx5/mlx5_en/en.h
@@ -95,8 +95,7 @@
 #define	MLX5E_MAX_RX_BYTES MCLBYTES
 #endif
 
-#define	MLX5E_PARAMS_DEFAULT_LRO_WQE_SZ \
-    MIN(65535, 7 * MLX5E_MAX_RX_BYTES)
+#define	MLX5E_PARAMS_DEFAULT_LRO_WQE_SZ			65535
 
 #define	MLX5E_DIM_DEFAULT_PROFILE 3
 #define	MLX5E_DIM_MAX_RX_CQ_MODERATION_PKTS_WITH_LRO	16



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202503131603.52DG3O2j048862>