tg3: Report the correct number of RSS queues through tg3_get_rxnfc
authorSiva Reddy Kallam <siva.kallam@broadcom.com>
Wed, 3 Aug 2016 04:14:00 +0000 (09:44 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Aug 2016 18:56:18 +0000 (11:56 -0700)
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>
drivers/net/ethernet/broadcom/tg3.c

index f3c6c91..6592612 100644 (file)
@@ -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: