Re: [Qemu-devel] [PATCH 1/2] net: assert that tx packets have nonzero size

2019-07-26 Thread Oleinik, Alexander
On Tue, 2019-07-23 at 11:38 +0800, Jason Wang wrote: > On 2019/7/20 上午2:52, Oleinik, Alexander wrote: > > Virtual devices should not try to send zero-sized packets. The > > caller > > should check the size prior to calling qemu_sendv_packet_async. > > > > Signed-off-by: Alexander Oleinik > > ---

Re: [Qemu-devel] [PATCH 1/2] net: assert that tx packets have nonzero size

2019-07-22 Thread Jason Wang
On 2019/7/20 上午2:52, Oleinik, Alexander wrote: Virtual devices should not try to send zero-sized packets. The caller should check the size prior to calling qemu_sendv_packet_async. Signed-off-by: Alexander Oleinik --- net/net.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

Re: [Qemu-devel] [PATCH 1/2] net: assert that tx packets have nonzero size

2019-07-22 Thread Stefan Hajnoczi
On Fri, Jul 19, 2019 at 06:52:24PM +, Oleinik, Alexander wrote: > Virtual devices should not try to send zero-sized packets. The caller > should check the size prior to calling qemu_sendv_packet_async. > > Signed-off-by: Alexander Oleinik > --- > net/net.c | 3 +++ > 1 file changed, 3

[Qemu-devel] [PATCH 1/2] net: assert that tx packets have nonzero size

2019-07-19 Thread Oleinik, Alexander
Virtual devices should not try to send zero-sized packets. The caller should check the size prior to calling qemu_sendv_packet_async. Signed-off-by: Alexander Oleinik --- net/net.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/net.c b/net/net.c index 7d4098254f..fad20bc611 100644