]> git.baikalelectronics.ru Git - kernel.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)
commit227e78e6e38927aed6ba8353820e900a5f05b563
tree3217950260770d9ab4812ebfe86687a3b62b0ecc
parent16d1d68b577280b818cb41e90fb8ab1561e032ed
tuntap: dont use a private kmem_cache

Commit c8767fa7a09 (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