]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdf1996ff48cd748a8be6d46e728c530296306469
tree795870dbd12373a9a7f8df59e8996eba1c77d0ba
parent009a344182f6dfd9bf0f71867a325a062d637938
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