Revision b0b90007

b/hw/e1000.c
649 649
    }
650 650

  
651 651
    rdh_start = s->mac_reg[RDH];
652
    size += 4; // for the header
653 652
    do {
654 653
        if (s->mac_reg[RDH] == s->mac_reg[RDT] && s->check_rxov) {
655 654
            set_ics(s, 0, E1000_ICS_RXO);
......
663 662
        if (desc.buffer_addr) {
664 663
            cpu_physical_memory_write(le64_to_cpu(desc.buffer_addr),
665 664
                                      (void *)(buf + vlan_offset), size);
666
            desc.length = cpu_to_le16(size);
665
            desc.length = cpu_to_le16(size + 4 /* for FCS */);
667 666
            desc.status |= E1000_RXD_STAT_EOP|E1000_RXD_STAT_IXSM;
668 667
        } else // as per intel docs; skip descriptors with null buf addr
669 668
            DBGOUT(RX, "Null RX descriptor!!\n");

Also available in: Unified diff