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>
This commit is contained in:
parent
b057df24a7
commit
211fcf6d21
|
@ -552,13 +552,14 @@ void xgbe_get_all_hw_features(struct xgbe_prv_data *pdata)
|
||||||
break;
|
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
|
* to get the actual number
|
||||||
*/
|
*/
|
||||||
hw_feat->rx_q_cnt++;
|
hw_feat->rx_q_cnt++;
|
||||||
hw_feat->tx_q_cnt++;
|
hw_feat->tx_q_cnt++;
|
||||||
hw_feat->rx_ch_cnt++;
|
hw_feat->rx_ch_cnt++;
|
||||||
hw_feat->tx_ch_cnt++;
|
hw_feat->tx_ch_cnt++;
|
||||||
|
hw_feat->tc_cnt++;
|
||||||
|
|
||||||
DBGPR("<--xgbe_get_all_hw_features\n");
|
DBGPR("<--xgbe_get_all_hw_features\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue