Re: [PATCH RFC] virtio_net: fix error handling for mergeable buffers

2013-11-20 Thread Jason Wang
On 11/20/2013 10:20 PM, Michael S. Tsirkin wrote: > On Wed, Nov 20, 2013 at 08:54:02AM -0500, Jason Wang wrote: >> >> - 原始邮件 - >>> On Wed, Nov 20, 2013 at 05:07:25PM +0800, Jason Wang wrote: When mergeable buffer were used, we only put the first page buf leave the rest of

Re: [PATCH RFC] virtio_net: fix error handling for mergeable buffers

2013-11-20 Thread Michael S. Tsirkin
On Wed, Nov 20, 2013 at 08:54:02AM -0500, Jason Wang wrote: > > > - 原始邮件 - > > On Wed, Nov 20, 2013 at 05:07:25PM +0800, Jason Wang wrote: > > > When mergeable buffer were used, we only put the first page buf leave the > > > rest > > > of buffers in the virt queue. This will cause the

Re: [PATCH RFC] virtio_net: fix error handling for mergeable buffers

2013-11-20 Thread Jason Wang
- 原始邮件 - > On Wed, Nov 20, 2013 at 05:07:25PM +0800, Jason Wang wrote: > > When mergeable buffer were used, we only put the first page buf leave the > > rest > > of buffers in the virt queue. This will cause the driver could not get the > > correct head buffer any more. Fix this by

[PATCH RFC] virtio_net: fix error handling for mergeable buffers

2013-11-20 Thread Michael S. Tsirkin
On Wed, Nov 20, 2013 at 05:07:25PM +0800, Jason Wang wrote: > When mergeable buffer were used, we only put the first page buf leave the rest > of buffers in the virt queue. This will cause the driver could not get the > correct head buffer any more. Fix this by dropping the rest of buffers for >

[PATCH RFC] virtio_net: fix error handling for mergeable buffers

2013-11-20 Thread Michael S. Tsirkin
On Wed, Nov 20, 2013 at 05:07:25PM +0800, Jason Wang wrote: When mergeable buffer were used, we only put the first page buf leave the rest of buffers in the virt queue. This will cause the driver could not get the correct head buffer any more. Fix this by dropping the rest of buffers for this

Re: [PATCH RFC] virtio_net: fix error handling for mergeable buffers

2013-11-20 Thread Jason Wang
- 原始邮件 - On Wed, Nov 20, 2013 at 05:07:25PM +0800, Jason Wang wrote: When mergeable buffer were used, we only put the first page buf leave the rest of buffers in the virt queue. This will cause the driver could not get the correct head buffer any more. Fix this by dropping the

Re: [PATCH RFC] virtio_net: fix error handling for mergeable buffers

2013-11-20 Thread Michael S. Tsirkin
On Wed, Nov 20, 2013 at 08:54:02AM -0500, Jason Wang wrote: - 原始邮件 - On Wed, Nov 20, 2013 at 05:07:25PM +0800, Jason Wang wrote: When mergeable buffer were used, we only put the first page buf leave the rest of buffers in the virt queue. This will cause the driver could not

Re: [PATCH RFC] virtio_net: fix error handling for mergeable buffers

2013-11-20 Thread Jason Wang
On 11/20/2013 10:20 PM, Michael S. Tsirkin wrote: On Wed, Nov 20, 2013 at 08:54:02AM -0500, Jason Wang wrote: - 原始邮件 - On Wed, Nov 20, 2013 at 05:07:25PM +0800, Jason Wang wrote: When mergeable buffer were used, we only put the first page buf leave the rest of buffers in the virt