[PATCH 41/44] net: mana: Fix oversized sge0 for GSO packets
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 29 Sep 2023 20:42:27 +0000 (13:42 -0700)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 22 May 2025 18:32:07 +0000 (20:32 +0200)
commitb05fdce21301247cd3b4a847f2a77b3eb841c527
tree150c9030f9e7328254f9b3d519c0ac5668e05528
parent27c702c8db657523ef541827447bde6eb7ea0a5e
[PATCH 41/44] net: mana: Fix oversized sge0 for GSO packets

Handle the case when GSO SKB linear length is too large.

MANA NIC requires GSO packets to put only the header part to SGE0,
otherwise the TX queue may stop at the HW level.

So, use 2 SGEs for the skb linear part which contains more than the
packet header.

Fixes: ca9c54d2d6a5 ("net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)")
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Shradha Gupta <shradhagupta@linux.microsoft.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
(cherry picked from commit a43e8e9ffa0d1de058964edf1a0622cbb7e27cfe)
Signed-off-by: Bastian Blank <waldi@debian.org>
Gbp-Pq: Topic features/all/ethernet-microsoft
Gbp-Pq: Name 0041-net-mana-Fix-oversized-sge0-for-GSO-packets.patch
drivers/net/ethernet/microsoft/mana/mana_en.c
include/net/mana/mana.h