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)
commit377421662a1739de5ccb71220a0b10a300addbd8
tree78d161cb1e788649bc9c329c4cc61a6c3db30c8e
parentfd2ef0ba3071c92ac6272ab22ea3f2b16d88a4eb
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