Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Mar 2020 00:31:27 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r359191 - stable/12/sys/dev/usb/net
Message-ID:  <202003210031.02L0VRdB068282@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Sat Mar 21 00:31:27 2020
New Revision: 359191
URL: https://svnweb.freebsd.org/changeset/base/359191

Log:
  MFC r359007: muge: drop CSUM from MUGE_DEFAULT_TSO_CSUM_ENABLE
  
  TSO is independent of checksum offload

Modified:
  stable/12/sys/dev/usb/net/if_muge.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/usb/net/if_muge.c
==============================================================================
--- stable/12/sys/dev/usb/net/if_muge.c	Sat Mar 21 00:29:16 2020	(r359190)
+++ stable/12/sys/dev/usb/net/if_muge.c	Sat Mar 21 00:31:27 2020	(r359191)
@@ -124,7 +124,7 @@ SYSCTL_INT(_hw_usb_muge, OID_AUTO, debug, CTLFLAG_RWTU
 
 #define MUGE_DEFAULT_RX_CSUM_ENABLE (false)
 #define MUGE_DEFAULT_TX_CSUM_ENABLE (false)
-#define MUGE_DEFAULT_TSO_CSUM_ENABLE (false)
+#define MUGE_DEFAULT_TSO_ENABLE (false)
 
 /* Supported Vendor and Product IDs. */
 static const struct usb_device_id lan78xx_devs[] = {
@@ -1624,7 +1624,7 @@ muge_attach_post_sub(struct usb_ether *ue)
 	 * here, that's something related to socket buffers used in Linux.
 	 * FreeBSD doesn't have that as an interface feature.
 	 */
-	if (MUGE_DEFAULT_TSO_CSUM_ENABLE)
+	if (MUGE_DEFAULT_TSO_ENABLE)
 		ifp->if_capabilities |= IFCAP_TSO4 | IFCAP_TSO6;
 
 #if 0



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003210031.02L0VRdB068282>