|
@@ -357,7 +357,7 @@ static void bnxt_get_channels(struct net_device *dev,
|
|
|
int max_rx_rings, max_tx_rings, tcs;
|
|
|
|
|
|
bnxt_get_max_rings(bp, &max_rx_rings, &max_tx_rings, true);
|
|
|
- channel->max_combined = max_t(int, max_rx_rings, max_tx_rings);
|
|
|
+ channel->max_combined = min_t(int, max_rx_rings, max_tx_rings);
|
|
|
|
|
|
if (bnxt_get_max_rings(bp, &max_rx_rings, &max_tx_rings, false)) {
|
|
|
max_rx_rings = 0;
|