]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
gianfar: Fix BD_LENGTH_MASK definition
authorAndy Fleming <afleming@freescale.com>
Thu, 5 Feb 2009 00:37:40 +0000 (16:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Feb 2009 00:37:40 +0000 (16:37 -0800)
BD_LENGTH_MASK is supposed to catch the low 16-bits of the status field, not
the low byte.  The old way, we would never be able to clean up tx packets with
sizes divisible by 256.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gianfar.h

index b1a83344acc75de952a5b4ed3345448595875d33..eaa86897f5c391109713c60e1761f32fecd65c38 100644 (file)
@@ -312,7 +312,7 @@ extern const char gfar_driver_version[];
 #define ATTRELI_EI(x) (x)
 
 #define BD_LFLAG(flags) ((flags) << 16)
-#define BD_LENGTH_MASK         0x00ff
+#define BD_LENGTH_MASK         0x0000ffff
 
 /* TxBD status field bits */
 #define TXBD_READY             0x8000