]> git.baikalelectronics.ru Git - kernel.git/commit
gianfar: Add backwards compatible Single Queue mode polling
authorClaudiu Manoil <claudiu.manoil@freescale.com>
Mon, 10 Jun 2013 17:19:48 +0000 (20:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jun 2013 10:16:20 +0000 (03:16 -0700)
commita863206c55f81a1bc79b1014d7dc0b5956e0dbf0
treee2cf9aeb676719a0fe02c86f7ccfb7f48d21fdd9
parent54a4de3da65b9c6930a24285e9192a2a5744874a
gianfar: Add backwards compatible Single Queue mode polling

Older Single Queue (SQ_SG_MODE) devices like TSEC (i.e. mpc83xx)
don't feature the frame receive indication bits (RXF) in RSTAT.
For these and for the rest of the SQ_SG_MODE devices, provide the
appropiate polling routine that handles a single pair of Rx/Tx
BD rings, removing the overhead incurred by the multiple queues/
multiple interrupt group devices (veTSEC/ eTSEC2.0 devices).
So this is primarily a fix for the TSEC devices.

Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/gianfar.c