netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v5 0/2] net: mana: Enforce TX SGE limit and fix error cleanup
@ 2025-11-14 21:16 Aditya Garg
  2025-11-14 21:16 ` [PATCH net-next v5 1/2] net: mana: Handle SKB if TX SGEs exceed hardware limit Aditya Garg
  2025-11-14 21:16 ` [PATCH net-next v5 2/2] net: mana: Drop TX skb on post_work_request failure and unmap resources Aditya Garg
  0 siblings, 2 replies; 8+ messages in thread
From: Aditya Garg @ 2025-11-14 21:16 UTC (permalink / raw)
  To: kys, haiyangz, wei.liu, decui, andrew+netdev, davem, edumazet,
	kuba, pabeni, longli, kotaranov, horms, shradhagupta, ssengar,
	ernis, dipayanroy, shirazsaleem, leon, mlevitsk, yury.norov,
	sbhatta, linux-hyperv, netdev, linux-kernel, linux-rdma,
	gargaditya
  Cc: Aditya Garg

Add pre-transmission checks to block SKBs that exceed the hardware's SGE
limit. Force software segmentation for GSO traffic and linearize non-GSO
packets as needed.

Update TX error handling to drop failed SKBs and unmap resources
immediately.

---
Changes in v5:
* Drop skb_is_gso() check for disabling GSO in mana_features_check().
* Register .ndo_features_check conditionally to avoid unnecessary call.

Changes in v4:
* Fix warning during build reported by kernel test robot
---
Aditya Garg (2):
  net: mana: Handle SKB if TX SGEs exceed hardware limit
  net: mana: Drop TX skb on post_work_request failure and unmap
    resources

 .../net/ethernet/microsoft/mana/gdma_main.c   |  6 +--
 drivers/net/ethernet/microsoft/mana/mana_en.c | 48 ++++++++++++++++---
 .../ethernet/microsoft/mana/mana_ethtool.c    |  2 +
 include/net/mana/gdma.h                       |  8 +++-
 include/net/mana/mana.h                       |  2 +
 5 files changed, 54 insertions(+), 12 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-11-18 11:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-14 21:16 [PATCH net-next v5 0/2] net: mana: Enforce TX SGE limit and fix error cleanup Aditya Garg
2025-11-14 21:16 ` [PATCH net-next v5 1/2] net: mana: Handle SKB if TX SGEs exceed hardware limit Aditya Garg
2025-11-14 21:26   ` Eric Dumazet
2025-11-16 21:36   ` Haiyang Zhang
2025-11-18  3:46   ` Jakub Kicinski
2025-11-18 11:08     ` Aditya Garg
2025-11-14 21:16 ` [PATCH net-next v5 2/2] net: mana: Drop TX skb on post_work_request failure and unmap resources Aditya Garg
2025-11-16 21:44   ` Haiyang Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).