Author: yongari
Date: Wed Feb 27 05:03:35 2013
New Revision: 247382
URL: http://svnweb.freebsd.org/changeset/base/247382

Log:
  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:
  head/sys/dev/msk/if_msk.c

Modified: head/sys/dev/msk/if_msk.c
==============================================================================
--- head/sys/dev/msk/if_msk.c   Wed Feb 27 05:02:40 2013        (r247381)
+++ head/sys/dev/msk/if_msk.c   Wed Feb 27 05:03:35 2013        (r247382)
@@ -1695,6 +1695,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.
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to