OSDN Git Service

net-next: mediatek: split IRQ register locking into TX and RX
authorJohn Crispin <john@phrozen.org>
Mon, 19 Jun 2017 13:37:05 +0000 (15:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jun 2017 17:40:35 +0000 (13:40 -0400)
commit5cce0322cf8cd2c8073b2f8dac08c56e3f5f4acb
tree553551f87fa8e7dac0859d7d9c5171b447b8da5a
parent671d41e60dbd8943ce069137b312f834a483c582
net-next: mediatek: split IRQ register locking into TX and RX

Originally the driver only utilised the new QDMA engine. The current code
still assumes this is the case when locking the IRQ mask register. Since
RX now runs on the old style PDMA engine we can add a second lock. This
patch reduces the IRQ latency as the TX and RX path no longer need to wait
on each other under heavy load.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h