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 D5F60A0487 for ; Thu, 4 Jul 2019 18:39:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E17074D27; Thu, 4 Jul 2019 18:39:09 +0200 (CEST) Received: from sjdcvmout04.udc.trendmicro.com (sjdcexbh01.udc.trendmicro.com [66.180.82.2]) by dpdk.org (Postfix) with ESMTP id DD9F65680 for ; Thu, 4 Jul 2019 18:11:39 +0200 (CEST) Received: from sjdcvmout04.udc.trendmicro.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 06711B605A; Thu, 4 Jul 2019 09:11:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=trendmicro.com; s=tmoutbound; t=1562256699; bh=MQBnMJlkyGbABmZkS20FZQRgyEgtaqvbZRkhyFT4Wso=; h=From:To:Date; b=Lnn0VLmmJy6UxJzX5d9JATkECWFL9/csPEKTvwfKocP9D5qEgqVbjKPWbtWCnXPyR mfMFSefcQmgLL4UWBIkLxT7Miy21zkX2ENj+IKh8+wvpn38lNMRlSiRjTCJ5FfFey7 FY/k/4lthOg/z4xcB3CSxZvgvjAK9C5DuHiLJ9WE= Received: from sjdcvmout04.udc.trendmicro.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DA2C2B6065; Thu, 4 Jul 2019 09:11:38 -0700 (PDT) Received: from SJDC-EXNABU02.us.trendnet.org (unknown [10.45.175.98]) by sjdcvmout04.udc.trendmicro.com (Postfix) with ESMTPS; Thu, 4 Jul 2019 09:11:38 -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; Thu, 4 Jul 2019 09:11:37 -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; Thu, 4 Jul 2019 16:11:34 +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; Thu, 4 Jul 2019 16:11:34 +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: AQHVMoMmdPGZz/eHIUmnhvs6FPTZ3w== Date: Thu, 4 Jul 2019 16:11:34 +0000 Message-ID: <2936367A-8014-44CB-A597-798584D74581@trendmicro.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.28.4.6] X-TM-AS-Product-Ver: IMSVA-9.1.0.1631-8.5.0.1020-24740.000 X-TM-AS-Result: No--25.655-5.0-31-10 X-TMASE-MatchedRID: h7xk5T+JIpjufqzm3tgS7Y4uBIdoKfju/2TqseCWMdvRLEyE6G4DRJgw yjyRlr+GAAjnEd8ZwhBPqB3pOTBUj+cLkvJgnAPfqJSK+HSPY+/pVMb1xnESMgaYevV4zG3ZUx7 kGWSmvLut2gtuWr1Lmg7ygCRRhrfkTWQjyUs6+bII5rLLSVe5tH/0yDqj7AyL8Th0Gt9O5HYnui +WQ9elLR0vikzF2XoV9k3gQgWisFDJzlixzGB5rIkvHinQ/+7kSOSCgZrnlVq5vIEtgZNsniTCV wyY5KnUzM2aIr4VkeyHvsREzkPkKKA4ukC2XUZKGCW3KaLghNVVogWRsEaR/misn1mjz82fpPsK HzuZc0lsFFXporMzJC6pAEHv9hRc0+Gv1tc3Op3vVbHa5Rs8t0OvwxWboMrdu/zUE1SNSPmM0vG tzEpWJS2Hzt3dJuodvy1D537721dh9/cDmdaORiH9ExNVXbjbGfESeH6pl4ZHZg0gWH5yUdo4FZ oSpQ8YFrUgqrTL4vbrFyQfGPoq5TgzooZByAGIJhFEQZiq2ZSZEoWHC6Rh/XT4/S1AY/5L/SX3w n4HkEFC6F0U2aKLv+AaRLbfMAgcy7C8aiHVN2OeAiCmPx4NwGmRqNBHmBvepTwPRvSoXL2y5/tF Zu9S3OdLjQU97e0W0mZ6Ix/WAmNQnCO6YEk8DYxXbJ0BXCUG/SDP17INpmr0BPvhkpU07Q== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--25.654600-10.000000 X-TMASE-Version: IMSVA-9.1.0.1631-8.5.1020-24740.000 MIME-Version: 1.0 X-TM-SNTS-SMTP: B61D4176CC9C50C7D29BC96352705C4BC7A612C7ECD2ECC0CC9FB86D021947042000:7 X-TM-AS-GCONF: 00 X-imss-scan-details: No--25.655-5.0-31-10 X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0-0 X-Mailman-Approved-At: Thu, 04 Jul 2019 18:39:08 +0200 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" 77u/RnJvbTogRG9uYWxkIExlZSA8ZG9uYWxkX2xlZUB0cmVuZG1pY3JvLmNvbT4NCg0KDQoNCkFm dGVyIHBtZF9yeF9idXJzdCBiZSB0cmlnZ2VyZWQsIGl0IGRvZXNuJ3QgcmV0cmlldmUgYWxsIHRo ZSBmcmFtZXMuDQoNCkl0IG1heSBsZWF2ZS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AodHJpZ2dlcikNCg0KICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIHJ4cS0+dHJpZ2dlcl9zZWVuID0gdHJpZ2dlcjsNCg0K KyAgICAgICAgICAgICByeHEtPmtlZXBfdHJpZ2dlciA9IDA7DQoNCiAgICAgICAgICAgICAgIHBy b2Nlc3NfcHJpdmF0ZSA9IHJ0ZV9ldGhfZGV2aWNlc1tyeHEtPmluX3BvcnRdLnByb2Nlc3NfcHJp dmF0ZTsNCg0KICAgICAgICAgICAgICAgcnRlX2NvbXBpbGVyX2JhcnJpZXIoKTsNCg0KICAgICAg ICAgICAgICAgZm9yIChudW1fcnggPSAwOyBudW1fcnggPCBuYl9wa3RzOyApIHsNCg0KQEAgLTQz MSw2ICs0MzIsOSBAQCBwbWRfcnhfYnVyc3Qodm9pZCAqcXVldWUsIHN0cnVjdCBydGVfbWJ1ZiAq KmJ1ZnMsIHVpbnQxNl90IG5iX3BrdHMpDQoNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICBidWZzW251bV9yeCsrXSA9IG1idWY7DQoNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICBudW1fcnhfYnl0ZXMgKz0gbWJ1Zi0+cGt0X2xlbjsNCg0KICAgICAgICAgICAgICAgfQ0KDQor ICAgICAgICAgICAgIC8qIG1heSBoYXZlIHBlbmRpbmcgcGFja2V0cywga2VlcCB0cmlnZ2VyICov DQoNCisgICAgICAgICAgICAgaWYgKG51bV9yeCA9PSBuYl9wa3RzKQ0KDQorICAgICAgICAgICAg ICAgICAgICAgICAgICAgICByeHEtPmtlZXBfdHJpZ2dlciA9IDE7DQoNCmVuZDoNCg0KICAgICAg ICAgICAgICAgcnhxLT5zdGF0cy5pcGFja2V0cyArPSBudW1fcng7DQoNCiAgICAgICAgICAgICAg IHJ4cS0+c3RhdHMuaWJ5dGVzICs9IG51bV9yeF9ieXRlczsNCg0KQEAgLTEzNTIsNiArMTM1Niw3 IEBAIHRhcF9yeF9xdWV1ZV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