DPDK patches and discussions
 help / color / mirror / Atom feed
From: Remy Horton <remy.horton@intel.com>
To: dev@dpdk.org
Cc: John McNamara <john.mcnamara@intel.com>
Subject: [dpdk-dev] [PATCH v1 0/2] l2fwd-keepalive: Termination cleanup
Date: Thu, 27 Apr 2017 13:37:04 +0100	[thread overview]
Message-ID: <1493296626-28128-1-git-send-email-remy.horton@intel.com> (raw)

The l2fwd-keepalive example has infinite processing loops and as a
result the only way to exit it is via SIGINT/SIGTERM (e.g. Control-C).
The resulting shutdown is unclean, in particular leaving stale shared
host memory handles. This is fixed by adding a signal handler that
causes the processing loops to break, and adding cleanup code to remove
the stale handles.

Remy Horton (2):
  examples/l2fwd-keepalive: add graceful exit
  examples/l2fwd-keepalive: add SHM cleanup on exit

 doc/guides/rel_notes/release_17_05.rst |  4 ++++
 examples/l2fwd-keepalive/main.c        | 31 +++++++++++++++++++++++++++----
 examples/l2fwd-keepalive/shm.c         | 10 ++++++++++
 examples/l2fwd-keepalive/shm.h         |  9 +++++++++
 4 files changed, 50 insertions(+), 4 deletions(-)

-- 
2.5.5

             reply	other threads:[~2017-04-27 12:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-27 12:37 Remy Horton [this message]
2017-04-27 12:37 ` [dpdk-dev] [PATCH v1 1/2] examples/l2fwd-keepalive: add graceful exit Remy Horton
2017-04-28  8:37   ` Mcnamara, John
2017-04-27 12:37 ` [dpdk-dev] [PATCH v1 2/2] examples/l2fwd-keepalive: add SHM cleanup on exit Remy Horton
2017-04-28  8:37   ` Mcnamara, John
2017-05-01 14:42 ` [dpdk-dev] [PATCH v1 0/2] l2fwd-keepalive: Termination cleanup Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1493296626-28128-1-git-send-email-remy.horton@intel.com \
    --to=remy.horton@intel.com \
    --cc=dev@dpdk.org \
    --cc=john.mcnamara@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).