]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pktgen: ipv6: numa: consolidate skb allocation to pktgen_alloc_skb
authorDaniel Borkmann <dborkman@redhat.com>
Sat, 8 Jun 2013 12:18:16 +0000 (14:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jun 2013 07:47:25 +0000 (00:47 -0700)
commit7a6e288d2745611bef5b614acf19644283765732
treee99fd60ae5781b8cddffac6e30f41927ee172512
parentda5bab079f9b7d90ba234965a14914ace55e45e9
pktgen: ipv6: numa: consolidate skb allocation to pktgen_alloc_skb

We currently allow for numa-node aware skb allocation only within the
fill_packet_ipv4() path, but not in fill_packet_ipv6(). Consolidate that
code to a common allocation helper to enable numa-node aware skb
allocation for ipv6, and use it in both paths. This also makes both
functions a bit more readable.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c