Ping. http://patchwork.ozlabs.org/patch/662355/
On Tue, Aug 23, 2016 at 1:46 PM, Mateus Krepsky Ludwich <mkludw...@gmail.com> wrote: > Changed E100 device so it updates EOF, F, and Actual Count fields of Receive > Frame Descriptor (RFD). > Assuming RFD.actual_count equals to size. > > Signed-off-by: Mateus Krepsky Ludwich <mkludw...@gmail.com> > --- > hw/net/eepro100.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c > index bab4dbf..c0f3816 100644 > --- a/hw/net/eepro100.c > +++ b/hw/net/eepro100.c > @@ -1739,6 +1739,7 @@ static ssize_t nic_receive(NetClientState *nc, > const uint8_t * buf, size_t size) > &rx, sizeof(eepro100_rx_t)); > uint16_t rfd_command = le16_to_cpu(rx.command); > uint16_t rfd_size = le16_to_cpu(rx.size); > + uint16_t rfd_count = size | 0xc000 ; /* Setting EOF and F bits */ > > if (size > rfd_size) { > logout("Receive buffer (%" PRId16 " bytes) too small for data " > @@ -1756,6 +1757,8 @@ static ssize_t nic_receive(NetClientState *nc, > const uint8_t * buf, size_t size) > offsetof(eepro100_rx_t, status), rfd_status); > stw_le_pci_dma(&s->dev, s->ru_base + s->ru_offset + > offsetof(eepro100_rx_t, count), size); > + stw_le_pci_dma(&s->dev, s->ru_base + s->ru_offset + > + offsetof(eepro100_rx_t, count), rfd_count); > /* Early receive interrupt not supported. */ > #if 0 > eepro100_er_interrupt(s); > -- > 1.9.1