]> 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)
commit2eb18d9438db5d86692d6613eecfae68c4d196fa
treed17b03cafe0e5af8a575788da1b7449bdbe9f19a
parentcc432fdf7f0e0d409063f4c0668fb4ec840533f7
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