[IP_TUNNEL]: Don't limit the number of tunnels with generic name explicitly.
Use the added dev_alloc_name() call to create tunnel device name, rather than iterate in a hand-made loop with an artificial limit. Thanks Patrick for noticing this. [ The way this works is, when the device is actually registered, the generic code noticed the '%' in the name and invokes dev_alloc_name() to fully resolve the name. -DaveM ] Signed-off-by:Pavel Emelyanov <xemul@openvz.org> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/ip6_tunnel.h 0 additions, 2 deletionsinclude/net/ip6_tunnel.h
- net/ipv4/ip_gre.c 2 additions, 10 deletionsnet/ipv4/ip_gre.c
- net/ipv4/ipip.c 2 additions, 10 deletionsnet/ipv4/ipip.c
- net/ipv6/ip6_tunnel.c 4 additions, 11 deletionsnet/ipv6/ip6_tunnel.c
- net/ipv6/sit.c 2 additions, 10 deletionsnet/ipv6/sit.c
Loading
Please register or sign in to comment