]> git.baikalelectronics.ru Git - kernel.git/commit
pktgen: Fix multiqueue handling
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 2 Oct 2009 20:24:59 +0000 (20:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Oct 2009 04:08:54 +0000 (21:08 -0700)
commit162dc02c0ca73a78f878f0e7c020e6339e132287
tree2260fac9cccf51938d710ab0fc74dc0fa0503a4f
parent6aa4480af742fa53acf6c43aa99ac9b1ae9bd745
pktgen: Fix multiqueue handling

It is not currently possible to instruct pktgen to use one selected tx queue.

When Robert added multiqueue support in commit 7090685c, he added
an interval (queue_map_min, queue_map_max), and his code doesnt take
into account the case of min = max, to select one tx queue exactly.

I suspect a high performance setup on a eight txqueue device wants
to use exactly eight cpus, and assign one tx queue to each sender.

This patchs makes pktgen select the right tx queue, not the first one.

Also updates Documentation to reflect Robert changes.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Robert Olsson <robert.olsson@its.uu.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/pktgen.txt
net/core/pktgen.c