]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tuntap: dont use a private kmem_cache
authorEric Dumazet <edumazet@google.com>
Fri, 21 Dec 2012 07:17:21 +0000 (07:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Dec 2012 21:14:01 +0000 (13:14 -0800)
commit9fdc6bef5f1e8b5d3e65c2e7086033034b0dd307
tree3217950260770d9ab4812ebfe86687a3b62b0ecc
parent30e6c9fa93cf3dbc7cc6df1d748ad25e4264545a
tuntap: dont use a private kmem_cache

Commit 96442e42429 (tuntap: choose the txq based on rxq)
added a per tun_struct kmem_cache.

As soon as several tun_struct are used, we get an error
because two caches cannot have same name.

Use the default kmalloc()/kfree_rcu(), as it reduce code
size and doesn't have performance impact here.

Reported-by: Paul Moore <pmoore@redhat.com>
Tested-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c