Skip to content
  • Akihiko Odaki's avatar
    74349514
    e1000x: Take CRC into consideration for size check · 74349514
    Akihiko Odaki authored
    
    
    Section 13.7.15 Receive Length Error Count says:
    >  Packets over 1522 bytes are oversized if LongPacketEnable is 0b
    > (RCTL.LPE). If LongPacketEnable (LPE) is 1b, then an incoming packet
    > is considered oversized if it exceeds 16384 bytes.
    
    > These lengths are based on bytes in the received packet from
    > <Destination Address> through <CRC>, inclusively.
    
    As QEMU processes packets without CRC, the number of bytes for CRC
    need to be subtracted. This change adds some size definitions to be used
    to derive the new size thresholds to eth.h.
    
    Signed-off-by: default avatarAkihiko Odaki <akihiko.odaki@daynix.com>
    Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
    74349514
    e1000x: Take CRC into consideration for size check
    Akihiko Odaki authored
    
    
    Section 13.7.15 Receive Length Error Count says:
    >  Packets over 1522 bytes are oversized if LongPacketEnable is 0b
    > (RCTL.LPE). If LongPacketEnable (LPE) is 1b, then an incoming packet
    > is considered oversized if it exceeds 16384 bytes.
    
    > These lengths are based on bytes in the received packet from
    > <Destination Address> through <CRC>, inclusively.
    
    As QEMU processes packets without CRC, the number of bytes for CRC
    need to be subtracted. This change adds some size definitions to be used
    to derive the new size thresholds to eth.h.
    
    Signed-off-by: default avatarAkihiko Odaki <akihiko.odaki@daynix.com>
    Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
Loading