]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/core/pktgen.c
pktgen node allocation
authorRobert Olsson <robert@herjulf.net>
Thu, 18 Mar 2010 22:44:30 +0000 (22:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Mar 2010 03:33:36 +0000 (20:33 -0700)
commite99b99b471c21b071132e51bb7aa6b7a8796dc02
tree7bcd7b8d5093e3a5d88f3eb0c7fa65cfb016041a
parent99fe3c391d50d381687fd84ed0ab22d57079e41f
pktgen node allocation

Here is patch to manipulate packet node allocation and implicitly
how packets are DMA'd etc.

The flag NODE_ALLOC enables the function and numa_node_id();
when enabled it can also be explicitly controlled via a new
node parameter

Tested this with 10 Intel 82599 ports w. TYAN S7025 E5520 CPU's.
Was able to TX/DMA ~80 Gbit/s to Ethernet wires.

Signed-off-by: Robert Olsson <robert.olsson@its.uu.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c