Thread (8 messages) 8 messages, 4 authors, 2025-11-18

RE: [PATCH net-next v5 1/2] net: mana: Handle SKB if TX SGEs exceed hardware limit

From: Haiyang Zhang <haiyangz@microsoft.com>
Date: 2025-11-16 21:38:07
Also in: linux-hyperv, linux-rdma, lkml

-----Original Message-----
From: Aditya Garg <redacted>
Sent: Friday, November 14, 2025 4:17 PM
To: KY Srinivasan <kys@microsoft.com>; Haiyang Zhang
[off-list ref]; wei.liu@kernel.org; Dexuan Cui
[off-list ref]; andrew+netdev@lunn.ch; davem@davemloft.net;
edumazet@google.com; kuba@kernel.org; pabeni@redhat.com; Long Li
[off-list ref]; Konstantin Taranov [off-list ref];
horms@kernel.org; shradhagupta@linux.microsoft.com;
ssengar@linux.microsoft.com; ernis@linux.microsoft.com;
dipayanroy@linux.microsoft.com; Shiraz Saleem
[off-list ref]; leon@kernel.org; mlevitsk@redhat.com;
yury.norov@gmail.com; sbhatta@marvell.com; linux-hyperv@vger.kernel.org;
netdev@vger.kernel.org; linux-kernel@vger.kernel.org; linux-
rdma@vger.kernel.org; Aditya Garg [off-list ref]
Cc: Aditya Garg <redacted>
Subject: [PATCH net-next v5 1/2] net: mana: Handle SKB if TX SGEs exceed
hardware limit

The MANA hardware supports a maximum of 30 scatter-gather entries (SGEs)
per TX WQE. Exceeding this limit can cause TX failures.
Add ndo_features_check() callback to validate SKB layout before
transmission. For GSO SKBs that would exceed the hardware SGE limit, clear
NETIF_F_GSO_MASK to enforce software segmentation in the stack.
Add a fallback in mana_start_xmit() to linearize non-GSO SKBs that still
exceed the SGE limit.

Also, Add ethtool counter for SKBs linearized

Co-developed-by: Dipayaan Roy <redacted>
Signed-off-by: Dipayaan Roy <redacted>
Signed-off-by: Aditya Garg <redacted>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help