]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: fix Tx ring priority programming
authorPetri Gynther <pgynther@google.com>
Tue, 7 Oct 2014 16:30:01 +0000 (09:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Oct 2014 17:08:43 +0000 (13:08 -0400)
commita1a07767c0a1cee121bafdf93cfe0b59bd83aa49
tree78d161cb1e788649bc9c329c4cc61a6c3db30c8e
parent4d05779d0c86ac8c0130ec3586ca047fca8f5f2e
net: bcmgenet: fix Tx ring priority programming

GENET MAC has three Tx ring priority registers:
- GENET_x_TDMA_PRIORITY0 for queues 0-5
- GENET_x_TDMA_PRIORITY1 for queues 6-11
- GENET_x_TDMA_PRIORITY2 for queues 12-16

Fix bcmgenet_init_multiq() to program them correctly.

Signed-off-by: Petri Gynther <pgynther@google.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c
drivers/net/ethernet/broadcom/genet/bcmgenet.h