svn commit: r247872 - stable/9/sys/dev/msk

Pyun YongHyeon yongari at FreeBSD.org
Wed Mar 6 08:03:27 UTC 2013


Author: yongari
Date: Wed Mar  6 08:03:26 2013
New Revision: 247872
URL: http://svnweb.freebsd.org/changeset/base/247872

Log:
  MFC r247382:
    RX checksum offloading on old Yukon controllers seem to cause more
    problems.  Disable RX checksum offloading on controllers that don't
    use new descriptor format but give chance to enable it with
    ifconfig(8).

Modified:
  stable/9/sys/dev/msk/if_msk.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/msk/if_msk.c
==============================================================================
--- stable/9/sys/dev/msk/if_msk.c	Wed Mar  6 07:28:20 2013	(r247871)
+++ stable/9/sys/dev/msk/if_msk.c	Wed Mar  6 08:03:26 2013	(r247872)
@@ -1696,6 +1696,12 @@ msk_attach(device_t dev)
 			ifp->if_capabilities |= IFCAP_VLAN_HWCSUM;
 	}
 	ifp->if_capenable = ifp->if_capabilities;
+	/*
+	 * Disable RX checksum offloading on controllers that don't use
+	 * new descriptor format but give chance to enable it.
+	 */
+	if ((sc_if->msk_flags & MSK_FLAG_DESCV2) == 0)
+		ifp->if_capenable &= ~IFCAP_RXCSUM;
 
 	/*
 	 * Tell the upper layer(s) we support long frames.


More information about the svn-src-stable-9 mailing list