svn commit: r358979 - head/sys/dev/usb/net
Ed Maste
emaste at FreeBSD.org
Sat Mar 14 01:52:40 UTC 2020
Author: emaste
Date: Sat Mar 14 01:52:38 2020
New Revision: 358979
URL: https://svnweb.freebsd.org/changeset/base/358979
Log:
muge: correct RX checksum offload
Submitted by: Johannes <iz-rpi04 at hs-karlsruhe.de>
MFC after: 1 week
Modified:
head/sys/dev/usb/net/if_muge.c
Modified: head/sys/dev/usb/net/if_muge.c
==============================================================================
--- head/sys/dev/usb/net/if_muge.c Sat Mar 14 01:42:21 2020 (r358978)
+++ head/sys/dev/usb/net/if_muge.c Sat Mar 14 01:52:38 2020 (r358979)
@@ -1285,7 +1285,8 @@ muge_bulk_read_callback(struct usb_xfer *xfer, usb_err
*/
if (pktlen > ETHER_MIN_LEN) {
m->m_pkthdr.csum_flags |=
- CSUM_DATA_VALID;
+ CSUM_DATA_VALID |
+ CSUM_PSEUDO_HDR;
/*
* Copy the checksum from the
@@ -1304,7 +1305,7 @@ muge_bulk_read_callback(struct usb_xfer *xfer, usb_err
* be in host network order.
*/
m->m_pkthdr.csum_data =
- ntohs(m->m_pkthdr.csum_data);
+ ntohs(0xffff);
muge_dbg_printf(sc,
"RX checksum offloaded (0x%04x)\n",
More information about the svn-src-head
mailing list