netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] fix two issues and optimize code on tpacket_snd()
@ 2025-07-10 10:26 Yun Lu
  2025-07-10 10:26 ` [PATCH v4 1/3] af_packet: fix the SO_SNDTIMEO constraint not effective on tpacked_snd() Yun Lu
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Yun Lu @ 2025-07-10 10:26 UTC (permalink / raw)
  To: willemdebruijn.kernel, davem, edumazet, kuba, pabeni, horms
  Cc: netdev, linux-kernel

From: Yun Lu <luyun@kylinos.cn>

This series fix two issues and optimize the code on tpacket_snd():
1, fix the SO_SNDTIMEO constraint not effective;
2, fix a soft lockup issue on a specific edge case;
3, optimize the packet_read_pending function called on tpacket_snd().

---
Changes in v4:
- Fix a typo and add the missing semicolon. Thanks: Simon Horman. 
- Split the second patch into two, one to fix, another to optimize.
  Thanks: Willem de Bruijn
- Link to v3: https://lore.kernel.org/all/20250709095653.62469-1-luyun_611@163.com/

Changes in v3:
- Split in two different patches.
- Simplify the code and reuse ph to continue. Thanks: Eric Dumazet.
- Link to v2: https://lore.kernel.org/all/20250708020642.27838-1-luyun_611@163.com/

Changes in v2:
- Add a Fixes tag.
- Link to v1: https://lore.kernel.org/all/20250707081629.10344-1-luyun_611@163.com/

Yun Lu (3):
  af_packet: fix the SO_SNDTIMEO constraint not effective on
    tpacked_snd()
  af_packet: fix soft lockup issue caused by tpacket_snd()
  af_packet: optimize the packet_read_pending function called on
    tpacket_snd()

 net/packet/af_packet.c | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2025-07-11 19:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-10 10:26 [PATCH v4 0/3] fix two issues and optimize code on tpacket_snd() Yun Lu
2025-07-10 10:26 ` [PATCH v4 1/3] af_packet: fix the SO_SNDTIMEO constraint not effective on tpacked_snd() Yun Lu
2025-07-10 10:26 ` [PATCH v4 2/3] af_packet: fix soft lockup issue caused by tpacket_snd() Yun Lu
2025-07-10 13:49   ` Willem de Bruijn
2025-07-11  7:20     ` luyun
2025-07-11 19:33       ` Willem de Bruijn
2025-07-10 10:26 ` [PATCH v4 3/3] af_packet: optimize the packet_read_pending function called on tpacket_snd() Yun Lu

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).