svn commit: r272190 - head/sys/dev/cxgbe
Navdeep Parhar
np at FreeBSD.org
Fri Sep 26 22:21:03 UTC 2014
Author: np
Date: Fri Sep 26 22:21:02 2014
New Revision: 272190
URL: http://svnweb.freebsd.org/changeset/base/272190
Log:
cxgbe(4): explicitly set various if_hw_tso* values.
MFC after: 3 days
Modified:
head/sys/dev/cxgbe/t4_main.c
Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c Fri Sep 26 21:46:32 2014 (r272189)
+++ head/sys/dev/cxgbe/t4_main.c Fri Sep 26 22:21:02 2014 (r272190)
@@ -1083,6 +1083,10 @@ cxgbe_attach(device_t dev)
ifp->if_hwassist = CSUM_TCP | CSUM_UDP | CSUM_IP | CSUM_TSO |
CSUM_UDP_IPV6 | CSUM_TCP_IPV6;
+ ifp->if_hw_tsomax = 65536 - (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN);
+ ifp->if_hw_tsomaxsegcount = TX_SGL_SEGS;
+ ifp->if_hw_tsomaxsegsize = 65536;
+
/* Initialize ifmedia for this port */
ifmedia_init(&pi->media, IFM_IMASK, cxgbe_media_change,
cxgbe_media_status);
More information about the svn-src-all
mailing list