Date: Wed, 12 Nov 2014 19:56:51 +0000 (UTC) From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r274441 - stable/9/sys/dev/cxgbe Message-ID: <201411121956.sACJupw3061202@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: np Date: Wed Nov 12 19:56:51 2014 New Revision: 274441 URL: https://svnweb.freebsd.org/changeset/base/274441 Log: MFC r272190: cxgbe(4): explicitly set various if_hw_tso* values. Modified: stable/9/sys/dev/cxgbe/t4_main.c Directory Properties: stable/9/sys/ (props changed) stable/9/sys/dev/ (props changed) Modified: stable/9/sys/dev/cxgbe/t4_main.c ============================================================================== --- stable/9/sys/dev/cxgbe/t4_main.c Wed Nov 12 19:53:35 2014 (r274440) +++ stable/9/sys/dev/cxgbe/t4_main.c Wed Nov 12 19:56:51 2014 (r274441) @@ -992,6 +992,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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411121956.sACJupw3061202>