Date: Thu, 28 Apr 2011 06:57:47 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r221151 - stable/8/sys/dev/usb/net Message-ID: <201104280657.p3S6vlwG009896@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Thu Apr 28 06:57:46 2011 New Revision: 221151 URL: http://svn.freebsd.org/changeset/base/221151 Log: MFC r221077. 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. Approved by: thompsa Modified: stable/8/sys/dev/usb/net/if_cdcereg.h Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/dev/usb/net/if_cdcereg.h ============================================================================== --- stable/8/sys/dev/usb/net/if_cdcereg.h Thu Apr 28 06:54:38 2011 (r221150) +++ stable/8/sys/dev/usb/net/if_cdcereg.h Thu Apr 28 06:57:46 2011 (r221151) @@ -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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104280657.p3S6vlwG009896>