Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Sep 2017 10:35:44 +0000 (UTC)
From:      Jared McNeill <jmcneill@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324118 - head/sys/arm/allwinner
Message-ID:  <201709301035.v8UAZinf087433@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jmcneill
Date: Sat Sep 30 10:35:44 2017
New Revision: 324118
URL: https://svnweb.freebsd.org/changeset/base/324118

Log:
  Disable/enable CSUM_UDP and CSUM_TCP along with CSUM_IP
  
  Submitted by:		guyyur@gmail.com
  Differential Revision:	https://reviews.freebsd.org/D12536

Modified:
  head/sys/arm/allwinner/if_awg.c

Modified: head/sys/arm/allwinner/if_awg.c
==============================================================================
--- head/sys/arm/allwinner/if_awg.c	Sat Sep 30 10:34:07 2017	(r324117)
+++ head/sys/arm/allwinner/if_awg.c	Sat Sep 30 10:35:44 2017	(r324118)
@@ -1041,10 +1041,10 @@ awg_ioctl(if_t ifp, u_long cmd, caddr_t data)
 			if_togglecapenable(ifp, IFCAP_RXCSUM);
 		if (mask & IFCAP_TXCSUM)
 			if_togglecapenable(ifp, IFCAP_TXCSUM);
-		if ((if_getcapenable(ifp) & (IFCAP_RXCSUM|IFCAP_TXCSUM)) != 0)
-			if_sethwassistbits(ifp, CSUM_IP, 0);
+		if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0)
+			if_sethwassistbits(ifp, CSUM_IP | CSUM_UDP | CSUM_TCP, 0);
 		else
-			if_sethwassistbits(ifp, 0, CSUM_IP);
+			if_sethwassistbits(ifp, 0, CSUM_IP | CSUM_UDP | CSUM_TCP);
 		break;
 	default:
 		error = ether_ioctl(ifp, cmd, data);



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