Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andy Fleming and committed by
David S. Miller
1fbe4932 65ab8385

+1 -1
+1 -1
drivers/net/gianfar.h
··· 312 312 #define ATTRELI_EI(x) (x) 313 313 314 314 #define BD_LFLAG(flags) ((flags) << 16) 315 - #define BD_LENGTH_MASK 0x00ff 315 + #define BD_LENGTH_MASK 0x0000ffff 316 316 317 317 /* TxBD status field bits */ 318 318 #define TXBD_READY 0x8000