Module Name:    src
Committed By:   msaitoh
Date:           Wed Jul  3 05:49:36 UTC 2013

Modified Files:
        src/sys/dev/pci: if_bge.c

Log Message:
 Add BGE_JUMBO_CAPABLE flag to some chips. Before this commit,
the following chips support the jumbo frame function:

        5700
        5701
        5702
        5703
        5704

With this commit, the following chip support it, too:

        5714
        5780
        5717
        5718
        5719 (exclude rev. A0)
        5720
        57765
        57766


To generate a diff of this commit:
cvs rdiff -u -r1.253 -r1.254 src/sys/dev/pci/if_bge.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_bge.c
diff -u src/sys/dev/pci/if_bge.c:1.253 src/sys/dev/pci/if_bge.c:1.254
--- src/sys/dev/pci/if_bge.c:1.253	Fri May 31 17:48:12 2013
+++ src/sys/dev/pci/if_bge.c	Wed Jul  3 05:49:36 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_bge.c,v 1.253 2013/05/31 17:48:12 msaitoh Exp $	*/
+/*	$NetBSD: if_bge.c,v 1.254 2013/07/03 05:49:36 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.253 2013/05/31 17:48:12 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.254 2013/07/03 05:49:36 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -3395,8 +3395,12 @@ bge_attach(device_t parent, device_t sel
 	case BGE_ASICREV_BCM5717:
 	case BGE_ASICREV_BCM5719:
 	case BGE_ASICREV_BCM5720:
-		sc->bge_flags |= BGE_5717_PLUS | BGE_5755_PLUS | BGE_575X_PLUS |
-		    BGE_5705_PLUS;
+		sc->bge_flags |= BGE_5717_PLUS | BGE_5755_PLUS |
+		    BGE_575X_PLUS | BGE_5705_PLUS | BGE_JUMBO_CAPABLE;
+		/* Jumbo frame on BCM5719 A0 does not work. */
+		if ((BGE_ASICREV(sc->bge_chipid) == BGE_ASICREV_BCM5719) &&
+		    (sc->bge_chipid == BGE_CHIPID_BCM5719_A0))
+			sc->bge_flags |= ~BGE_JUMBO_CAPABLE;
 		break;
 	case BGE_ASICREV_BCM5755:
 	case BGE_ASICREV_BCM5761:
@@ -3415,7 +3419,7 @@ bge_attach(device_t parent, device_t sel
 	case BGE_ASICREV_BCM5714_A0:
 	case BGE_ASICREV_BCM5780:
 	case BGE_ASICREV_BCM5714:
-		sc->bge_flags |= BGE_5714_FAMILY;
+		sc->bge_flags |= BGE_5714_FAMILY | BGE_JUMBO_CAPABLE;
 		/* FALLTHROUGH */
 	case BGE_ASICREV_BCM5750:
 	case BGE_ASICREV_BCM5752:

Reply via email to