From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0055.outbound.protection.outlook.com [104.47.41.55]) by dpdk.org (Postfix) with ESMTP id 5CD1A2C39 for ; Wed, 30 Nov 2016 05:59:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onevmw.onmicrosoft.com; s=selector1-vmware-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=GH+GzTVkM1zFIW5hUcKxPfIMUiQaNL6dANGhDMswreo=; b=L4s5nApVuxuV0JNQZGQXItP1bQetIrIb4XxQpmi3xlr2XqvHxj6AKaH7z0w8c4BmIYB4O1tDVGlXMSuHtRo2YRdC0AoV0E+gsxku8vp+sSe2VmEbfCby9ClqWYw78AwNLDI0SdmdBDUECWkCf+qKLbxsxbSotKlnplKDS/cHQeQ= Received: from BY2PR05MB2359.namprd05.prod.outlook.com (10.166.113.11) by BY2PR05MB2358.namprd05.prod.outlook.com (10.166.113.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.761.5; Wed, 30 Nov 2016 04:59:21 +0000 Received: from BY2PR05MB2359.namprd05.prod.outlook.com ([10.166.113.11]) by BY2PR05MB2359.namprd05.prod.outlook.com ([10.166.113.11]) with mapi id 15.01.0761.009; Wed, 30 Nov 2016 04:59:21 +0000 From: Yong Wang To: Stefan Puiu , "dev@dpdk.org" CC: "mac_leehk@yahoo.com.hk" Thread-Topic: [PATCH] vmxnet3: fix Rx deadlock Thread-Index: AQHSPmRpZoOiDHXhKkCKp23HwNeTfaDwx1ig Date: Wed, 30 Nov 2016 04:59:21 +0000 Message-ID: References: <1479120376-48723-1-git-send-email-stefan.puiu@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/f.1c.1.161117 authentication-results: spf=none (sender IP is ) smtp.mailfrom=yongwang@vmware.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [73.158.204.232] x-ms-office365-filtering-correlation-id: 020de299-9559-4437-501d-08d418dda5cc x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BY2PR05MB2358; x-microsoft-exchange-diagnostics: 1; BY2PR05MB2358; 7:Di0nDuy9rHIBWaok1timf5A8UGCUZMsX9vFdohjC0vhBOSxasv7IGHGUtIDgHDe9fJvMj4fJGi51SBsfY4BLvNRkotfN+yUEC/p07Iv3DE3MIt3Re0KLCQPXqGaczapVaUWbj0u0nzDQWRCBXAxGZdp3tUC1YSay2XCxgxd2zXCHOXgbOjUiF/dZ0LEiLvU91Op0lwSFO9vxtziMNTrUDzNY+S+WOuIBszwOmT0IirUGwfEiU5a6FflBbZGBHN/OVqZPDR3wmIydCN4zg0BhZ/bqFMG6sT7uO7CleF+xT2AR2sWW1JwwwViZO9sLWL0KdfdLhlUFtNS3RdngeUW8l3cm+4Br4FXFN1Mn7QpVm59xTTu2o9XpedyFV2Q4nB8VQml/O46nXu8PVH+r8Cfv+BNrwlBBrXT9ADq/zGzV9uvztd6FeHyx7UvoF+UdfLMy4ZdxSwgPHlsG3lH1JiKY/Q==; 20:wJe5APLBF5xgq1FQjQJKKS4hQrCF8s1p6SZXnSERJVfNeHeE03l/1CyxPmjFsoL0xBYXcJRlPYPVN8BLCLy2/eTPAZXEAxgzl7ZrOCiBKk3ikSEBXVMUFAYmsb5omm+539V5lVaoPPLflLyLMWvOg4AAvSpAHCXwDjkv7HO1vVE= x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(61668805478150)(10436049006162)(214293980204627); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6072148); SRVR:BY2PR05MB2358; BCL:0; PCL:0; RULEID:; SRVR:BY2PR05MB2358; x-forefront-prvs: 0142F22657 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(377454003)(199003)(13464003)(189002)(7736002)(77096006)(7846002)(39450400002)(6506003)(2906002)(305945005)(4326007)(74316002)(6116002)(102836003)(3846002)(2501003)(81166006)(8936002)(33656002)(122556002)(81156014)(3280700002)(3660700001)(5001770100001)(4001350100001)(97736004)(575784001)(86362001)(92566002)(66066001)(76176999)(54356999)(68736007)(76576001)(229853002)(106356001)(50986999)(9686002)(2900100001)(106116001)(5660300001)(7696004)(189998001)(83506001)(8676002)(38730400001)(39060400001)(101416001)(99286002)(105586002)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR05MB2358; H:BY2PR05MB2359.namprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:; received-spf: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <8F20DF884710DC418D349D404D9BC0A9@namprd05.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Nov 2016 04:59:21.1479 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR05MB2358 Subject: Re: [dpdk-dev] [PATCH] vmxnet3: fix Rx deadlock X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2016 04:59:39 -0000 PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBTdGVmYW4gUHVpdSBbbWFpbHRv OnN0ZWZh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