From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [119.145.14.65]) by dpdk.org (Postfix) with ESMTP id 73E225A7C for ; Thu, 29 Jan 2015 13:39:27 +0100 (CET) Received: from 172.24.2.119 (EHLO szxeml426-hub.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CGM74177; Thu, 29 Jan 2015 20:39:24 +0800 (CST) Received: from [127.0.0.1] (10.177.19.115) by szxeml426-hub.china.huawei.com (10.82.67.181) with Microsoft SMTP Server id 14.3.158.1; Thu, 29 Jan 2015 20:39:18 +0800 Message-ID: <54CA29F4.8080108@huawei.com> Date: Thu, 29 Jan 2015 20:39:16 +0800 From: Linhaifeng User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: "Xie, Huawei" , "dev@dpdk.org" References: <1422527404-12424-1-git-send-email-haifeng.lin@huawei.com> In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.19.115] X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH] vhost: notify guest to fill buffer when there is no buffer 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: Thu, 29 Jan 2015 12:39:30 -0000 On 2015/1/29 18:39, Xie, Huawei wrote: >> - if (count == 0) >> + /* If there is no buffers we should notify guest to fill. >> + * This is need when guest use virtio_net driver(not pmd). >> + */ >> + if (count == 0) { >> + if (!(vq->avail->flags & >> VRING_AVAIL_F_NO_INTERRUPT)) >> + eventfd_write((int)vq->kickfd, 1); >> return 0; >> + } > > Haifeng: > Is it the root cause and is it protocol required? > Could you give a detailed description for that scenario? > I use mz to send data from one VM1 to VM2.The two VM use virtio-net driver. VM1 execute follow script: for((i=0;i<999999999;i++)); do mz eth0 -t udp -A 1.1.1.1 -B 1.1.1.2 -a 00:00:00:00:00:01 -b 00:00:00:00:00:02 -c 10000000 -p 512 sleep 4 done VM2 execute follow command to watch: watch -d ifconfig After many hours VM2 stop to receive data. Could you test it ? -- Regards, Haifeng