Skip to content

Commit

Permalink
tg3: Report the correct number of RSS queues through tg3_get_rxnfc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Siva Reddy Kallam authored and David S. Miller committed Aug 3, 2016
1 parent 087d7a8 commit 9ce6fd7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/net/ethernet/broadcom/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9ce6fd7

Please sign in to comment.