From: Siva Reddy Kallam Date: Wed, 3 Aug 2016 04:14:00 +0000 (+0530) Subject: tg3: Report the correct number of RSS queues through tg3_get_rxnfc X-Git-Tag: v4.8-rc3~22^2~55^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9ce6fd7a81e6f787756be2f4b85f4f7bb3658de3;p=karo-tx-linux.git 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 Signed-off-by: Siva Reddy Kallam Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c index f3c6c915e423..659261218d9f 100644 --- a/drivers/net/ethernet/broadcom/tg3.c +++ b/drivers/net/ethernet/broadcom/tg3.c @@ -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: