svn commit: r274441 - stable/9/sys/dev/cxgbe

Navdeep Parhar np at FreeBSD.org
Wed Nov 12 19:56:52 UTC 2014


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);


More information about the svn-src-all mailing list