On Wed, 31 Oct 2007 22:19:43 +0300 Pavel Emelyanov <xemul@openvz.org> wrote:Definitly wanted here. Thank you. One more refcounting on each socket creation/deletion was expensive. Maybe we can add a macro to get nd_net from a "struct net_device" so that every instance of if (dev->nd_net != &init_net) goto drop; can also be optimized away if !CONFIG_NET_NS extern inline netdev_get_ns(struct netdevice *dev) { #ifdef CONFIG_NET_NS return dev->nd_net; #else return &init_net; #endif } ... if (netdev_get_ns(dev) != &init_net) goto drop; - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| debian developer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| H. Peter Anvin | Re: [PATCH] x86: Construct 32 bit boot time page tables in native format. |
| Christoph Lameter | Re: [RFC 00/15] x86_64: Optimize percpu accesses |
git: | |
| Christoph Hellwig | Re: [PATCH 06/32] IGET: Mark iget() and read_inode() as being obsolete [try #2] |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | [GIT]: Networking |
