Re: [Qemu-devel] [PATCH for-2.4] e1000: flush packets when link comes up

2015-06-30 Thread Jason Wang
On 06/29/2015 06:39 PM, Stefan Hajnoczi wrote: > On Fri, Jun 26, 2015 at 05:06:01PM +0800, Jason Wang wrote: >> >> On 06/25/2015 05:18 PM, Stefan Hajnoczi wrote: >>> e1000_can_receive() checks the link up status register bit. If the bit >>> is clear, packets will be queued and the peer may disab

Re: [Qemu-devel] [PATCH for-2.4] e1000: flush packets when link comes up

2015-06-29 Thread Fam Zheng
On Mon, 06/29 11:39, Stefan Hajnoczi wrote: > On Fri, Jun 26, 2015 at 05:06:01PM +0800, Jason Wang wrote: > > > > > > On 06/25/2015 05:18 PM, Stefan Hajnoczi wrote: > > > e1000_can_receive() checks the link up status register bit. If the bit > > > is clear, packets will be queued and the peer ma

Re: [Qemu-devel] [PATCH for-2.4] e1000: flush packets when link comes up

2015-06-29 Thread Stefan Hajnoczi
On Fri, Jun 26, 2015 at 05:06:01PM +0800, Jason Wang wrote: > > > On 06/25/2015 05:18 PM, Stefan Hajnoczi wrote: > > e1000_can_receive() checks the link up status register bit. If the bit > > is clear, packets will be queued and the peer may disable receive to > > avoid wasting CPU reading packe

Re: [Qemu-devel] [PATCH for-2.4] e1000: flush packets when link comes up

2015-06-28 Thread Fam Zheng
On Fri, 06/26 17:06, Jason Wang wrote: > > > On 06/25/2015 05:18 PM, Stefan Hajnoczi wrote: > > e1000_can_receive() checks the link up status register bit. If the bit > > is clear, packets will be queued and the peer may disable receive to > > avoid wasting CPU reading packets that cannot be del

Re: [Qemu-devel] [PATCH for-2.4] e1000: flush packets when link comes up

2015-06-26 Thread Jason Wang
On 06/25/2015 05:18 PM, Stefan Hajnoczi wrote: > e1000_can_receive() checks the link up status register bit. If the bit > is clear, packets will be queued and the peer may disable receive to > avoid wasting CPU reading packets that cannot be delivered. The queue > must be flushed once the link

Re: [Qemu-devel] [PATCH for-2.4] e1000: flush packets when link comes up

2015-06-25 Thread Stefan Hajnoczi
On Thu, Jun 25, 2015 at 10:18:05AM +0100, Stefan Hajnoczi wrote: > e1000_can_receive() checks the link up status register bit. If the bit > is clear, packets will be queued and the peer may disable receive to > avoid wasting CPU reading packets that cannot be delivered. The queue > must be flushe

Re: [Qemu-devel] [PATCH for-2.4] e1000: flush packets when link comes up

2015-06-25 Thread Fam Zheng
On Thu, 06/25 10:18, Stefan Hajnoczi wrote: > e1000_can_receive() checks the link up status register bit. If the bit > is clear, packets will be queued and the peer may disable receive to > avoid wasting CPU reading packets that cannot be delivered. The queue > must be flushed once the link comes

[Qemu-devel] [PATCH for-2.4] e1000: flush packets when link comes up

2015-06-25 Thread Stefan Hajnoczi
e1000_can_receive() checks the link up status register bit. If the bit is clear, packets will be queued and the peer may disable receive to avoid wasting CPU reading packets that cannot be delivered. The queue must be flushed once the link comes back up again. This patch fixes broken e1000 recei