net/e1000: fix checksum valid flags error
PATCH v2 1/1 net/e1000: fix checksum valid flags error
This problem is caused by a missing set of E1000_RXCSUM_CRCOFL in eth_igb_rx_init(), it should be set to enable SCTP packet L4 checksum.If it is not set, the printf message in cksum fwd about L4 SCTP cksum flag is error.
Fixes af75078fece3 ("first public release")
Signed-off-by Wei Zhao <[email protected]>
---
Changes in v2:
fix patch log error in fixes information.
--- drivers/net/e1000/igb_rxtx.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/net/e1000/igb_rxtx.c +4 -3
@@ -2402,10 +2402,11 @@ eth_igb_rx_init(struct rte_eth_dev *dev)/* Enable both L3/L4 rx checksum offload */ if (dev->data->dev_conf.rxmode.hw_ip_checksum) - rxcsum |= (E1000_RXCSUM_IPOFL |E1000_RXCSUM_TUOFL ); + rxcsum |= (E1000_RXCSUM_IPOFL |E1000_RXCSUM_TUOFL | +E1000_RXCSUM_CRCOFL );else - rxcsum &= ~(E1000_RXCSUM_IPOFL |E1000_RXCSUM_TUOFL ); -E1000_WRITE_REG (hw,E1000_RXCSUM , rxcsum); + rxcsum &= ~(E1000_RXCSUM_IPOFL |E1000_RXCSUM_TUOFL | +E1000_RXCSUM_CRCOFL );/* Setup the Receive Control Register. */ if (dev->data->dev_conf.rxmode.hw_strip_crc) {
Signature · 1 line
2.9.3