Skip to content

Handle SIGINT and SIGTERM in DPDK examples

Zhihong Wang dpdk-dev 5 versions – Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 4 repliesApplied
  2. v43 patches 4 repliesSuperseded
  3. v33 patches 6 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 patches6 repliesSuperseded
v13 patches7 repliesSuperseded

Changes in v5 from the cover letter

1. Get rid of over complicated logic in l2fwd and l3fwd

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/3app/test-pmd: Handle SIGINT and SIGTERM in testpmdapp/test-pmd/cmdline.c app/test-pmd/testpmd.c app/test-pmd/testpmd.h+47 -130 replies
2/3examples/l2fwd: Handle SIGINT and SIGTERM in l2fwdexamples/l2fwd/main.c+39 -42 replies
3/3examples/l3fwd: Handle SIGINT and SIGTERM in l3fwdexamples/l3fwd/main.c+42 -41 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchMichael QiuStephen HemmingerKonstantin Ananyev
1/3A-b
2/3A-b A-b
3/3A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/3] Handle SIGINT and SIGTERM in DPDK examples

This patch handles SIGINT and SIGTERM in testpmd, l2fwd, and l3fwd, make sure all ports are properly stopped and closed. For virtual ports, the stop and close function may deal with resource cleanup, such as socket files unlinking.

--------------
Changes in v5:

1. Get rid of over complicated logic in l2fwd and l3fwd

--------------
Changes in v4:

1. Add port status control in l2fwd and l3fwd

--------------
Changes in v3:

1. Make sure correct port operations regarding status

2. Small fixes to make the code clearer

--------------
Changes in v2:

1. Make sure graceful exit for all running phases

2. Make sure program exits with the right status

Zhihong Wang (3):
app/test-pmd: Handle SIGINT and SIGTERM in testpmd examples/l2fwd: Handle SIGINT and SIGTERM in l2fwd examples/l3fwd: Handle SIGINT and SIGTERM in l3fwd

 app/test-pmd/cmdline.c | 20 +++++++++++++-------
 app/test-pmd/testpmd.c | 39 +++++++++++++++++++++++++++++++++------
 app/test-pmd/testpmd.h |  1 +
 examples/l2fwd/main.c  | 43 +++++++++++++++++++++++++++++++++++++++----
 examples/l3fwd/main.c  | 46 ++++++++++++++++++++++++++++++++++++++++++----
 5 files changed, 128 insertions(+), 21 deletions(-)
Signature · 1 line
2.5.0