]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit24c7a4bc5c54eba1a35403768a33568596beb3dd
treeb4cd25e04c66f47dd9520b6415ddaf9d09714368
parentab3e8fb308227ff346e991dab19a6c3d380cc3ef
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