gianfar: Make all BD status writes 32-bit
authorDai Haruki <dai.haruki@freescale.com>
Tue, 16 Dec 2008 23:34:50 +0000 (15:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Dec 2008 23:34:50 +0000 (15:34 -0800)
commit5a5efed4817ef931f648b118aeb9222e53122d2b
tree592f3dbe3bf47035e8738b1c4bbe48fc3be973fc
parent31de198b4d2732028f4c5bff04b0103b1d8c1d8c
gianfar: Make all BD status writes 32-bit

Whenever we want to update the status field in a BD, we usually want to
update the length field, too.  By combining them into one 32-bit field, we
reduce the number of stores to memory shared with the controller, and we
eliminate the need for order-enforcement, as the length and "READY" bit are
now updated atomically at the same time.

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