From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.jd.com (smtp.jd.com [58.83.206.59]) by dpdk.org (Postfix) with ESMTP id 55B231B173 for ; Wed, 3 Jan 2018 09:21:27 +0100 (CET) Received: from HUB06.360buyAD.local (172.17.27.42) by HUB03.360buyAD.local (172.17.27.17) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 3 Jan 2018 16:21:27 +0800 Received: from MBX05.360buyAD.local ([fe80::7043:229a:8a1b:2ced]) by hub06.360buyAD.local ([fe80::a522:2f79:88c6:4981%15]) with mapi id 14.03.0382.000; Wed, 3 Jan 2018 16:21:27 +0800 From: =?utf-8?B?546L5b+X5YWL?= To: Tiwei Bie CC: "dev@dpdk.org" , "bluca@debian.org" , "yliu@fridaylinux.org" Thread-Topic: net/virtio: fix vector Rx break caused by rxq flushing Thread-Index: AdOApPV0Gq72PaRJSH2kZjTbP+YFywAOvMCAAOLhsnA= Date: Wed, 3 Jan 2018 08:21:26 +0000 Message-ID: <6DAF063A35010343823807B082E5681F41D84163@mbx05.360buyAD.local> References: <6DAF063A35010343823807B082E5681F41D839EF@mbx05.360buyAD.local> <20171230040209.b73z42ymlh4emjxe@debian-xvivbkq.sh.intel.com> In-Reply-To: <20171230040209.b73z42ymlh4emjxe@debian-xvivbkq.sh.intel.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.17.27.83] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] net/virtio: fix vector Rx break caused by rxq flushing 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: , X-List-Received-Date: Wed, 03 Jan 2018 08:21:28 -0000 SGkgVGl3ZWksDQoNClRoYW5rcyBmb3IgeW91ciBoZWxwIGFuZCBpbmZvLg0KDQpJIG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