Skip to content

Commit 611ac0a

Browse files
lbmengdgibson
authored andcommitted
hw/net: fsl_etsec: Tx padding length should exclude CRC
As the comment of tx_padding_and_crc() says: "Never add CRC in QEMU", min_frame_len should excluce CRC, so it should be 60 instead of 64. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Message-Id: <20210316081505.72898-1-bmeng.cn@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
1 parent a40888b commit 611ac0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hw/net/fsl_etsec/rings.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ static void process_tx_bd(eTSEC *etsec,
259259
|| etsec->regs[MACCFG2].value & MACCFG2_PADCRC) {
260260

261261
/* Padding and CRC (Padding implies CRC) */
262-
tx_padding_and_crc(etsec, 64);
262+
tx_padding_and_crc(etsec, 60);
263263

264264
} else if (etsec->first_bd.flags & BD_TX_TC
265265
|| etsec->regs[MACCFG2].value & MACCFG2_CRC_EN) {

0 commit comments

Comments
 (0)