Netdev List
 help / color / mirror / Atom feed
* [PATCH iwl-net 0/2] ice: iavf: fix USO for 32-bit systems
@ 2026-10-27 12:14 Magnus Karlsson
  2026-10-27 12:14 ` [PATCH iwl-net 1/2] ice: " Magnus Karlsson
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Magnus Karlsson @ 2026-10-27 12:14 UTC (permalink / raw)
  To: magnus.karlsson, intel-wired-lan, anthony.l.nguyen, netdev,
	maciej.fijalkowski, przemyslaw.kitszel, andrew+netdev, davem,
	edumazet, kuba, pabeni
  Cc: Magnus Karlsson

That USO works for these two cards on 64-bit systems is just pure
luck. Currently, the computation of the UDP segmentation header is
performed using sizeof() a pointer instead of the sizeof() the UDP
header that the pointer points to. Since the UDP header happens to be
8 bytes long and a pointer is 8 bytes long on a 64-bit system, this
works on all those systems. But no such luck for anyone using a 32-bit
system as 8 bytes != 4 bytes. So fix this by using sizeof() the UDP
header that the pointer points to instead.

This was found by an LLM while implementing something else that used USO.

Magnus Karlsson (2):
  ice: fix USO for 32-bit systems
  iavf: fix USO for 32-bit systems

 drivers/net/ethernet/intel/iavf/iavf_txrx.c | 2 +-
 drivers/net/ethernet/intel/ice/ice_txrx.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.38.1


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

end of thread, other threads:[~2026-10-27 13:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-27 12:14 [PATCH iwl-net 0/2] ice: iavf: fix USO for 32-bit systems Magnus Karlsson
2026-10-27 12:14 ` [PATCH iwl-net 1/2] ice: " Magnus Karlsson
2026-10-27 12:45   ` Eric Dumazet
2026-10-27 12:14 ` [PATCH iwl-net 2/2] iavf: " Magnus Karlsson
2026-10-27 12:43   ` Eric Dumazet
2026-10-27 12:56     ` Magnus Karlsson
2026-10-27 13:14       ` Maciej Fijalkowski
2026-10-27 13:15         ` Maciej Fijalkowski
2026-10-27 12:20 ` [PATCH iwl-net 0/2] ice: " netdev-bot+sinfo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox