examples/l2fwd-keepalive: clean up shared mem on exit
authorRemy Horton <remy.horton@intel.com>
Thu, 27 Apr 2017 12:37:06 +0000 (13:37 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 1 May 2017 14:42:07 +0000 (16:42 +0200)
commit935439234bcd3eb98389011ce8e43c3b74dfd9c5
tree8fbc15b76ff00b35a6fb654681279e921900b795
parent91e89e477eda7b310a0cfcee115b04d0543f15e4
examples/l2fwd-keepalive: clean up shared mem on exit

This patch adds the unlinking/unmapping of shared host memory
on termination of l2fwd-keepalive. Previously it was only
cleaned on re-running of the example application.

Fixes: e64833f2273a ("examples/l2fwd-keepalive: add sample application")

Signed-off-by: Remy Horton <remy.horton@intel.com>
Tested-by: Roman Korynkevych <romanx.korynkevych@intel.com>
examples/l2fwd-keepalive/main.c
examples/l2fwd-keepalive/shm.c
examples/l2fwd-keepalive/shm.h