fix the issue that set the incorrect crc_strip flag.

This commit is contained in:
root 2019-07-05 14:45:00 +08:00
parent a2f2939ed6
commit 5910503df7
1 changed files with 1 additions and 3 deletions

View File

@ -582,9 +582,7 @@ init_port_start(void)
}
/* Enable HW CRC stripping */
if (dev_info.rx_offload_capa & DEV_RX_OFFLOAD_KEEP_CRC) {
port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_KEEP_CRC;
}
port_conf.rxmode.offloads &= ~DEV_RX_OFFLOAD_KEEP_CRC;
/* FIXME: Enable TCP LRO ?*/
#if 0