summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2011-04-26 19:40:37 +0000
committerhselasky <hselasky@FreeBSD.org>2011-04-26 19:40:37 +0000
commit367ad6085180bae746c3d198a10f285cc3ce0755 (patch)
tree85f391dc31ecd0472dc22076ab5d285133e7923d /sys/dev
parent465b8d715b30c5302f4ab5025b7047645f35abde (diff)
downloadFreeBSD-src-367ad6085180bae746c3d198a10f285cc3ce0755.zip
FreeBSD-src-367ad6085180bae746c3d198a10f285cc3ce0755.tar.gz
The maximum NCM frame size must be so that it
will generate a short terminated USB transfer if the maximum NCM frame size is greater than what the driver can handle. Reported by: Matthias Benesch MFC after: 7 days Approved by: thompsa (mentor)
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/net/if_cdcereg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/net/if_cdcereg.h b/sys/dev/usb/net/if_cdcereg.h
index 5594a2f..c470b36 100644
--- a/sys/dev/usb/net/if_cdcereg.h
+++ b/sys/dev/usb/net/if_cdcereg.h
@@ -39,7 +39,7 @@
#define CDCE_IND_SIZE_MAX 32 /* bytes */
#define CDCE_NCM_TX_MINLEN 512 /* bytes, must be power of two */
-#define CDCE_NCM_TX_MAXLEN (1UL << 14) /* bytes */
+#define CDCE_NCM_TX_MAXLEN (16384 + 4) /* bytes, must be short terminated */
#define CDCE_NCM_TX_FRAMES_MAX 8 /* units */
#define CDCE_NCM_RX_MAXLEN (1UL << 14) /* bytes */
OpenPOWER on IntegriCloud