svn commit: r345598 - stable/12/sys/dev/cxgbe

Navdeep Parhar np at FreeBSD.org
Wed Mar 27 19:42:25 UTC 2019


Author: np
Date: Wed Mar 27 19:42:24 2019
New Revision: 345598
URL: https://svnweb.freebsd.org/changeset/base/345598

Log:
  MFC r339965:
  
  cxgbe(4): Report a reasonable non-zero if_hw_tsomaxsegsize to the
  kernel.
  
  This reverts an accidental change that snuck in with r339628.
  
  Sponsored by:	Chelsio Communications

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

Modified: stable/12/sys/dev/cxgbe/t4_main.c
==============================================================================
--- stable/12/sys/dev/cxgbe/t4_main.c	Wed Mar 27 19:40:31 2019	(r345597)
+++ stable/12/sys/dev/cxgbe/t4_main.c	Wed Mar 27 19:42:24 2019	(r345598)
@@ -1661,7 +1661,7 @@ cxgbe_vi_attach(device_t dev, struct vi_info *vi)
 	if (is_ethoffload(vi->pi->adapter) && vi->nofldtxq != 0)
 		ifp->if_hw_tsomaxsegcount = TX_SGL_SEGS_EO_TSO;
 #endif
-	ifp->if_hw_tsomaxsegsize = 0;
+	ifp->if_hw_tsomaxsegsize = 65536;
 
 	ether_ifattach(ifp, vi->hw_addr);
 #ifdef DEV_NETMAP


More information about the svn-src-all mailing list