diff options
author | Lendacky, Thomas <Thomas.Lendacky@amd.com> | 2015-02-03 12:49:55 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-04 20:28:14 -0800 |
commit | 211fcf6d2100e625ec1d4a50e8adf67370a37bad (patch) | |
tree | d17b03cafe0e5af8a575788da1b7449bdbe9f19a /drivers/net/ethernet/amd | |
parent | b057df24a7536cce6c372efe9d0e3d1558afedf4 (diff) | |
download | linux-211fcf6d2100e625ec1d4a50e8adf67370a37bad.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/ethernet/amd')
-rw-r--r-- | drivers/net/ethernet/amd/xgbe/xgbe-drv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c index 7bb5f07dbeef..124614096456 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c @@ -552,13 +552,14 @@ void xgbe_get_all_hw_features(struct xgbe_prv_data *pdata) break; } - /* The Queue and Channel counts are zero based so increment them + /* The Queue, Channel and TC counts are zero based so increment them * to get the actual number */ hw_feat->rx_q_cnt++; hw_feat->tx_q_cnt++; hw_feat->rx_ch_cnt++; hw_feat->tx_ch_cnt++; + hw_feat->tc_cnt++; DBGPR("<--xgbe_get_all_hw_features\n"); } |