Date: Wed, 27 Feb 2013 05:03:35 +0000 (UTC) From: Pyun YongHyeon <yongari@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r247382 - head/sys/dev/msk Message-ID: <201302270503.r1R53ZYB012019@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302270503.r1R53ZYB012019>