Skip to content

Commit

Permalink
ftgmac100: remove check on runt messages
Browse files Browse the repository at this point in the history
This is a ethernet wire limitation not needed in emulation. It breaks
U-Boot n/w stack also.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-id: 20180530061711.23673-5-clg@kaod.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
  • Loading branch information
legoater authored and pm215 committed Jun 8, 2018
1 parent 44effc1 commit 99a00e5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions hw/net/ftgmac100.c
Expand Up @@ -822,12 +822,6 @@ static ssize_t ftgmac100_receive(NetClientState *nc, const uint8_t *buf,
return size;
}

if (size < 64 && !(s->maccr & FTGMAC100_MACCR_RX_RUNT)) {
qemu_log_mask(LOG_GUEST_ERROR, "%s: dropped runt frame of %zd bytes\n",
__func__, size);
return size;
}

if (!ftgmac100_filter(s, buf, size)) {
return size;
}
Expand Down

0 comments on commit 99a00e5

Please sign in to comment.