tuntap: dont use a private kmem_cache
authorEric Dumazet <[email protected]>
Fri, 21 Dec 2012 07:17:21 +0000 (07:17 +0000)
committerDavid S. Miller <[email protected]>
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 <[email protected]>
Tested-by: Paul Moore <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Acked-by: Stephen Hemminger <[email protected]>
Acked-by: Jason Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/tun.c