Author: bz
Date: Tue Apr 24 08:30:55 2012
New Revision: 234643
URL: http://svn.freebsd.org/changeset/base/234643

Log:
  Do not toggle IFCAP_TSO4 if we would also do TSO6.  Given the driver does
  not currently announce/support TSO6 that cannot happen. Clean it up anyway
  for consistency.
  
  Reviewed by:  yongari
  MFC after:    1 week

Modified:
  head/sys/dev/re/if_re.c

Modified: head/sys/dev/re/if_re.c
==============================================================================
--- head/sys/dev/re/if_re.c     Tue Apr 24 08:30:36 2012        (r234642)
+++ head/sys/dev/re/if_re.c     Tue Apr 24 08:30:55 2012        (r234643)
@@ -3432,7 +3432,7 @@ re_ioctl(struct ifnet *ifp, u_long comma
                        reinit = 1;
                }
                if ((mask & IFCAP_TSO4) != 0 &&
-                   (ifp->if_capabilities & IFCAP_TSO) != 0) {
+                   (ifp->if_capabilities & IFCAP_TSO4) != 0) {
                        ifp->if_capenable ^= IFCAP_TSO4;
                        if ((IFCAP_TSO4 & ifp->if_capenable) != 0)
                                ifp->if_hwassist |= CSUM_TSO;
_______________________________________________
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