Re: [Qemu-devel] [PATCH for-2.4 08/12] milkymist-minimac2: Flush queued packets when link comes up

2015-07-15 Thread Michael Walle
Am 2015-07-14 13:07, schrieb Fam Zheng: On Tue, 07/14 13:02, Michael Walle wrote: Am 2015-07-14 09:53, schrieb Fam Zheng: Drop .can_receive and move the semantics into minimac2_rx, by returning 0. That is once minimac2_rx returns 0, incoming packets will be queued until the queue is explicitly

[Qemu-devel] [PATCH for-2.4 08/12] milkymist-minimac2: Flush queued packets when link comes up

2015-07-14 Thread Fam Zheng
Drop .can_receive and move the semantics into minimac2_rx, by returning 0. That is once minimac2_rx returns 0, incoming packets will be queued until the queue is explicitly flushed. We do this when s-regs[R_STATE0] or s-regs[R_STATE1] is changed in minimac2_write. Signed-off-by: Fam Zheng

Re: [Qemu-devel] [PATCH for-2.4 08/12] milkymist-minimac2: Flush queued packets when link comes up

2015-07-14 Thread Michael Walle
Am 2015-07-14 09:53, schrieb Fam Zheng: Drop .can_receive and move the semantics into minimac2_rx, by returning 0. That is once minimac2_rx returns 0, incoming packets will be queued until the queue is explicitly flushed. We do this when s-regs[R_STATE0] or s-regs[R_STATE1] is changed in

Re: [Qemu-devel] [PATCH for-2.4 08/12] milkymist-minimac2: Flush queued packets when link comes up

2015-07-14 Thread Fam Zheng
On Tue, 07/14 13:02, Michael Walle wrote: Am 2015-07-14 09:53, schrieb Fam Zheng: Drop .can_receive and move the semantics into minimac2_rx, by returning 0. That is once minimac2_rx returns 0, incoming packets will be queued until the queue is explicitly flushed. We do this when