All of lore.kernel.org
 help / color / mirror / Atom feed
From: Linhaifeng <haifeng.lin-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
To: "Xie,
	Huawei" <huawei.xie-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	"dev-VfR2kkLFssw@public.gmane.org"
	<dev-VfR2kkLFssw@public.gmane.org>
Subject: Re: [PATCH] vhost: notify guest to fill buffer when there is	no buffer
Date: Thu, 29 Jan 2015 20:39:16 +0800	[thread overview]
Message-ID: <54CA29F4.8080108@huawei.com> (raw)
In-Reply-To: <C37D651A908B024F974696C65296B57B0F376EE2-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>



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

  parent reply	other threads:[~2015-01-29 12:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-29 10:30 [PATCH] vhost: notify guest to fill buffer when there is no buffer linhaifeng
     [not found] ` <1422527404-12424-1-git-send-email-haifeng.lin-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2015-01-29 10:39   ` Xie, Huawei
     [not found]     ` <C37D651A908B024F974696C65296B57B0F376EE2-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-01-29 12:39       ` Linhaifeng [this message]
     [not found]         ` <54CA29F4.8080108-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2015-01-29 13:00           ` Xie, Huawei
     [not found]             ` <C37D651A908B024F974696C65296B57B0F377362-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-01-29 13:50               ` Linhaifeng
     [not found]                 ` <54CA3ABF.3010203-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2015-01-30  8:20                   ` Xu, Qian Q
     [not found]                     ` <82F45D86ADE5454A95A89742C8D1410E01C9FC50-E2R4CRU6q/6iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-01-30 10:33                       ` Linhaifeng
2015-02-01  6:04                       ` Linhaifeng
     [not found]                         ` <82F45D86ADE5454A95A89742C8D1410E01CA1DA3@shsmsx102.ccr.corp.intel.com>
     [not found]                           ` <54CF6BB3.7080002@huawei.com>
     [not found]                             ` <C37D651A908B024F974696C65296B57B0F37C3F7@SHSMSX101.ccr.corp.intel.com>
     [not found]                               ` <54D08AFA.2030404@huawei.com>
     [not found]                                 ` <82F45D86ADE5454A95A89742C8D1410E01CA3197@shsmsx102.ccr.corp.intel.com>
     [not found]                                   ` <54D0926D.9010304@huawei.com>
     [not found]                                     ` <54D0926D.9010304-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2015-02-04  1:38                                       ` Xu, Qian Q
     [not found]                                         ` <82F45D86ADE5454A95A89742C8D1410E01CA3873-E2R4CRU6q/6iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-02-06  4:02                                           ` Linhaifeng
     [not found]                                             ` <54D43CCF.1000509-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2015-02-06  5:54                                               ` Xu, Qian Q
     [not found]                                                 ` <82F45D86ADE5454A95A89742C8D1410E01CB7717-E2R4CRU6q/6iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-02-06 11:02                                                   ` Linhaifeng
2015-02-07  4:26                                                   ` Linhaifeng
     [not found]                                                     ` <54D593F9.4070200-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2015-02-09  2:57                                                       ` Xu, Qian Q
     [not found]                                                         ` <82F45D86ADE5454A95A89742C8D1410E01CBABBB-E2R4CRU6q/6iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-02-09  4:11                                                           ` Linhaifeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54CA29F4.8080108@huawei.com \
    --to=haifeng.lin-hv44wf8li93qt0dzr+alfa@public.gmane.org \
    --cc=dev-VfR2kkLFssw@public.gmane.org \
    --cc=huawei.xie-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.