> -----Original Message-----
> From: Aditya Garg <[email protected]>
> Sent: Friday, November 14, 2025 4:17 PM
> To: KY Srinivasan <[email protected]>; Haiyang Zhang
> <[email protected]>; [email protected]; Dexuan Cui
> <[email protected]>; [email protected]; [email protected];
> [email protected]; [email protected]; [email protected]; Long Li
> <[email protected]>; Konstantin Taranov <[email protected]>;
> [email protected]; [email protected];
> [email protected]; [email protected];
> [email protected]; Shiraz Saleem
> <[email protected]>; [email protected]; [email protected];
> [email protected]; [email protected]; [email protected];
> [email protected]; [email protected]; linux-
> [email protected]; Aditya Garg <[email protected]>
> Cc: Aditya Garg <[email protected]>
> 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 <[email protected]>
> Signed-off-by: Dipayaan Roy <[email protected]>
> Signed-off-by: Aditya Garg <[email protected]>
Reviewed-by: Haiyang Zhang <[email protected]>