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 BEC72A00E6 for ; Fri, 12 Jul 2019 12:20:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 073861B9A5; Fri, 12 Jul 2019 12:20:12 +0200 (CEST) Received: from sjdcvmout04.udc.trendmicro.com (sjdcexbh01.udc.trendmicro.com [66.180.82.2]) by dpdk.org (Postfix) with ESMTP id 1048531FC for ; Fri, 12 Jul 2019 12:20:11 +0200 (CEST) Received: from sjdcvmout04.udc.trendmicro.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 51725B608F; Fri, 12 Jul 2019 03:20:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=trendmicro.com; s=tmoutbound; t=1562926810; bh=X3TMfujPHWSdHzueLORBDhYggvJAJ02bi7Ou6B+4iQ4=; h=From:To:Date; b=PCaWaThyEuNm+Wa3Xwq09R1CyGhNFv0+VoQloGsNk4Ipe2IzCbjXoU3s4RxqOk6Zd D9FUKltOg1rJEZZu9w8Xhb9w20UqmsQnDGcBP5Vc4Ytzkh9c3iUcPhXK/qP+rK7xjB Msa4uJLJIbQSs29oauZKUzM6hdOF0RkRMcfjn02c= Received: from sjdcvmout04.udc.trendmicro.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2CCBFB608D; Fri, 12 Jul 2019 03:20:10 -0700 (PDT) Received: from SJDC-EXNABU02.us.trendnet.org (unknown [10.45.175.98]) by sjdcvmout04.udc.trendmicro.com (Postfix) with ESMTPS; Fri, 12 Jul 2019 03:20:10 -0700 (PDT) Received: from ADC-EXAPAC12.tw.trendnet.org (10.28.2.229) by SJDC-EXNABU02.us.trendnet.org (10.45.175.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 12 Jul 2019 03:20:07 -0700 Received: from ADC-EXAPAC12.tw.trendnet.org (10.28.2.229) by ADC-EXAPAC12.tw.trendnet.org (10.28.2.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 12 Jul 2019 10:20:00 +0000 Received: from ADC-EXAPAC12.tw.trendnet.org ([fe80::885:9a77:58ba:b87d]) by ADC-EXAPAC12.tw.trendnet.org ([fe80::885:9a77:58ba:b87d%18]) with mapi id 15.01.1713.007; Fri, 12 Jul 2019 10:20:00 +0000 From: "Donald_Lee@trendmicro.com" To: "thomas@monjalon.net" CC: "dev@dpdk.org" Thread-Topic: [PATCH] net/tap: fix Rx miss the packets Thread-Index: AQHVOJtcq6HGILsCCkymffR8tAtWJA== Date: Fri, 12 Jul 2019 10:20:00 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.28.4.6] MIME-Version: 1.0 X-TM-AS-Product-Ver: IMSVA-9.1.0.1631-8.5.0.1020-24754.006 X-TM-AS-Result: No--14.267-5.0-31-10 X-TMASE-MatchedRID: 98bUcqHGRvbufqzm3tgS7dqFzje3HnBpSoCG4sefl8TJfDUN5trKvqN9 qEVatKG0W0p7t6Zye4GStbBktZGB8DioZoQj+LvGuwdUMMznEA8/pOSL72dTf1jBUeMsjed6QBz oPKhLasjwNFheFiTN2VZTqr+yzty6FnYhgSDD6xVKzOvae5Q0rKOG6SilO8JXuWYx8s2K6RpG5u rGWW1gV/scRbV0TXzaSaVfaxxV948Ct8gNWNANfsG0UNgaZpYqGsvgUMYAn4ULBZEuqIL9SpO9m QGx4jC3Sa7i4WMGYwF/2SsgU8jyNW7vEKjEI8LygNylVbI/EAyoCf7IdvPAJzAx/HIgP92dIoUw B99fI0ogdYbu/l/Lq3sRbtp3bY8XDEVT5M0HH4UiPTMUjkOgkoJDF8D6I7sXsD1IMtzDoEbOfD7 9QUGzs1It3twV1phfFABeLgZr0ZEfE8yM4pjsD9IFVVzYGjNKWQy9YC5qGvwvM/mydp5vVOXaII TqLkG4JJPHXXbOfiZOVTzdy5Og9eap2L9Wj3hthp3MBAvxW3W5fNE6Xo7KR9QNiSsZ0KgtGdA0A /BXLwbdkdBW9fJsvBqj/0MJ/Q0HQ7hcw/MC4C/rpcchznD6Bw== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--14.267500-10.000000 X-TMASE-Version: IMSVA-9.1.0.1631-8.5.1020-24754.006 X-TM-SNTS-SMTP: 79B094A18DCB3735269B926253AA115D79ADA3926171B9FA9A6FFA025F6745562000:7 X-TM-AS-GCONF: 00 X-imss-scan-details: No--14.267-5.0-31-10 X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0-0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] [PATCH] net/tap: fix Rx miss the packets 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" RnJvbTogRG9uYWxkIExlZSA8ZG9uYWxkX2xlZUB0cmVuZG1pY3JvLmNvbT4NCg0KDQoNCkFmdGVy IHBtZF9yeF9idXJzdCBiZSB0cmlnZ2VyZWQsIGl0IGRvZXNuJ3QgcmV0cmlldmUgYWxsIHRoZSBm cmFtZXMuDQoNCkl0IG1heSBsZWF2ZSBzb21lIHBlbmRpbmcgZnJhbWVzIHRoZXJlLg0KDQoNCg0K U2lnbmVkLW9mZi1ieTogRG9uYWxkIExlZSA8ZG9uYWxkX2xlZUB0cmVuZG1pY3JvLmNvbT4NCg0K LS0tDQoNCmRyaXZlcnMvbmV0L3RhcC9ydGVfZXRoX3RhcC5jIHwgNy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UgPSBydGVfZXRoX2RldmljZXNbcnhxLT5pbl9wb3J0XS5wcm9jZXNzX3By aXZhdGU7DQoNCiAgICAgICAgICAgICAgIHJ0ZV9jb21waWxlcl9iYXJyaWVyKCk7DQoNCiAgICAg ICAgICAgICAgIGZvciAobnVtX3J4ID0gMDsgbnVtX3J4IDwgbmJfcGt0czsgKSB7DQoNCkBAIC00 MzEsNiArNDMyLDkgQEAgcG1kX3J4X2J1cnN0KHZvaWQgKnF1ZXVlLCBzdHJ1Y3QgcnRlX21idWYg KipidWZzLCB1aW50MTZfdCBuYl9wa3RzKQ0KDQogICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgYnVmc1tudW1fcngrK10gPSBtYnVmOw0KDQogICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgbnVtX3J4X2J5dGVzICs9IG1idWYtPnBrdF9sZW47DQoNCiAgICAgICAgICAgICAgIH0NCg0K KyAgICAgICAgICAgICAvKiBtYXkgaGF2ZSBwZW5kaW5nIHBhY2tldHMsIGtlZXAgdHJpZ2dlciAq Lw0KDQorICAgICAgICAgICAgIGlmIChudW1fcnggPT0gbmJfcGt0cykNCg0KKyAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgcnhxLT5rZWVwX3RyaWdnZXIgPSAxOw0KDQplbmQ6DQoNCiAgICAg ICAgICAgICAgIHJ4cS0+c3RhdHMuaXBhY2tldHMgKz0gbnVtX3J4Ow0KDQogICAgICAgICAgICAg ICByeHEtPnN0YXRzLmlieXRlcyArPSBudW1fcnhfYnl0ZXM7DQoNCkBAIC0xMzUyLDYgKzEzNTYs NyBAQCB0YXBfcnhfcXVldWVfc2V0dXAoc3RydWN0IHJ0ZV9ldGhfZGV2ICpkZXYsDQoNCg0KDQog ICAgICAgICAgICAgICAgcnhxLT5tcCA9IG1wOw0KDQogICAgICAgICAgICAgICByeHEtPnRyaWdn ZXJfc2VlbiA9IDE7IC8qIGZvcmNlIGluaXRpYWwgYnVyc3QgKi8NCg0KKyAgICAgICAg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