net: Loopback ifindex is constant now
authorPavel Emelyanov <xemul@parallels.com>
Wed, 8 Aug 2012 21:53:36 +0000 (21:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2012 23:18:07 +0000 (16:18 -0700)
commit1fb9489bf190ce2b3fc03891f3de4b2d30600e28
treeda4e17036949e72ae0b1f0fc3b6b31557de18353
parentaa79e66eee5d525e2fcbd2a5fcb87ae3dd4aa9e9
net: Loopback ifindex is constant now

As pointed out, there are places, that access net->loopback_dev->ifindex
and after ifindex generation is made per-net this value becomes constant
equals 1. So go ahead and introduce the LOOPBACK_IFINDEX constant and use
it where appropriate.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/loopback.c
include/net/net_namespace.h
net/decnet/dn_route.c
net/ipv4/fib_frontend.c
net/ipv4/ipmr.c
net/ipv4/netfilter/ipt_rpfilter.c
net/ipv4/route.c
net/ipv6/route.c