amd-xgbe: Use the Tx queue count for Tx flow control support
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Fri, 29 Aug 2014 18:17:08 +0000 (13:17 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Sep 2014 03:38:14 +0000 (20:38 -0700)
commit9fc69affda1b576c0b4c2aed8acb9cf3de3349ba
treeb806a34b3408f5d6bf832286238c5049b4d571d4
parent625c8e4a2f307650fd18cf4a4f897260c800db89
amd-xgbe: Use the Tx queue count for Tx flow control support

When configuring Tx flow control the Rx queue count was used instead of
the Tx queue count for looping through the Tx hardware queues. Fix the
code to use the Tx queue count.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-dev.c