Skip to content

Thread termination leak fixes

David Marchand dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v12 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net/ark: fix leak on thread terminationdrivers/net/ark/ark_pktgen.c+2 -00 replies
2/2net/ice: fix leak on thread terminationdrivers/net/ice/ice_dcf_parent.c lib/eal/windows/include/pthread.h+8 -01 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchHaiyue WangDmitry Kozlyuk
1/2
2/2A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [dpdk-dev] [PATCH v2 0/2] Thread termination leak fixes

After looking at the control thread API use in recent changes, I noticed that some thread resources are not properly released.
This series fixes two net drivers.

Additional notes:
- I noticed that event/dlb2 never kills/terminates its service thread. It means unplug of this device (if supported) would leak the associated thread resources. I leave it to this driver maintainer to comment/fix.

- The vhost library also lets a service thread in the background but since there is no way to unitialize this library, there is no leak to fix from my pov.

Signature · 16 lines
David Marchand

Changes since v1:
- fixed build for net/ice on Windows

David Marchand (2):
  net/ark: fix leak on thread termination
  net/ice: fix leak on thread termination

 drivers/net/ark/ark_pktgen.c      | 2 ++
 drivers/net/ice/ice_dcf_parent.c  | 2 ++
 lib/eal/windows/include/pthread.h | 6 ++++++
 3 files changed, 10 insertions(+)

-- 
2.23.0