]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe: Adjust for zero-based traffic class count
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Tue, 3 Feb 2015 18:49:55 +0000 (12:49 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Feb 2015 04:28:14 +0000 (20:28 -0800)
commit5e1bb2bbebbb0114f5396672819a9bb60cfea6a4
treed17b03cafe0e5af8a575788da1b7449bdbe9f19a
parentb606e4c9221781b0b024a1e66e08cdc9da3734b3
amd-xgbe: Adjust for zero-based traffic class count

The number of traffic classes reported by the hardware is zero-based
so increment the value returned to get an actual 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-drv.c