mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
gianfar: Fix BD_LENGTH_MASK definition
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>
This commit is contained in:
parent
65ab8385b6
commit
1fbe49328f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue