gianfar: Continue polling until both tx and rx are empty
authorAndy Fleming <afleming@freescale.com>
Thu, 18 Dec 2008 00:52:30 +0000 (16:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Dec 2008 00:52:30 +0000 (16:52 -0800)
commit42199884594bc336c9185441cbed99a9324dab34
treeb4cd25e04c66f47dd9520b6415ddaf9d09714368
parent8c7396aebb68994c0519e438eecdf4d5fa9c7844
gianfar: Continue polling until both tx and rx are empty

gfar_poll would declare polling done once the rx queue was empty,
but the tx queue could still have packets left.

Stolen mostly from the e1000 driver.

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