From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0082.outbound.protection.outlook.com [104.47.38.82]) by dpdk.org (Postfix) with ESMTP id 4C5263230 for ; Thu, 19 Jul 2018 13:43:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=osLA53cLdx3DmdwNnS9i8VVGlDZLnCenq5obohepLng=; b=ofKGYxf8oumrM9W3POm4D210jJ11k9VjsDFWMuIwiRlJWZa1RzLFEAs+ipCz/yyhMLb4vWya8nWkPYileFsnPw8GWoFhd9Bad2ST29f4fMq07Ieel7IAwiJiafLERJFm+8ZFMdjTJFXQFG6lv5z1MNOGhXiAHMFPJAMaBUYzw5w= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from ltp-pvn.caveonetworks.com (111.93.218.67) by CY4PR07MB3462.namprd07.prod.outlook.com (2603:10b6:910:75::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.20; Thu, 19 Jul 2018 11:41:40 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Thu, 19 Jul 2018 17:11:20 +0530 Message-Id: <20180719114120.23750-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180717143307.5270-1-pbhagavatula@caviumnetworks.com> References: <20180717143307.5270-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: DM5PR16CA0006.namprd16.prod.outlook.com (2603:10b6:3:c0::16) To CY4PR07MB3462.namprd07.prod.outlook.com (2603:10b6:910:75::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b6fedb2d-22f9-463e-ce21-08d5ed6c9884 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600067)(711020)(2017052603328)(7153060)(7193020); SRVR:CY4PR07MB3462; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3462; 3:O4c785oClAP78FHkjKEkIqUfEEsl2kqDUAVUiFf+NMZAT+/uspT5tCk5PYL8cxUf5XpYGcocO+V8zI/F0qwl19N2GTQtvfxocLhbpVJeJJKIsUFY46ot2YBD/k8E3mmGh31uDPfn0pbppdAQiHYnUJwHuyv4dT2fHNUrXH1ZI1gns87HbokQmP0d/021g3hYcyz3JyokLuOKIWHsoEAXkrZdwBLSXq2Px07HWSg8qrSwPVwXeu+Ho4fH2VJpMP0Z; 25:lTJk/BUuiF50bCpCxHYWfrQrl4eHGWivXAfg6oV1DuR5TVWPgZrNYdD+kayzH7cuJO1Jn+xAH0Cftiho3ii72IwOxqUW+M1ZVuvNM284pOMWzB2iGu4BApCdlL3iUR9vwLJGldflt3QkAn7zlMzntk0r2hW3XrWRwHhWlgvozHqZkqr5C9L0qyaQSu2H+yYSFECnbqWKT+5mVwoHZwgfDhFRDSYyOMbk0oclEVtWkJgUHF0pLBZ3Nv+g2LH+03nDD7i5K6COrAfQnDpk1xO9J4HUExawlSOehTLyeigFQNH/tVRkybjiGgelaZ/YbuOSp7RFApVHpNhxQXhHMPzU7w==; 31:+sezruTfQvglvbCDU1gPRZWSugM4T4oBFmJq7A3VJ8LyXvqOBFgvLd7lIhSVXQV4Fu0U258iK1/g3CN6FTP9cQQ/TtjyCq14IJYvMAfzTFrBtoja6BDoTPWEziBsFOrEShzf70SZNssrlTUlFQx9CUkXSZHJQVV0dn1CoglygjRRXTZZx5Y/snS2XovOpQ4foZjM2NkRTGUPP5wl9XALnIUVvS/7NB17YFW0ODjLUZY= X-MS-TrafficTypeDiagnostic: CY4PR07MB3462: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3462; 20:pfm8aiRjUBL81sVoTlcCFKjBmXAtGm1AxdVPC5RfSJMi5K/bYkCX1KhzKjM0GWlCdyo2mUC+d9oSBt0debI2jtUVXCTl7Ba0PPZonKAgNA/Ts+J+d1HPNau11vT4ZJSWlXFcEmfSenQKtoU9c6FHNyLa+i4E3qFqoO7xB0ihy7JOOdY5QMeqox4RTFgn7q75OxDx+tqTbhaUvanGAqtfAGNTAB1KeZQNilcTKJJTXklzJoFvkwrxWucqr18s9g5rv7FhqEqJFbF3qjb1ZALkSfNPF5hyvdpOrJ/KpzqqJf94huKKI8zlwUgvmc3ChktsL+oAT0JMQusJw8hw5zTt8siF20z+ZNB4BdTHMGPP2yQMuwhWdgRzQchvs9dFtPy6rszf20fsB0rs6ATbqzADGglsk/uBq3vla+ysjz05uZz5M3NZA8B9/D1Zd1uMWDUYyTO9FHtiS+JpBRHOSaUtjLcKYRJS5Bge20m22BEZePCUrIgTzRxgKjlXv5dhwAswWnBz88FEw8lklyv9pS9KWbWJWMG+cW7+dOf8WOSrnK7jJLnh4/EV5Du/9okiLRW1TthWRzLyiT6TkqEf6U0dLDXtGzzO7+SZo2YsyNbiXV0=; 4:hlQHmdZSaccKgaoCy+TObYN+K0ZB3R5ToYXjv5cH+tzytEirUK0Ya1cdmvzYwrB/C0E1icIuYDYAYzPBmZ3IX2dU0T4Ukt+b09b9sQX0wsv/nOdGI5CPLjCLajj0boQOQkhzurPt37QyVSOphh5erFVF4k5Bvv50NLGVDJ1nYlO4hh1btmfzUcT5uIn9BojtponWHwRbTPYH2cCFgiN1Ngsy+Z5MOy8e/r+kE/WT9E3RaaHlCTcYBbfWUDhTaIdetkxR6PiS+oB9zy8gL+dqkg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231311)(944501410)(52105095)(93006095)(10201501046)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:CY4PR07MB3462; BCL:0; PCL:0; RULEID:; SRVR:CY4PR07MB3462; X-Forefront-PRVS: 0738AF4208 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(136003)(376002)(39860400002)(366004)(346002)(189003)(199004)(8936002)(8676002)(6116002)(3846002)(50226002)(81156014)(97736004)(81166006)(42882007)(386003)(446003)(6506007)(11346002)(1857600001)(26005)(16526019)(1076002)(2361001)(76176011)(68736007)(51416003)(6486002)(52116002)(6512007)(53936002)(25786009)(4326008)(107886003)(69596002)(34206002)(2906002)(5009440100003)(2351001)(105586002)(106356001)(47776003)(66066001)(53416004)(478600001)(72206003)(7736002)(305945005)(16586007)(36756003)(2616005)(476003)(956004)(48376002)(37006003)(50466002)(5660300001)(575784001)(316002)(486006)(6666003)(6636002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3462; H:ltp-pvn.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3462; 23:nXgfqXYV7XZohg4Cv2fQGy0sIYnC3fwhztcRVZVZw?= =?us-ascii?Q?PNtpl1yvNYPAyQJEZhoNcjlJQxqQtiShEQxq+wqDSpWzY9SVuhA9eTk1GX9s?= =?us-ascii?Q?2WSYRVv8kVTHorkpRF5iUPVGsK0Bk81D4cj1R6u+qimlkHqV9EifesELgIHT?= =?us-ascii?Q?c8IbSAWS4Bvkr/ht0sSFVn4S+KSfcNjkQuPRD23f5auiW+v0aW89bU592nXB?= =?us-ascii?Q?2hWP5rZlkAH+aXWTE5Yc9ogWtzcIh/5Bd/tQwlH+8giOghcrN0m+9JbUi68u?= =?us-ascii?Q?nliEKqJi0AxDzKOO69rgCIAeljY13qzEytsdFg2iHpXsEAfpkINpdvs1ZPuN?= =?us-ascii?Q?w5V6BtB0Bma5W3JbnPMY4ou0PBq7UY7fculsu9Spy2nHJ7c0SwwTRWG11koM?= =?us-ascii?Q?fYWByz5LJ2cZZpeRRZq90VEGizMshni6DvQHC5TDusreCVn4PulDpH3PJcFM?= =?us-ascii?Q?Xkjm7/HEt0x6eMjlRT680WqY58CqyV+Dtqkxzd9ROLfMN/Nu33dR0F4lud7X?= =?us-ascii?Q?XY7G0TeYeQUABkiiG+j6doI7WPChf8YGHo0xfjJKkkjCKxFNByfFzkAsgZWv?= =?us-ascii?Q?HEgjzNT7goPdgRgXPurRjaqCyMutf++IVYaBdKJhNucxB8ZluLimcytKqEdO?= =?us-ascii?Q?csqhM0iaa//rGOePWmkolXu2tXSxOta23jK4l7qZbmRk9M/lhNJYV+Mn3jR9?= =?us-ascii?Q?x14GO7editJZeRbHlCEs7/qOEBj3FcKEmYXfR1oye5Rjo+z7FBqd9gLorMTL?= =?us-ascii?Q?M5mL+SxJ3Hy/uOeEu3cpbgj5Cyg/G05xJkyRzNcm/4T2fwTBYyY8m6WWtN08?= =?us-ascii?Q?csngoXN41+AR0Hu2YjXnrtVZn17idCohn+cL22/7toPB5rnKLqrMwQnhIedz?= =?us-ascii?Q?w7ynw3TbOQacdS3TBeWx6gElelWqhjXyQwA7cfIe2mEIHhXUmythBWhbJIV+?= =?us-ascii?Q?fsQuPO2xDyeJqQV4qRXcciAS91fLMxsh1IuReWktLK3aJPpCsko4RSmqH5qA?= =?us-ascii?Q?3u96IINULdFD8rSP+gHZWmx6MrkV9154z1vdX4HrtpSWCV8x265GIfWB5Guq?= =?us-ascii?Q?+L6LxIn29KXo8i6sVT8PLl0kgy6GuJSJlJB748MEY9FzWGy1UBUp8Gm0ZEN+?= =?us-ascii?Q?yh/xgd26etFT6yrbDmsFQMWZEQDwWmNBl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86Ob/7t/N1F2/AGCY7UYtkxBATzIW7a+qbfmeJoHmZmhMujS7m36hkNR2F8LczVA9QDoL3pFdhFlcmBuCdl0cgN/3iW475ijU7ULlmsFa2f9MfNIy+fyUIemPZpAObudacfupoqflLBcTrdLK9i2+gb/KxH8YU6PkM161sxPQMSjfptIqzHiSg==; 5:W6ZUpEAvDfXTOF0TcsVdVFsLfmGqpUsH7bV4Hq7Kmpm5cvalhduDJxtuPd/s7XHkxkIeQ4vaQ88hIrNSWXdEMZRgFeD+9zAHfCdwSPz55Dw/K414VcORSutma+BzhuvArDaMCeEfO/hndgQKCQaq2KIE5w3jFSAYiq7s0oCiy9M=; 7:cumkXBr4HN+71rAvzQ40I1jBT9OAOFyToXgaSPOf+Jzqyd0ogSUxP1kDJuh47iiH1UGDyO2Lus40vHCxo8pNuFqHHXdPz7d3qTjiEPaLUIYWeisDH4HRlod8vTHZYeKDbSU3JXyIEdKKgt6EtpDkUJv74x+YbygJBa0eE/Db5epX2tmCesuVABXsT67MJ25XV9Ftmti3gW/sdoQ05ua0TfnZgOhI3B8LheTMLpHuQA5sizjPxeOy0FNiSgslZWlX SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2018 11:41:40.0665 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b6fedb2d-22f9-463e-ce21-08d5ed6c9884 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3462 Subject: [dpdk-dev] [PATCH v2] app/eventdev: use proper teardown sequence X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2018 11:43:00 -0000 Use proper teardown sequence when SIGINT is caught to prevent eventdev from going into undefined state. Signed-off-by: Pavan Nikhilesh --- v2 Changes: - Only stopping the ethdev(producer) is sufficient.(Jerin) app/test-eventdev/evt_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/test-eventdev/evt_main.c b/app/test-eventdev/evt_main.c index 57bb94570..18941f0ca 100644 --- a/app/test-eventdev/evt_main.c +++ b/app/test-eventdev/evt_main.c @@ -27,6 +27,9 @@ signal_handler(int signum) *(int *)test->test_priv = true; rte_wmb(); + if (test->ops.ethdev_destroy) + test->ops.ethdev_destroy(test, &opt); + rte_eal_mp_wait_lcore(); if (test->ops.test_result) @@ -35,9 +38,6 @@ signal_handler(int signum) if (test->ops.eventdev_destroy) test->ops.eventdev_destroy(test, &opt); - if (test->ops.ethdev_destroy) - test->ops.ethdev_destroy(test, &opt); - if (test->ops.mempool_destroy) test->ops.mempool_destroy(test, &opt); -- 2.18.0