From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8DE32A034F; Thu, 9 Sep 2021 03:56:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0EA1D4003E; Thu, 9 Sep 2021 03:56:50 +0200 (CEST) Received: from m1230.mail.163.com (m12-30.163.com [220.181.12.30]) by mails.dpdk.org (Postfix) with ESMTP id 68E604003C; Thu, 9 Sep 2021 03:56:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:MIME-Version:Message-ID; bh=kQTg/ 6EkFv0b+ZGEQwmjuXOEK+eHEi4qVPGqIcYV1ps=; b=Qv0y0CExCQykLMRDvtjEr QCNIR0ICmPZtvNs7ob2bE7GCSc7K7E0w8DnEaUW8WhjHQslKSv9PP0S3HbCFNEaz Ks350EgOamXsm42ON/wufUpnTHffr8AL3bcm8YIHz5zxwQ0qLv7e20dIzwu7LgPC H/43EfvPpeLBucDJDfPRpU= Received: from chenqiming_huawei$163.com ( [2408:8440:d20:71d0:7968:b318:857c:c0] ) by ajax-webmail-wmsvr214 (Coremail) ; Thu, 9 Sep 2021 09:56:45 +0800 (GMT+08:00) X-Originating-IP: [2408:8440:d20:71d0:7968:b318:857c:c0] Date: Thu, 9 Sep 2021 09:56:45 +0800 (GMT+08:00) From: "Qiming Chen" To: "haiyue.wang@intel.com" Cc: "dev@dpdk.org" , "stable@dpdk.org" X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.13 build 20210622(1d4788a8) MailMasterPC/4.15.1.1001_(Windows_10_20H1) Copyright (c) 2002-2021 www.mailtech.cn 163com In-Reply-To: References: <20210831084051.6300-1-chenqiming_huawei@163.com> <20210906022208.9530-1-chenqiming_huawei@163.com> MIME-Version: 1.0 Message-ID: <2815ce41.c282.17bc84587ad.Coremail.chenqiming_huawei@163.com> X-Coremail-Locale: zh_CN X-CM-TRANSID: lceowAD3rTbdaTlhA5QOAQ--.42836W X-CM-SenderInfo: xfkh01xlpl0w5bkxt4lhl6il2tof0z/1tbiDg0JoFXl1QfnuQABsX X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [PATCH v2] net/ixgbe: fix probability of obtaining mailbox lock failure X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" VGhpcyBwcm9ibGVtIGlzIG5vdCBiYXNlZCBvbiB0aGUgbG9nIHRvIG9ic2VydmUgYW5kIGxvY2F0 ZSwgeW91IGNhbiB0cnkgdGhlIGZvbGxvd2luZyBzdGVwcyB0byByZXByb2R1Y2U6CjEpIGtlcm5l bCBwZiArIGRwZGsgdmYgbW9kZTsKMikgVGhlIHZmIGNvbnRyb2wgcGFuZWwga2VlcHMgYWRkaW5n IG9yIGFjcXVpcmluZyBjb25maWd1cmF0aW9ucywgc3VjaCBhcyBjcmVhdGUgdGhyZWFkIHRvIGdl dCBsaW5rIHN0YXR1cywgZXRjLgozKSBXcml0ZSBhIHNjcmlwdCB0byByZXBlYXRlZGx5IHBlcmZv cm0gImlmIGNvbmZpZyBwZiBkb3duL3VwIiBvcGVyYXRpb25zCgoKQWZ0ZXIgYSBwZXJpb2Qgb2Yg dGltZSwgdGhlcmUgd2lsbCBiZSBhIHByb2JhYmlsaXR5IHRoYXQgdGhlIG1haWxib3ggY2Fubm90 IGJlIG9idGFpbmVkLCB3aGljaCB3aWxsIGNhdXNlIGFuIGFibm9ybWFsaXR5LgoKClRoaXMgcHJv YmxlbSBpcyByZXByb2R1Y2Vk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