svn commit: r274440 - stable/10/sys/dev/cxgbe

Navdeep Parhar np at FreeBSD.org
Wed Nov 12 19:53:36 UTC 2014


Author: np
Date: Wed Nov 12 19:53:35 2014
New Revision: 274440
URL: https://svnweb.freebsd.org/changeset/base/274440

Log:
  MFC r272190:
  
  cxgbe(4): explicitly set various if_hw_tso* values.

Modified:
  stable/10/sys/dev/cxgbe/t4_main.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/cxgbe/t4_main.c
==============================================================================
--- stable/10/sys/dev/cxgbe/t4_main.c	Wed Nov 12 17:56:38 2014	(r274439)
+++ stable/10/sys/dev/cxgbe/t4_main.c	Wed Nov 12 19:53:35 2014	(r274440)
@@ -1067,6 +1067,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