mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-18 03:06:43 +00:00
tg3: Report the correct number of RSS queues through tg3_get_rxnfc
This patch remove the wrong substraction from info->data in tg3_get_rxnfc function. Without this patch, the number of RSS queues reported is less by one. Reported-by: Michal Soltys <soltys@ziu.info> Signed-off-by: Siva Reddy Kallam <siva.kallam@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
087d7a8c91
commit
9ce6fd7a81
@ -12552,10 +12552,6 @@ static int tg3_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *info,
|
||||
info->data = TG3_RSS_MAX_NUM_QS;
|
||||
}
|
||||
|
||||
/* The first interrupt vector only
|
||||
* handles link interrupts.
|
||||
*/
|
||||
info->data -= 1;
|
||||
return 0;
|
||||
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user