svn commit: r238088 - in stable/9/sys/dev: cxgb cxgbe

Navdeep Parhar np at FreeBSD.org
Tue Jul 3 22:17:36 UTC 2012


Author: np
Date: Tue Jul  3 22:17:36 2012
New Revision: 238088
URL: http://svn.freebsd.org/changeset/base/238088

Log:
  Do not enable IFCAP_TSO6 in cxgb(4) and cxgbe(4) in stable/9.  The
  kernel code in 9 isn't quite ready for TSO6 yet.
  
  This is a direct commit to stable/9.  IFCAP_TSO6 works properly in head
  and there is no need to disable it over there.
  
  Approved by:	re (kib)

Modified:
  stable/9/sys/dev/cxgb/cxgb_main.c
  stable/9/sys/dev/cxgbe/t4_main.c

Modified: stable/9/sys/dev/cxgb/cxgb_main.c
==============================================================================
--- stable/9/sys/dev/cxgb/cxgb_main.c	Tue Jul  3 21:41:19 2012	(r238087)
+++ stable/9/sys/dev/cxgb/cxgb_main.c	Tue Jul  3 22:17:36 2012	(r238088)
@@ -987,7 +987,7 @@ cxgb_makedev(struct port_info *pi)
 #define CXGB_CAP (IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU | IFCAP_HWCSUM | \
     IFCAP_VLAN_HWCSUM | IFCAP_TSO | IFCAP_JUMBO_MTU | IFCAP_LRO | \
     IFCAP_VLAN_HWTSO | IFCAP_LINKSTATE | IFCAP_HWCSUM_IPV6)
-#define CXGB_CAP_ENABLE CXGB_CAP
+#define CXGB_CAP_ENABLE (CXGB_CAP & ~IFCAP_TSO6)
 
 static int
 cxgb_port_attach(device_t dev)

Modified: stable/9/sys/dev/cxgbe/t4_main.c
==============================================================================
--- stable/9/sys/dev/cxgbe/t4_main.c	Tue Jul  3 21:41:19 2012	(r238087)
+++ stable/9/sys/dev/cxgbe/t4_main.c	Tue Jul  3 22:17:36 2012	(r238088)
@@ -824,7 +824,7 @@ cxgbe_probe(device_t dev)
 #define T4_CAP (IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU | IFCAP_HWCSUM | \
     IFCAP_VLAN_HWCSUM | IFCAP_TSO | IFCAP_JUMBO_MTU | IFCAP_LRO | \
     IFCAP_VLAN_HWTSO | IFCAP_LINKSTATE | IFCAP_HWCSUM_IPV6)
-#define T4_CAP_ENABLE (T4_CAP)
+#define T4_CAP_ENABLE (T4_CAP & ~IFCAP_TSO6)
 
 static int
 cxgbe_attach(device_t dev)


More information about the svn-src-all mailing list