get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/46656/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 46656,
    "url": "http://patches.dpdk.org/api/patches/46656/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20181011195753.4778-2-ferruh.yigit@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20181011195753.4778-2-ferruh.yigit@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20181011195753.4778-2-ferruh.yigit@intel.com",
    "date": "2018-10-11T19:57:53",
    "name": "[2/2] examples: sleep while waiting worker threads to terminate",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "0f5bbd10f0857cbe67e50737ed522a46b0bf414f",
    "submitter": {
        "id": 324,
        "url": "http://patches.dpdk.org/api/people/324/?format=api",
        "name": "Ferruh Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20181011195753.4778-2-ferruh.yigit@intel.com/mbox/",
    "series": [
        {
            "id": 1850,
            "url": "http://patches.dpdk.org/api/series/1850/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1850",
            "date": "2018-10-11T19:57:52",
            "name": "[1/2] eal: add API that sleeps while waiting for threads",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/1850/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/46656/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/46656/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 6A1E41B557;\n\tThu, 11 Oct 2018 21:02:53 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id 04E261B549\n\tfor <dev@dpdk.org>; Thu, 11 Oct 2018 21:02:48 +0200 (CEST)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t11 Oct 2018 12:02:47 -0700",
            "from silpixa00399752.ir.intel.com (HELO\n\tsilpixa00399752.ger.corp.intel.com) ([10.237.222.212])\n\tby fmsmga004.fm.intel.com with ESMTP; 11 Oct 2018 11:58:10 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.54,369,1534834800\"; d=\"scan'208\";a=\"96723625\"",
        "From": "Ferruh Yigit <ferruh.yigit@intel.com>",
        "To": "Amr Mokhtar <amr.mokhtar@intel.com>,\n\tBruce Richardson <bruce.richardson@intel.com>,\n\tDavid Hunt <david.hunt@intel.com>, Remy Horton <remy.horton@intel.com>,\n\tOri Kam <orika@mellanox.com>,\n\tPablo de Lara <pablo.de.lara.guarch@intel.com>,\n\tRadu Nicolau <radu.nicolau@intel.com>,\n\tAkhil Goyal <akhil.goyal@nxp.com>, \n\tTomasz Kantecki <tomasz.kantecki@intel.com>,\n\tKonstantin Ananyev <konstantin.ananyev@intel.com>,\n\tDeclan Doherty <declan.doherty@intel.com>,\n\tReshma Pattan <reshma.pattan@intel.com>,\n\tJohn McNamara <john.mcnamara@intel.com>,\n\tHarry van Haaren <harry.van.haaren@intel.com>,\n\tXiaoyun Li <xiaoyun.li@intel.com>,\n\tCristian Dumitrescu <cristian.dumitrescu@intel.com>,\n\tMaxime Coquelin <maxime.coquelin@redhat.com>,\n\tTiwei Bie <tiwei.bie@intel.com>, Zhihong Wang <zhihong.wang@intel.com>",
        "Cc": "dev@dpdk.org,\n\tFerruh Yigit <ferruh.yigit@intel.com>",
        "Date": "Thu, 11 Oct 2018 20:57:53 +0100",
        "Message-Id": "<20181011195753.4778-2-ferruh.yigit@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20181011195753.4778-1-ferruh.yigit@intel.com>",
        "References": "<20181011195753.4778-1-ferruh.yigit@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 2/2] examples: sleep while waiting worker threads\n\tto terminate",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This is to prevent sample applications to do busy wait while waiting for\nworker threads to terminate. Should save cycles on master core.\nBy default a 1ms wait interval used.\n\nSigned-off-by: Ferruh Yigit <ferruh.yigit@intel.com>\n---\n examples/bbdev_app/main.c                         | 2 +-\n examples/distributor/Makefile                     | 3 +++\n examples/distributor/main.c                       | 2 +-\n examples/distributor/meson.build                  | 1 +\n examples/ethtool/ethtool-app/Makefile             | 1 +\n examples/ethtool/ethtool-app/main.c               | 2 +-\n examples/exception_path/Makefile                  | 3 +++\n examples/exception_path/main.c                    | 2 +-\n examples/exception_path/meson.build               | 1 +\n examples/ip_fragmentation/Makefile                | 3 +++\n examples/ip_fragmentation/main.c                  | 2 +-\n examples/ip_fragmentation/meson.build             | 1 +\n examples/ip_reassembly/Makefile                   | 3 +++\n examples/ip_reassembly/main.c                     | 2 +-\n examples/ip_reassembly/meson.build                | 1 +\n examples/ipsec-secgw/ipsec-secgw.c                | 2 +-\n examples/ipv4_multicast/Makefile                  | 3 +++\n examples/ipv4_multicast/main.c                    | 2 +-\n examples/ipv4_multicast/meson.build               | 1 +\n examples/kni/Makefile                             | 3 +++\n examples/kni/main.c                               | 2 +-\n examples/kni/meson.build                          | 1 +\n examples/l2fwd-crypto/Makefile                    | 3 +++\n examples/l2fwd-crypto/main.c                      | 2 +-\n examples/l2fwd-crypto/meson.build                 | 1 +\n examples/l2fwd-jobstats/Makefile                  | 3 +++\n examples/l2fwd-jobstats/main.c                    | 2 +-\n examples/l2fwd-jobstats/meson.build               | 1 +\n examples/l2fwd-keepalive/Makefile                 | 3 +++\n examples/l2fwd-keepalive/main.c                   | 2 +-\n examples/l2fwd-keepalive/meson.build              | 1 +\n examples/l2fwd/Makefile                           | 3 +++\n examples/l2fwd/main.c                             | 2 +-\n examples/l2fwd/meson.build                        | 1 +\n examples/l3fwd-acl/Makefile                       | 3 +++\n examples/l3fwd-acl/main.c                         | 2 +-\n examples/l3fwd-acl/meson.build                    | 1 +\n examples/l3fwd-power/Makefile                     | 3 +++\n examples/l3fwd-power/main.c                       | 2 +-\n examples/l3fwd-power/meson.build                  | 1 +\n examples/l3fwd-vf/Makefile                        | 3 +++\n examples/l3fwd-vf/main.c                          | 2 +-\n examples/l3fwd-vf/meson.build                     | 1 +\n examples/l3fwd/Makefile                           | 3 +++\n examples/l3fwd/main.c                             | 2 +-\n examples/l3fwd/meson.build                        | 1 +\n examples/link_status_interrupt/Makefile           | 3 +++\n examples/link_status_interrupt/main.c             | 2 +-\n examples/link_status_interrupt/meson.build        | 1 +\n examples/load_balancer/Makefile                   | 3 +++\n examples/load_balancer/main.c                     | 2 +-\n examples/load_balancer/meson.build                | 1 +\n examples/packet_ordering/Makefile                 | 3 +++\n examples/packet_ordering/main.c                   | 2 +-\n examples/packet_ordering/meson.build              | 1 +\n examples/performance-thread/l3fwd-thread/Makefile | 1 +\n examples/performance-thread/l3fwd-thread/main.c   | 2 +-\n examples/performance-thread/pthread_shim/Makefile | 1 +\n examples/performance-thread/pthread_shim/main.c   | 2 +-\n examples/qos_meter/Makefile                       | 1 +\n examples/qos_meter/main.c                         | 2 +-\n examples/qos_meter/meson.build                    | 1 +\n examples/tep_termination/main.c                   | 2 +-\n examples/vhost/main.c                             | 2 +-\n examples/vhost_crypto/main.c                      | 2 +-\n examples/vmdq/Makefile                            | 3 +++\n examples/vmdq/main.c                              | 2 +-\n examples/vmdq/meson.build                         | 1 +\n 68 files changed, 104 insertions(+), 27 deletions(-)",
    "diff": "diff --git a/examples/bbdev_app/main.c b/examples/bbdev_app/main.c\nindex d68c06aef..c8faa1e38 100644\n--- a/examples/bbdev_app/main.c\n+++ b/examples/bbdev_app/main.c\n@@ -1148,7 +1148,7 @@ main(int argc, char **argv)\n \t\tstats_loop(&stats_lcore);\n \n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\tret |= rte_eal_wait_lcore(lcore_id);\n+\t\tret |= rte_eal_wait_lcore_sleep(lcore_id, 1000);\n \t}\n \n \treturn ret;\ndiff --git a/examples/distributor/Makefile b/examples/distributor/Makefile\nindex 05ea0bfec..5a3c5292d 100644\n--- a/examples/distributor/Makefile\n+++ b/examples/distributor/Makefile\n@@ -23,6 +23,8 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)\n LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)\n LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)\n \n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n+\n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n \n@@ -49,6 +51,7 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc\n include $(RTE_SDK)/mk/rte.vars.mk\n \n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n # workaround for a gcc bug with noreturn attribute\n # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\ndiff --git a/examples/distributor/main.c b/examples/distributor/main.c\nindex 03a05e3d9..63c366d90 100644\n--- a/examples/distributor/main.c\n+++ b/examples/distributor/main.c\n@@ -801,7 +801,7 @@ main(int argc, char *argv[])\n \t}\n \n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\tif (rte_eal_wait_lcore(lcore_id) < 0)\n+\t\tif (rte_eal_wait_lcore_sleep(lcore_id, 1000) < 0)\n \t\t\treturn -1;\n \t}\n \ndiff --git a/examples/distributor/meson.build b/examples/distributor/meson.build\nindex 88c001f56..d036ea0f6 100644\n--- a/examples/distributor/meson.build\n+++ b/examples/distributor/meson.build\n@@ -7,6 +7,7 @@\n # DPDK instance, use 'make'\n \n deps += 'distributor'\n+allow_experimental_apis = true\n sources = files(\n \t'main.c'\n )\ndiff --git a/examples/ethtool/ethtool-app/Makefile b/examples/ethtool/ethtool-app/Makefile\nindex 4cd9efdd5..b7092d267 100644\n--- a/examples/ethtool/ethtool-app/Makefile\n+++ b/examples/ethtool/ethtool-app/Makefile\n@@ -18,6 +18,7 @@ SRCS-y := main.c ethapp.c\n \n CFLAGS += -O3 -D_GNU_SOURCE -pthread -I$(SRCDIR)/../lib\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n LDLIBS += -L$(subst ethtool-app,lib,$(RTE_OUTPUT))/lib\n LDLIBS += -lrte_ethtool\ndiff --git a/examples/ethtool/ethtool-app/main.c b/examples/ethtool/ethtool-app/main.c\nindex dc93adfe3..bef6682c3 100644\n--- a/examples/ethtool/ethtool-app/main.c\n+++ b/examples/ethtool/ethtool-app/main.c\n@@ -276,7 +276,7 @@ int main(int argc, char **argv)\n \n \tapp_cfg.exit_now = 1;\n \tRTE_LCORE_FOREACH_SLAVE(id_core) {\n-\t\tif (rte_eal_wait_lcore(id_core) < 0)\n+\t\tif (rte_eal_wait_lcore_sleep(id_core, 1000)< 0)\n \t\t\treturn -1;\n \t}\n \ndiff --git a/examples/exception_path/Makefile b/examples/exception_path/Makefile\nindex ae74781ec..02e23d435 100644\n--- a/examples/exception_path/Makefile\n+++ b/examples/exception_path/Makefile\n@@ -23,6 +23,8 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)\n LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)\n LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)\n \n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n+\n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n \n@@ -50,6 +52,7 @@ include $(RTE_SDK)/mk/rte.vars.mk\n \n CFLAGS += -O3\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n include $(RTE_SDK)/mk/rte.extapp.mk\n \ndiff --git a/examples/exception_path/main.c b/examples/exception_path/main.c\nindex 4180a8689..7cbd66a6f 100644\n--- a/examples/exception_path/main.c\n+++ b/examples/exception_path/main.c\n@@ -581,7 +581,7 @@ main(int argc, char** argv)\n \t/* Launch per-lcore function on every lcore */\n \trte_eal_mp_remote_launch(main_loop, NULL, CALL_MASTER);\n \tRTE_LCORE_FOREACH_SLAVE(i) {\n-\t\tif (rte_eal_wait_lcore(i) < 0)\n+\t\tif (rte_eal_wait_lcore_sleep(i, 1000) < 0)\n \t\t\treturn -1;\n \t}\n \ndiff --git a/examples/exception_path/meson.build b/examples/exception_path/meson.build\nindex c34e11e36..2b0a25036 100644\n--- a/examples/exception_path/meson.build\n+++ b/examples/exception_path/meson.build\n@@ -6,6 +6,7 @@\n # To build this example as a standalone application with an already-installed\n # DPDK instance, use 'make'\n \n+allow_experimental_apis = true\n sources = files(\n \t'main.c'\n )\ndiff --git a/examples/ip_fragmentation/Makefile b/examples/ip_fragmentation/Makefile\nindex 9e89e744c..bebcd4703 100644\n--- a/examples/ip_fragmentation/Makefile\n+++ b/examples/ip_fragmentation/Makefile\n@@ -24,6 +24,8 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)\n LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)\n LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)\n \n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n+\n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n \n@@ -51,6 +53,7 @@ include $(RTE_SDK)/mk/rte.vars.mk\n \n CFLAGS += -O3\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n # workaround for a gcc bug with noreturn attribute\n # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\ndiff --git a/examples/ip_fragmentation/main.c b/examples/ip_fragmentation/main.c\nindex 17a877da2..fdd6c8a94 100644\n--- a/examples/ip_fragmentation/main.c\n+++ b/examples/ip_fragmentation/main.c\n@@ -1018,7 +1018,7 @@ main(int argc, char **argv)\n \t/* launch per-lcore init on every lcore */\n \trte_eal_mp_remote_launch(main_loop, NULL, CALL_MASTER);\n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\tif (rte_eal_wait_lcore(lcore_id) < 0)\n+\t\tif (rte_eal_wait_lcore_sleep(lcore_id, 1000) < 0)\n \t\t\treturn -1;\n \t}\n \ndiff --git a/examples/ip_fragmentation/meson.build b/examples/ip_fragmentation/meson.build\nindex 304203eed..9782a6a7b 100644\n--- a/examples/ip_fragmentation/meson.build\n+++ b/examples/ip_fragmentation/meson.build\n@@ -7,6 +7,7 @@\n # DPDK instance, use 'make'\n \n deps +=  ['ip_frag', 'lpm']\n+allow_experimental_apis = true\n sources = files(\n \t'main.c'\n )\ndiff --git a/examples/ip_reassembly/Makefile b/examples/ip_reassembly/Makefile\nindex 1e81315f2..7af4c2756 100644\n--- a/examples/ip_reassembly/Makefile\n+++ b/examples/ip_reassembly/Makefile\n@@ -24,6 +24,8 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)\n LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)\n LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)\n \n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n+\n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n \n@@ -51,6 +53,7 @@ include $(RTE_SDK)/mk/rte.vars.mk\n \n CFLAGS += -O3\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n # workaround for a gcc bug with noreturn attribute\n # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\ndiff --git a/examples/ip_reassembly/main.c b/examples/ip_reassembly/main.c\nindex 17b55d4c7..b498ad0fc 100644\n--- a/examples/ip_reassembly/main.c\n+++ b/examples/ip_reassembly/main.c\n@@ -1175,7 +1175,7 @@ main(int argc, char **argv)\n \t/* launch per-lcore init on every lcore */\n \trte_eal_mp_remote_launch(main_loop, NULL, CALL_MASTER);\n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\tif (rte_eal_wait_lcore(lcore_id) < 0)\n+\t\tif (rte_eal_wait_lcore_sleep(lcore_id, 1000) < 0)\n \t\t\treturn -1;\n \t}\n \ndiff --git a/examples/ip_reassembly/meson.build b/examples/ip_reassembly/meson.build\nindex 8ebd48291..8a667c265 100644\n--- a/examples/ip_reassembly/meson.build\n+++ b/examples/ip_reassembly/meson.build\n@@ -7,6 +7,7 @@\n # DPDK instance, use 'make'\n \n deps += ['lpm', 'ip_frag']\n+allow_experimental_apis = true\n sources = files(\n \t'main.c'\n )\ndiff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c\nindex 1bc0b5b50..a9af17103 100644\n--- a/examples/ipsec-secgw/ipsec-secgw.c\n+++ b/examples/ipsec-secgw/ipsec-secgw.c\n@@ -1837,7 +1837,7 @@ main(int32_t argc, char **argv)\n \t/* launch per-lcore init on every lcore */\n \trte_eal_mp_remote_launch(main_loop, NULL, CALL_MASTER);\n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\tif (rte_eal_wait_lcore(lcore_id) < 0)\n+\t\tif (rte_eal_wait_lcore_sleep(lcore_id, 1000) < 0)\n \t\t\treturn -1;\n \t}\n \ndiff --git a/examples/ipv4_multicast/Makefile b/examples/ipv4_multicast/Makefile\nindex a16c62333..a1cefc50a 100644\n--- a/examples/ipv4_multicast/Makefile\n+++ b/examples/ipv4_multicast/Makefile\n@@ -24,6 +24,8 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)\n LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)\n LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)\n \n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n+\n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n \n@@ -51,6 +53,7 @@ include $(RTE_SDK)/mk/rte.vars.mk\n \n CFLAGS += -O3\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n # workaround for a gcc bug with noreturn attribute\n # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\ndiff --git a/examples/ipv4_multicast/main.c b/examples/ipv4_multicast/main.c\nindex 6530d4830..825f5264d 100644\n--- a/examples/ipv4_multicast/main.c\n+++ b/examples/ipv4_multicast/main.c\n@@ -793,7 +793,7 @@ main(int argc, char **argv)\n \t/* launch per-lcore init on every lcore */\n \trte_eal_mp_remote_launch(main_loop, NULL, CALL_MASTER);\n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\tif (rte_eal_wait_lcore(lcore_id) < 0)\n+\t\tif (rte_eal_wait_lcore_sleep(lcore_id, 1000) < 0)\n \t\t\treturn -1;\n \t}\n \ndiff --git a/examples/ipv4_multicast/meson.build b/examples/ipv4_multicast/meson.build\nindex d9e4c7c21..6969e2c54 100644\n--- a/examples/ipv4_multicast/meson.build\n+++ b/examples/ipv4_multicast/meson.build\n@@ -7,6 +7,7 @@\n # DPDK instance, use 'make'\n \n deps += 'hash'\n+allow_experimental_apis = true\n sources = files(\n \t'main.c'\n )\ndiff --git a/examples/kni/Makefile b/examples/kni/Makefile\nindex 7e19d2e2a..adb921ce2 100644\n--- a/examples/kni/Makefile\n+++ b/examples/kni/Makefile\n@@ -23,6 +23,8 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)\n LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)\n LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)\n \n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n+\n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n \n@@ -55,6 +57,7 @@ endif\n \n CFLAGS += -O3\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n include $(RTE_SDK)/mk/rte.extapp.mk\n endif\ndiff --git a/examples/kni/main.c b/examples/kni/main.c\nindex 80c401c51..ac022b6ae 100644\n--- a/examples/kni/main.c\n+++ b/examples/kni/main.c\n@@ -952,7 +952,7 @@ main(int argc, char** argv)\n \t/* Launch per-lcore function on every lcore */\n \trte_eal_mp_remote_launch(main_loop, NULL, CALL_MASTER);\n \tRTE_LCORE_FOREACH_SLAVE(i) {\n-\t\tif (rte_eal_wait_lcore(i) < 0)\n+\t\tif (rte_eal_wait_lcore_sleep(i, 1000) < 0)\n \t\t\treturn -1;\n \t}\n \ndiff --git a/examples/kni/meson.build b/examples/kni/meson.build\nindex 791316394..46ac53e0d 100644\n--- a/examples/kni/meson.build\n+++ b/examples/kni/meson.build\n@@ -9,6 +9,7 @@\n # this app can be built if-and-only-if KNI library is buildable\n build = dpdk_conf.has('RTE_LIBRTE_KNI')\n deps += ['kni', 'bus_pci']\n+allow_experimental_apis = true\n sources = files(\n \t'main.c'\n )\ndiff --git a/examples/l2fwd-crypto/Makefile b/examples/l2fwd-crypto/Makefile\nindex 6658fd0d4..1995677df 100644\n--- a/examples/l2fwd-crypto/Makefile\n+++ b/examples/l2fwd-crypto/Makefile\n@@ -23,6 +23,8 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)\n LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)\n LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)\n \n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n+\n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n \n@@ -50,6 +52,7 @@ include $(RTE_SDK)/mk/rte.vars.mk\n \n CFLAGS += -O3\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y)\n ifeq ($(CONFIG_RTE_LIBRTE_PMD_CRYPTO_SCHEDULER),y)\ndiff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c\nindex f12fd266e..e8b81e998 100644\n--- a/examples/l2fwd-crypto/main.c\n+++ b/examples/l2fwd-crypto/main.c\n@@ -2765,7 +2765,7 @@ main(int argc, char **argv)\n \trte_eal_mp_remote_launch(l2fwd_launch_one_lcore, (void *)&options,\n \t\t\tCALL_MASTER);\n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\tif (rte_eal_wait_lcore(lcore_id) < 0)\n+\t\tif (rte_eal_wait_lcore_sleep(lcore_id, 1000) < 0)\n \t\t\treturn -1;\n \t}\n \ndiff --git a/examples/l2fwd-crypto/meson.build b/examples/l2fwd-crypto/meson.build\nindex 09438a6a0..6c852ad19 100644\n--- a/examples/l2fwd-crypto/meson.build\n+++ b/examples/l2fwd-crypto/meson.build\n@@ -7,6 +7,7 @@\n # DPDK instance, use 'make'\n \n deps += 'cryptodev'\n+allow_experimental_apis = true\n sources = files(\n \t'main.c'\n )\ndiff --git a/examples/l2fwd-jobstats/Makefile b/examples/l2fwd-jobstats/Makefile\nindex 696a8b21a..7350fa931 100644\n--- a/examples/l2fwd-jobstats/Makefile\n+++ b/examples/l2fwd-jobstats/Makefile\n@@ -23,6 +23,8 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)\n LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)\n LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)\n \n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n+\n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n \n@@ -51,6 +53,7 @@ include $(RTE_SDK)/mk/rte.vars.mk\n \n CFLAGS += -O3\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n include $(RTE_SDK)/mk/rte.extapp.mk\n endif\ndiff --git a/examples/l2fwd-jobstats/main.c b/examples/l2fwd-jobstats/main.c\nindex a4d28e178..bf4b1560b 100644\n--- a/examples/l2fwd-jobstats/main.c\n+++ b/examples/l2fwd-jobstats/main.c\n@@ -995,7 +995,7 @@ main(int argc, char **argv)\n \t/* launch per-lcore init on every lcore */\n \trte_eal_mp_remote_launch(l2fwd_launch_one_lcore, NULL, CALL_MASTER);\n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\tif (rte_eal_wait_lcore(lcore_id) < 0)\n+\t\tif (rte_eal_wait_lcore_sleep(lcore_id, 1000) < 0)\n \t\t\treturn -1;\n \t}\n \ndiff --git a/examples/l2fwd-jobstats/meson.build b/examples/l2fwd-jobstats/meson.build\nindex 1ffd484e2..3653aa7ec 100644\n--- a/examples/l2fwd-jobstats/meson.build\n+++ b/examples/l2fwd-jobstats/meson.build\n@@ -7,6 +7,7 @@\n # DPDK instance, use 'make'\n \n deps += ['jobstats', 'timer']\n+allow_experimental_apis = true\n sources = files(\n \t'main.c'\n )\ndiff --git a/examples/l2fwd-keepalive/Makefile b/examples/l2fwd-keepalive/Makefile\nindex 4ab67db44..4ca5685f3 100644\n--- a/examples/l2fwd-keepalive/Makefile\n+++ b/examples/l2fwd-keepalive/Makefile\n@@ -25,6 +25,8 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)\n LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)\n LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)\n \n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n+\n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n \n@@ -52,6 +54,7 @@ include $(RTE_SDK)/mk/rte.vars.mk\n \n CFLAGS += -O3\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n LDFLAGS += -lrt\n \n include $(RTE_SDK)/mk/rte.extapp.mk\ndiff --git a/examples/l2fwd-keepalive/main.c b/examples/l2fwd-keepalive/main.c\nindex 0bf2b5336..f3e7de572 100644\n--- a/examples/l2fwd-keepalive/main.c\n+++ b/examples/l2fwd-keepalive/main.c\n@@ -788,7 +788,7 @@ main(int argc, char **argv)\n \t\t}\n \n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\tif (rte_eal_wait_lcore(lcore_id) < 0)\n+\t\tif (rte_eal_wait_lcore_sleep(lcore_id, 1000) < 0)\n \t\t\treturn -1;\n \t}\n \ndiff --git a/examples/l2fwd-keepalive/meson.build b/examples/l2fwd-keepalive/meson.build\nindex 6f7b007e1..2dffffaaa 100644\n--- a/examples/l2fwd-keepalive/meson.build\n+++ b/examples/l2fwd-keepalive/meson.build\n@@ -8,6 +8,7 @@\n \n ext_deps += cc.find_library('rt')\n deps += 'timer'\n+allow_experimental_apis = true\n sources = files(\n \t'main.c', 'shm.c'\n )\ndiff --git a/examples/l2fwd/Makefile b/examples/l2fwd/Makefile\nindex a8a47ad4e..7030b62e0 100644\n--- a/examples/l2fwd/Makefile\n+++ b/examples/l2fwd/Makefile\n@@ -23,6 +23,8 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)\n LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)\n LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)\n \n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n+\n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n \n@@ -50,6 +52,7 @@ include $(RTE_SDK)/mk/rte.vars.mk\n \n CFLAGS += -O3\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n include $(RTE_SDK)/mk/rte.extapp.mk\n endif\ndiff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c\nindex 6c23215a5..27acf2ff7 100644\n--- a/examples/l2fwd/main.c\n+++ b/examples/l2fwd/main.c\n@@ -728,7 +728,7 @@ main(int argc, char **argv)\n \t/* launch per-lcore init on every lcore */\n \trte_eal_mp_remote_launch(l2fwd_launch_one_lcore, NULL, CALL_MASTER);\n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\tif (rte_eal_wait_lcore(lcore_id) < 0) {\n+\t\tif (rte_eal_wait_lcore_sleep(lcore_id, 1000) < 0) {\n \t\t\tret = -1;\n \t\t\tbreak;\n \t\t}\ndiff --git a/examples/l2fwd/meson.build b/examples/l2fwd/meson.build\nindex c34e11e36..2b0a25036 100644\n--- a/examples/l2fwd/meson.build\n+++ b/examples/l2fwd/meson.build\n@@ -6,6 +6,7 @@\n # To build this example as a standalone application with an already-installed\n # DPDK instance, use 'make'\n \n+allow_experimental_apis = true\n sources = files(\n \t'main.c'\n )\ndiff --git a/examples/l3fwd-acl/Makefile b/examples/l3fwd-acl/Makefile\nindex 285683f83..de10e9d12 100644\n--- a/examples/l3fwd-acl/Makefile\n+++ b/examples/l3fwd-acl/Makefile\n@@ -23,6 +23,8 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)\n LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)\n LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)\n \n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n+\n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n \n@@ -50,6 +52,7 @@ include $(RTE_SDK)/mk/rte.vars.mk\n \n CFLAGS += -O3\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n # workaround for a gcc bug with noreturn attribute\n # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\ndiff --git a/examples/l3fwd-acl/main.c b/examples/l3fwd-acl/main.c\nindex a322ce4f2..79f4da8c6 100644\n--- a/examples/l3fwd-acl/main.c\n+++ b/examples/l3fwd-acl/main.c\n@@ -2078,7 +2078,7 @@ main(int argc, char **argv)\n \t/* launch per-lcore init on every lcore */\n \trte_eal_mp_remote_launch(main_loop, NULL, CALL_MASTER);\n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\tif (rte_eal_wait_lcore(lcore_id) < 0)\n+\t\tif (rte_eal_wait_lcore_sleep(lcore_id, 1000) < 0)\n \t\t\treturn -1;\n \t}\n \ndiff --git a/examples/l3fwd-acl/meson.build b/examples/l3fwd-acl/meson.build\nindex 7096e00c1..68cebd6ce 100644\n--- a/examples/l3fwd-acl/meson.build\n+++ b/examples/l3fwd-acl/meson.build\n@@ -7,6 +7,7 @@\n # DPDK instance, use 'make'\n \n deps += ['acl', 'lpm', 'hash']\n+allow_experimental_apis = true\n sources = files(\n \t'main.c'\n )\ndiff --git a/examples/l3fwd-power/Makefile b/examples/l3fwd-power/Makefile\nindex d7e39a343..7ca02935a 100644\n--- a/examples/l3fwd-power/Makefile\n+++ b/examples/l3fwd-power/Makefile\n@@ -23,6 +23,8 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)\n LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)\n LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)\n \n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n+\n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n \n@@ -56,6 +58,7 @@ else\n \n CFLAGS += -O3\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n # workaround for a gcc bug with noreturn attribute\n # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\ndiff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c\nindex 68527d26f..fa111f717 100644\n--- a/examples/l3fwd-power/main.c\n+++ b/examples/l3fwd-power/main.c\n@@ -1908,7 +1908,7 @@ main(int argc, char **argv)\n \t/* launch per-lcore init on every lcore */\n \trte_eal_mp_remote_launch(main_loop, NULL, CALL_MASTER);\n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\tif (rte_eal_wait_lcore(lcore_id) < 0)\n+\t\tif (rte_eal_wait_lcore_sleep(lcore_id, 1000) < 0)\n \t\t\treturn -1;\n \t}\n \ndiff --git a/examples/l3fwd-power/meson.build b/examples/l3fwd-power/meson.build\nindex 20c805436..d304ab7ab 100644\n--- a/examples/l3fwd-power/meson.build\n+++ b/examples/l3fwd-power/meson.build\n@@ -10,6 +10,7 @@ if host_machine.system() != 'linux'\n \tbuild = false\n endif\n deps += ['power', 'timer', 'lpm', 'hash']\n+allow_experimental_apis = true\n sources = files(\n \t'main.c', 'perf_core.c'\n )\ndiff --git a/examples/l3fwd-vf/Makefile b/examples/l3fwd-vf/Makefile\nindex dfb1d52d3..a4eb1564d 100644\n--- a/examples/l3fwd-vf/Makefile\n+++ b/examples/l3fwd-vf/Makefile\n@@ -23,6 +23,8 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)\n LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)\n LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)\n \n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n+\n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n \n@@ -50,6 +52,7 @@ include $(RTE_SDK)/mk/rte.vars.mk\n \n CFLAGS += -O3 $(USER_FLAGS)\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n # workaround for a gcc bug with noreturn attribute\n # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\ndiff --git a/examples/l3fwd-vf/main.c b/examples/l3fwd-vf/main.c\nindex 41137f978..07a28290a 100644\n--- a/examples/l3fwd-vf/main.c\n+++ b/examples/l3fwd-vf/main.c\n@@ -1088,7 +1088,7 @@ main(int argc, char **argv)\n \t/* launch per-lcore init on every lcore */\n \trte_eal_mp_remote_launch(main_loop, NULL, CALL_MASTER);\n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\tif (rte_eal_wait_lcore(lcore_id) < 0)\n+\t\tif (rte_eal_wait_lcore_sleep(lcore_id, 1000) < 0)\n \t\t\treturn -1;\n \t}\n \ndiff --git a/examples/l3fwd-vf/meson.build b/examples/l3fwd-vf/meson.build\nindex 226286e74..00f3c38f4 100644\n--- a/examples/l3fwd-vf/meson.build\n+++ b/examples/l3fwd-vf/meson.build\n@@ -7,6 +7,7 @@\n # DPDK instance, use 'make'\n \n deps += ['lpm', 'hash']\n+allow_experimental_apis = true\n sources = files(\n \t'main.c'\n )\ndiff --git a/examples/l3fwd/Makefile b/examples/l3fwd/Makefile\nindex cccdd9dfa..4f032f577 100644\n--- a/examples/l3fwd/Makefile\n+++ b/examples/l3fwd/Makefile\n@@ -23,6 +23,8 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)\n LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)\n LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)\n \n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n+\n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n \n@@ -51,6 +53,7 @@ include $(RTE_SDK)/mk/rte.vars.mk\n CFLAGS += -I$(SRCDIR)\n CFLAGS += -O3 $(USER_FLAGS)\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n include $(RTE_SDK)/mk/rte.extapp.mk\n endif\ndiff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c\nindex e4b99efe0..729b75673 100644\n--- a/examples/l3fwd/main.c\n+++ b/examples/l3fwd/main.c\n@@ -1022,7 +1022,7 @@ main(int argc, char **argv)\n \t/* launch per-lcore init on every lcore */\n \trte_eal_mp_remote_launch(l3fwd_lkp.main_loop, NULL, CALL_MASTER);\n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\tif (rte_eal_wait_lcore(lcore_id) < 0) {\n+\t\tif (rte_eal_wait_lcore_sleep(lcore_id, 1000) < 0) {\n \t\t\tret = -1;\n \t\t\tbreak;\n \t\t}\ndiff --git a/examples/l3fwd/meson.build b/examples/l3fwd/meson.build\nindex 6dd4b9022..cbef07f4f 100644\n--- a/examples/l3fwd/meson.build\n+++ b/examples/l3fwd/meson.build\n@@ -7,6 +7,7 @@\n # DPDK instance, use 'make'\n \n deps += ['hash', 'lpm']\n+allow_experimental_apis = true\n sources = files(\n \t'l3fwd_em.c', 'l3fwd_lpm.c', 'main.c'\n )\ndiff --git a/examples/link_status_interrupt/Makefile b/examples/link_status_interrupt/Makefile\nindex 160682123..e6d7acfe2 100644\n--- a/examples/link_status_interrupt/Makefile\n+++ b/examples/link_status_interrupt/Makefile\n@@ -23,6 +23,8 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)\n LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)\n LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)\n \n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n+\n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n \n@@ -50,6 +52,7 @@ include $(RTE_SDK)/mk/rte.vars.mk\n \n CFLAGS += -O3\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n include $(RTE_SDK)/mk/rte.extapp.mk\n endif\ndiff --git a/examples/link_status_interrupt/main.c b/examples/link_status_interrupt/main.c\nindex f3346d23b..b72c39347 100644\n--- a/examples/link_status_interrupt/main.c\n+++ b/examples/link_status_interrupt/main.c\n@@ -703,7 +703,7 @@ main(int argc, char **argv)\n \t/* launch per-lcore init on every lcore */\n \trte_eal_mp_remote_launch(lsi_launch_one_lcore, NULL, CALL_MASTER);\n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\tif (rte_eal_wait_lcore(lcore_id) < 0)\n+\t\tif (rte_eal_wait_lcore_sleep(lcore_id, 1000) < 0)\n \t\t\treturn -1;\n \t}\n \ndiff --git a/examples/link_status_interrupt/meson.build b/examples/link_status_interrupt/meson.build\nindex c34e11e36..2b0a25036 100644\n--- a/examples/link_status_interrupt/meson.build\n+++ b/examples/link_status_interrupt/meson.build\n@@ -6,6 +6,7 @@\n # To build this example as a standalone application with an already-installed\n # DPDK instance, use 'make'\n \n+allow_experimental_apis = true\n sources = files(\n \t'main.c'\n )\ndiff --git a/examples/load_balancer/Makefile b/examples/load_balancer/Makefile\nindex fc8df71e8..57b602815 100644\n--- a/examples/load_balancer/Makefile\n+++ b/examples/load_balancer/Makefile\n@@ -23,6 +23,8 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)\n LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)\n LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)\n \n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n+\n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n \n@@ -50,6 +52,7 @@ include $(RTE_SDK)/mk/rte.vars.mk\n \n CFLAGS += -O3 -g\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n CFLAGS_config.o := -D_GNU_SOURCE\n \n # workaround for a gcc bug with noreturn attribute\ndiff --git a/examples/load_balancer/main.c b/examples/load_balancer/main.c\nindex d3dcb235d..f20beeedf 100644\n--- a/examples/load_balancer/main.c\n+++ b/examples/load_balancer/main.c\n@@ -67,7 +67,7 @@ main(int argc, char **argv)\n \t/* Launch per-lcore init on every lcore */\n \trte_eal_mp_remote_launch(app_lcore_main_loop, NULL, CALL_MASTER);\n \tRTE_LCORE_FOREACH_SLAVE(lcore) {\n-\t\tif (rte_eal_wait_lcore(lcore) < 0) {\n+\t\tif (rte_eal_wait_lcore_sleep(lcore, 1000) < 0) {\n \t\t\treturn -1;\n \t\t}\n \t}\ndiff --git a/examples/load_balancer/meson.build b/examples/load_balancer/meson.build\nindex 4f7ac3999..19708974c 100644\n--- a/examples/load_balancer/meson.build\n+++ b/examples/load_balancer/meson.build\n@@ -7,6 +7,7 @@\n # DPDK instance, use 'make'\n \n deps += 'lpm'\n+allow_experimental_apis = true\n sources = files(\n \t'config.c', 'init.c', 'main.c', 'runtime.c'\n )\ndiff --git a/examples/packet_ordering/Makefile b/examples/packet_ordering/Makefile\nindex 3cf1ee1dc..c608d2e1c 100644\n--- a/examples/packet_ordering/Makefile\n+++ b/examples/packet_ordering/Makefile\n@@ -23,6 +23,8 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)\n LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)\n LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)\n \n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n+\n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n \n@@ -50,6 +52,7 @@ include $(RTE_SDK)/mk/rte.vars.mk\n \n CFLAGS += -O3\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n include $(RTE_SDK)/mk/rte.extapp.mk\n endif\ndiff --git a/examples/packet_ordering/main.c b/examples/packet_ordering/main.c\nindex 149bfdd02..e9053a756 100644\n--- a/examples/packet_ordering/main.c\n+++ b/examples/packet_ordering/main.c\n@@ -720,7 +720,7 @@ main(int argc, char **argv)\n \trx_thread(rx_to_workers);\n \n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\tif (rte_eal_wait_lcore(lcore_id) < 0)\n+\t\tif (rte_eal_wait_lcore_sleep(lcore_id, 1000) < 0)\n \t\t\treturn -1;\n \t}\n \ndiff --git a/examples/packet_ordering/meson.build b/examples/packet_ordering/meson.build\nindex 6c2fccdcb..a3776946f 100644\n--- a/examples/packet_ordering/meson.build\n+++ b/examples/packet_ordering/meson.build\n@@ -7,6 +7,7 @@\n # DPDK instance, use 'make'\n \n deps += 'reorder'\n+allow_experimental_apis = true\n sources = files(\n \t'main.c'\n )\ndiff --git a/examples/performance-thread/l3fwd-thread/Makefile b/examples/performance-thread/l3fwd-thread/Makefile\nindex 5558043f2..46d333849 100644\n--- a/examples/performance-thread/l3fwd-thread/Makefile\n+++ b/examples/performance-thread/l3fwd-thread/Makefile\n@@ -19,6 +19,7 @@ SRCS-y := main.c\n include $(RTE_SDK)/examples/performance-thread/common/common.mk\n \n CFLAGS += -O3 -g $(USER_FLAGS) $(INCLUDES) $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n # workaround for a gcc bug with noreturn attribute\n # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\ndiff --git a/examples/performance-thread/l3fwd-thread/main.c b/examples/performance-thread/l3fwd-thread/main.c\nindex 50fd1b00a..71365b4e8 100644\n--- a/examples/performance-thread/l3fwd-thread/main.c\n+++ b/examples/performance-thread/l3fwd-thread/main.c\n@@ -3734,7 +3734,7 @@ main(int argc, char **argv)\n \t\t/* launch per-lcore init on every lcore */\n \t\trte_eal_mp_remote_launch(pthread_run, NULL, CALL_MASTER);\n \t\tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\t\tif (rte_eal_wait_lcore(lcore_id) < 0)\n+\t\t\tif (rte_eal_wait_lcore_sleep(lcore_id, 1000) < 0)\n \t\t\t\treturn -1;\n \t\t}\n \t}\ndiff --git a/examples/performance-thread/pthread_shim/Makefile b/examples/performance-thread/pthread_shim/Makefile\nindex a6d276a49..9294e703e 100644\n--- a/examples/performance-thread/pthread_shim/Makefile\n+++ b/examples/performance-thread/pthread_shim/Makefile\n@@ -20,6 +20,7 @@ include $(RTE_SDK)/examples/performance-thread/common/common.mk\n \n CFLAGS += -g -O3 $(USER_FLAGS) $(INCLUDES)\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n LDFLAGS += -lpthread\n \ndiff --git a/examples/performance-thread/pthread_shim/main.c b/examples/performance-thread/pthread_shim/main.c\nindex 7d0d58116..80b92016b 100644\n--- a/examples/performance-thread/pthread_shim/main.c\n+++ b/examples/performance-thread/pthread_shim/main.c\n@@ -257,7 +257,7 @@ int main(int argc, char **argv)\n \n \t/* wait for threads to stop */\n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\trte_eal_wait_lcore(lcore_id);\n+\t\trte_eal_wait_lcore_sleep(lcore_id, 1000);\n \t}\n \treturn 0;\n }\ndiff --git a/examples/qos_meter/Makefile b/examples/qos_meter/Makefile\nindex 46341b1a7..7482d7e61 100644\n--- a/examples/qos_meter/Makefile\n+++ b/examples/qos_meter/Makefile\n@@ -52,6 +52,7 @@ include $(RTE_SDK)/mk/rte.vars.mk\n \n CFLAGS += -O3\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n # workaround for a gcc bug with noreturn attribute\n # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603\ndiff --git a/examples/qos_meter/main.c b/examples/qos_meter/main.c\nindex 9b0112449..cb1b43606 100644\n--- a/examples/qos_meter/main.c\n+++ b/examples/qos_meter/main.c\n@@ -438,7 +438,7 @@ main(int argc, char **argv)\n \t/* Launch per-lcore init on every lcore */\n \trte_eal_mp_remote_launch(main_loop, NULL, CALL_MASTER);\n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\tif (rte_eal_wait_lcore(lcore_id) < 0)\n+\t\tif (rte_eal_wait_lcore_sleep(lcore_id, 1000) < 0)\n \t\t\treturn -1;\n \t}\n \ndiff --git a/examples/qos_meter/meson.build b/examples/qos_meter/meson.build\nindex ef7779f2f..10cd4bc79 100644\n--- a/examples/qos_meter/meson.build\n+++ b/examples/qos_meter/meson.build\n@@ -7,6 +7,7 @@\n # DPDK instance, use 'make'\n \n deps += 'meter'\n+allow_experimental_apis = true\n sources = files(\n \t'main.c', 'rte_policer.c'\n )\ndiff --git a/examples/tep_termination/main.c b/examples/tep_termination/main.c\nindex 7795d0894..bae34fe9f 100644\n--- a/examples/tep_termination/main.c\n+++ b/examples/tep_termination/main.c\n@@ -1238,7 +1238,7 @@ main(int argc, char *argv[])\n \t}\n \n \tRTE_LCORE_FOREACH_SLAVE(lcore_id)\n-\t\trte_eal_wait_lcore(lcore_id);\n+\t\trte_eal_wait_lcore_sleep(lcore_id, 1000);\n \n \treturn 0;\n }\ndiff --git a/examples/vhost/main.c b/examples/vhost/main.c\nindex dc9ea1018..5c571ffd3 100644\n--- a/examples/vhost/main.c\n+++ b/examples/vhost/main.c\n@@ -1558,7 +1558,7 @@ main(int argc, char *argv[])\n \t}\n \n \tRTE_LCORE_FOREACH_SLAVE(lcore_id)\n-\t\trte_eal_wait_lcore(lcore_id);\n+\t\trte_eal_wait_lcore_sleep(lcore_id, 1000);\n \n \treturn 0;\n \ndiff --git a/examples/vhost_crypto/main.c b/examples/vhost_crypto/main.c\nindex cbb5e49d2..942911214 100644\n--- a/examples/vhost_crypto/main.c\n+++ b/examples/vhost_crypto/main.c\n@@ -582,7 +582,7 @@ main(int argc, char *argv[])\n \t}\n \n \tRTE_LCORE_FOREACH(lcore)\n-\t\trte_eal_wait_lcore(lcore);\n+\t\trte_eal_wait_lcore_sleep(lcore, 1000);\n \n \tfree_resource();\n \ndiff --git a/examples/vmdq/Makefile b/examples/vmdq/Makefile\nindex 87abeab93..6ff8f530d 100644\n--- a/examples/vmdq/Makefile\n+++ b/examples/vmdq/Makefile\n@@ -23,6 +23,8 @@ CFLAGS += -O3 $(shell pkg-config --cflags libdpdk)\n LDFLAGS_SHARED = $(shell pkg-config --libs libdpdk)\n LDFLAGS_STATIC = -Wl,-Bstatic $(shell pkg-config --static --libs libdpdk)\n \n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n+\n build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n \t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n \n@@ -49,6 +51,7 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc\n include $(RTE_SDK)/mk/rte.vars.mk\n \n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -DALLOW_EXPERIMENTAL_API\n \n EXTRA_CFLAGS += -O3\n \ndiff --git a/examples/vmdq/main.c b/examples/vmdq/main.c\nindex 627a5da48..aa93dcece 100644\n--- a/examples/vmdq/main.c\n+++ b/examples/vmdq/main.c\n@@ -611,7 +611,7 @@ main(int argc, char *argv[])\n \t/* call lcore_main() on every lcore */\n \trte_eal_mp_remote_launch(lcore_main, NULL, CALL_MASTER);\n \tRTE_LCORE_FOREACH_SLAVE(lcore_id) {\n-\t\tif (rte_eal_wait_lcore(lcore_id) < 0)\n+\t\tif (rte_eal_wait_lcore_sleep(lcore_id, 1000) < 0)\n \t\t\treturn -1;\n \t}\n \ndiff --git a/examples/vmdq/meson.build b/examples/vmdq/meson.build\nindex c34e11e36..2b0a25036 100644\n--- a/examples/vmdq/meson.build\n+++ b/examples/vmdq/meson.build\n@@ -6,6 +6,7 @@\n # To build this example as a standalone application with an already-installed\n # DPDK instance, use 'make'\n \n+allow_experimental_apis = true\n sources = files(\n \t'main.c'\n )\n",
    "prefixes": [
        "2/2"
    ]
}