ixgbe: Fix return of invalid txq
authorKrishna Kumar <krkumar2@in.ibm.com>
Wed, 3 Feb 2010 13:13:10 +0000 (13:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Feb 2010 03:17:17 +0000 (19:17 -0800)
commitfdd3d631cddad20ad9d3e1eb7dbf26825a8a121f
tree9f4b952c8cbfc2ad169a023c5321b3ff8bb2595d
parente44d38e1b72a2aa7f5e7024c5da83a879355a1cc
ixgbe: Fix return of invalid txq

a developer had complained of getting lots of warnings:

"eth16 selects TX queue 98, but real number of TX queues is 64"

http://www.mail-archive.com/e1000-devel@lists.sourceforge.net/msg02200.html

As there was no follow up on that bug, I am submitting this
patch assuming that the other return points will not return
invalid txq's, and also that this fixes the bug (not tested).

Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_main.c