]> git.ipfire.org Git - thirdparty/qemu.git/commit
net/net: properly handle multiple packets in net_fill_rstate()
authorZhang Chen <zhangchen.fnst@cn.fujitsu.com>
Thu, 18 Aug 2016 03:23:25 +0000 (11:23 +0800)
committerJason Wang <jasowang@redhat.com>
Thu, 18 Aug 2016 04:20:57 +0000 (12:20 +0800)
commite9e0a5854b6dc888f44e7e280a007326714199a6
treef1603b31232beaf770512b88ae00c7f20336daf2
parent47882fa4975bf0b58dd74474329fdd7154e8f04c
net/net: properly handle multiple packets in net_fill_rstate()

When network is busy, we will receive multiple packets at one time. In
that situation, we should keep trying to do the receiving instead of
finalizing only the first packet.

Signed-off-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/net.c