Commit 211fcf6d2100e625ec1d4a50e8adf67370a37bad
Committed by
David S. Miller
1 parent
b057df24a7
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
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>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
... | ... | @@ -552,13 +552,14 @@ |
552 | 552 | break; |
553 | 553 | } |
554 | 554 | |
555 | - /* The Queue and Channel counts are zero based so increment them | |
555 | + /* The Queue, Channel and TC counts are zero based so increment them | |
556 | 556 | * to get the actual number |
557 | 557 | */ |
558 | 558 | hw_feat->rx_q_cnt++; |
559 | 559 | hw_feat->tx_q_cnt++; |
560 | 560 | hw_feat->rx_ch_cnt++; |
561 | 561 | hw_feat->tx_ch_cnt++; |
562 | + hw_feat->tc_cnt++; | |
562 | 563 | |
563 | 564 | DBGPR("<--xgbe_get_all_hw_features\n"); |
564 | 565 | } |