]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
netns: Use net_eq() to compare net-namespaces for optimization.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Sun, 20 Jul 2008 05:34:43 +0000 (22:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Jul 2008 05:34:43 +0000 (22:34 -0700)
commit721499e8931c5732202481ae24f2dfbf9910f129
treec94d8d681966109bb41f712f21f3a9825ae2172d
parent407d819cf0fd54c6fc1138a509225696aecafd15
netns: Use net_eq() to compare net-namespaces for optimization.

Without CONFIG_NET_NS, namespace is always &init_net.
Compiler will be able to omit namespace comparisons with this patch.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
38 files changed:
net/appletalk/aarp.c
net/appletalk/ddp.c
net/atm/clip.c
net/atm/mpc.c
net/ax25/af_ax25.c
net/ax25/ax25_in.c
net/bridge/br_notify.c
net/bridge/br_stp_bpdu.c
net/can/af_can.c
net/can/bcm.c
net/can/raw.c
net/core/pktgen.c
net/decnet/af_decnet.c
net/decnet/dn_route.c
net/econet/af_econet.c
net/ipv4/igmp.c
net/ipv4/ipconfig.c
net/ipv4/ipmr.c
net/ipv4/netfilter/ip_queue.c
net/ipv4/netfilter/ipt_MASQUERADE.c
net/ipv6/ip6mr.c
net/ipv6/netfilter/ip6_queue.c
net/ipv6/proc.c
net/ipx/af_ipx.c
net/irda/irlap_frame.c
net/llc/llc_input.c
net/netfilter/nf_sockopt.c
net/netfilter/nfnetlink_queue.c
net/netlabel/netlabel_unlabeled.c
net/netrom/af_netrom.c
net/packet/af_packet.c
net/rose/af_rose.c
net/sctp/protocol.c
net/tipc/eth_media.c
net/wireless/wext.c
net/x25/af_x25.c
net/x25/x25_dev.c
net/xfrm/xfrm_policy.c