Skip to content

Commit

Permalink
gianfar: Fix BD_LENGTH_MASK definition
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andy Fleming authored and David S. Miller committed Feb 5, 2009
1 parent 65ab838 commit 1fbe493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/gianfar.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1fbe493

Please sign in to comment.