From a87ab9f799214cc412b15a19b11f375a1b67b2d5 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 1 Aug 2019 19:51:53 -0700 Subject: [PATCH] app/testpmd: block secondary process Since testpmd has several issues which keep it from working correctly as a secondary process; abort if user tries to do it, rather than running into later problems. Signed-off-by: Stephen Hemminger --- app/test-pmd/testpmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 159c2ef05b..d0142cae68 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -3243,6 +3243,9 @@ main(int argc, char** argv) if (diag < 0) rte_panic("Cannot init EAL\n"); + if (rte_eal_process_type() == RTE_PROC_SECONDARY) + rte_panic("Secondary process type not supported.\n"); + ret = register_eth_event_callback(); if (ret != 0) rte_panic("Cannot register for ethdev events"); -- 2.20.1