Skip to content

Commit cfaa218

Browse files
committed
Merge branch 'tg3-fixes'
Siva Reddy Kallam says: ==================== tg3: Disallow 0 rx coalesce time and correctly report RSS queues in tg3_get_rxnfc First patch: Diasllow rx coalescing time to be 0 Second patch: Report the correct number of RSS queues through tg3_get_rxnfc ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 1f415a7 + 9ce6fd7 commit cfaa218

File tree

1 file changed

+1
-4
lines changed
  • drivers/net/ethernet/broadcom

1 file changed

+1
-4
lines changed

drivers/net/ethernet/broadcom/tg3.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12552,10 +12552,6 @@ static int tg3_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *info,
1255212552
info->data = TG3_RSS_MAX_NUM_QS;
1255312553
}
1255412554

12555-
/* The first interrupt vector only
12556-
* handles link interrupts.
12557-
*/
12558-
info->data -= 1;
1255912555
return 0;
1256012556

1256112557
default:
@@ -14014,6 +14010,7 @@ static int tg3_set_coalesce(struct net_device *dev, struct ethtool_coalesce *ec)
1401414010
}
1401514011

1401614012
if ((ec->rx_coalesce_usecs > MAX_RXCOL_TICKS) ||
14013+
(!ec->rx_coalesce_usecs) ||
1401714014
(ec->tx_coalesce_usecs > MAX_TXCOL_TICKS) ||
1401814015
(ec->rx_max_coalesced_frames > MAX_RXMAX_FRAMES) ||
1401914016
(ec->tx_max_coalesced_frames > MAX_TXMAX_FRAMES) ||

0 commit comments

Comments
 (0)