[NET] NETNS: Omit namespace comparision without CONFIG_NET_NS.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Tue, 25 Mar 2008 18:57:35 +0000 (03:57 +0900)
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Tue, 25 Mar 2008 19:40:00 +0000 (04:40 +0900)
commit878628fbf2589eb24357e42027d5f54b1dafd3c8
tree30c109d8f337b3910e3b5364877c3c521dd700b5
parent57da52c1e62c6c13875e97de6c69d3156f8416da
[NET] NETNS: Omit namespace comparision without CONFIG_NET_NS.

Introduce an inline net_eq() to compare two namespaces.
Without CONFIG_NET_NS, since no namespace other than &init_net
exists, it is always 1.

We do not need to convert 1) inline vs inline and
2) inline vs &init_net comparisons.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
14 files changed:
include/net/net_namespace.h
net/core/dev.c
net/core/neighbour.c
net/ipv4/inet_hashtables.c
net/ipv4/raw.c
net/ipv4/route.c
net/ipv4/tcp_ipv4.c
net/ipv4/udp.c
net/ipv6/addrconf.c
net/ipv6/inet6_hashtables.c
net/ipv6/raw.c
net/ipv6/udp.c
net/netlink/af_netlink.c
net/unix/af_unix.c