pktgen: fix multiple queue warning
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Tue, 28 Oct 2008 20:21:51 +0000 (13:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Oct 2008 20:21:51 +0000 (13:21 -0700)
commit882716604ecf388b2ff09bc76eb2a752aa9cc76b
tree795870dbd12373a9a7f8df59e8996eba1c77d0ba
parentb3ed4bc082077045f680400c8bb02fa8d9c9ecf5
pktgen: fix multiple queue warning

when testing the new pktgen module with multiple queues and ixgbe with:
pgset "flag QUEUE_MAP_CPU"

I found that I was getting errors in dmesg like:
pktgen: WARNING: QUEUE_MAP_CPU disabled because CPU count (8) exceeds number
<4>pktgen: WARNING: of tx queues (8) on eth15

you'll note, 8 really doesn't exceed 8.

This patch seemed to fix the logic errors and also the attempts at
limiting line length in printk (which didn't work anyway)

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Robert Olsson <robert.olsson@its.uu.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c