netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Patch v2 net 0/2] netem: Fix skb duplication logic to prevent infinite loops
@ 2025-07-07 19:50 Cong Wang
  2025-07-07 19:50 ` [Patch v2 net 1/2] " Cong Wang
  2025-07-07 19:50 ` [Patch v2 net 2/2] selftests/tc-testing: Add a nested netem duplicate test Cong Wang
  0 siblings, 2 replies; 9+ messages in thread
From: Cong Wang @ 2025-07-07 19:50 UTC (permalink / raw)
  To: netdev; +Cc: jhs, will, stephen, Cong Wang

This patchset fixes the infinite loops due to skb duplication in netem.

This replaces the patches from William, with much less code and without
any workaround. More importantly, this does not break any use case at
all.

Note: This patch only aims to fix the infinite loops, nothing else. If
there is other issue with netem duplication, it needs to be addressed
separately.

---
v2: fixed a typo
    improved tdc selftest to check sent bytes

Cong Wang (2):
  netem: Fix skb duplication logic to prevent infinite loops
  selftests/tc-testing: Add a nested netem duplicate test

 include/net/sch_generic.h                     |  1 +
 net/sched/sch_netem.c                         |  7 +++---
 .../tc-testing/tc-tests/qdiscs/netem.json     | 25 +++++++++++++++++++
 3 files changed, 29 insertions(+), 4 deletions(-)

-- 
2.34.1


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

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

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-07 19:50 [Patch v2 net 0/2] netem: Fix skb duplication logic to prevent infinite loops Cong Wang
2025-07-07 19:50 ` [Patch v2 net 1/2] " Cong Wang
2025-07-08 13:18   ` Simon Horman
2025-07-08 13:19     ` Jamal Hadi Salim
2025-07-08 19:11       ` Simon Horman
2025-07-08 15:56     ` William Liu
2025-07-08 16:06       ` Jakub Kicinski
2025-07-07 19:50 ` [Patch v2 net 2/2] selftests/tc-testing: Add a nested netem duplicate test Cong Wang
2025-07-08 13:19   ` Simon Horman

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