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)
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>

No differences found