From a5f293d16c8b4a333fac31e187e0b5e55fd38335 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Thu, 3 Oct 2013 10:13:43 +0400 Subject: ipoe: use ipoeX as interface name in any usage scenario Due to limitation to interface name (16 symbols) interfaces like eth1000.2000.ipoe10 does not fit to required limit. So the only way is to use short ipoeX naming scheme. Signed-off-by: Dmitry Kozlov --- drivers/ipoe/ipoe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c index 447b48b9..4071f7db 100644 --- a/drivers/ipoe/ipoe.c +++ b/drivers/ipoe/ipoe.c @@ -1090,9 +1090,9 @@ static int ipoe_create(__be32 peer_addr, __be32 addr, const char *link_ifname, c link_dev = dev_get_by_name(&init_net, link_ifname); if (!link_dev) return -EINVAL; - sprintf(name, "%s.ipoe%%d", link_ifname); - } else - sprintf(name, "ipoe%%d"); + } + + sprintf(name, "ipoe%%d"); dev = alloc_netdev(sizeof(*ses), name, ipoe_netdev_setup); if (dev == NULL) { -- cgit v1.2.3