]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitaca350992d617544385a4f59055edd64426b48f5
tree30c109d8f337b3910e3b5364877c3c521dd700b5
parent7d2d243bc84a30cdf2dec7aed410e54f091a342b
[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