From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B5E4FA04DC; Tue, 20 Oct 2020 16:32:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CA566AC8F; Tue, 20 Oct 2020 16:32:13 +0200 (CEST) Received: from huawei.com (szxga08-in.huawei.com [45.249.212.255]) by dpdk.org (Postfix) with ESMTP id E16F4A9C3; Tue, 20 Oct 2020 16:32:10 +0200 (CEST) Received: from DGGEMM404-HUB.china.huawei.com (unknown [172.30.72.53]) by Forcepoint Email with ESMTP id EDD9C4583FBCAD3A89D6; Tue, 20 Oct 2020 22:32:06 +0800 (CST) Received: from DGGEMM513-MBX.china.huawei.com ([169.254.1.168]) by DGGEMM404-HUB.china.huawei.com ([10.3.20.212]) with mapi id 14.03.0487.000; Tue, 20 Oct 2020 22:31:58 +0800 From: wangyunjian To: David Marchand , Jeff Guo CC: dev , "Lilijun (Jerry)" , xudingke , dpdk stable Thread-Topic: [dpdk-stable] [dpdk-dev] [PATCH v4 3/3] eal: fix a wrong returned value when callback exists Thread-Index: AQHWpuOUvuuPnkU+r0GAtLEzojs6KKmgixqw Date: Tue, 20 Oct 2020 14:31:57 +0000 Message-ID: <34EFBCA9F01B0748BEB6B629CE643AE60DAC3955@dggemm513-mbx.china.huawei.com> References: <3b5329802b1628466e4984de4bde8ac8b6e11508.1593768308.git.wangyunjian@huawei.com> In-Reply-To: Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.174.187.156] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH v4 3/3] eal: fix a wrong returned value when callback exists X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions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