]> git.baikalelectronics.ru Git - kernel.git/commit
gianfar: Fix RXICr/TXICr programming for multi-queue mode
authorClaudiu Manoil <claudiu.manoil@freescale.com>
Thu, 28 Jun 2012 04:40:53 +0000 (04:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jun 2012 23:57:26 +0000 (16:57 -0700)
commit88c9e990fe4f2c35c137451a6eabb5eb14394740
treeb5102ccd59a77525cdb71343f19a83a6ccb2e51c
parentf14d462635e507654a37680319708f76b32c7895
gianfar: Fix RXICr/TXICr programming for multi-queue mode

The correct behavior is to program the interrupt coalescing regs
(RXICr/TXICr) in accordance with the Rx/Tx Q's "rx/txcoalescing"
flag. That is, if the coalescing flag is 0 for a given Rx/Tx queue
then the corresponding coalescing register should be cleared.
This behavior is correctly implemented for the single-queue mode
(SQ_SG_MODE), but not for the multi-queue mode (MQ_MG_MODE).
This fixes the later case.

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