diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-10-03 10:13:43 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-10-03 10:14:58 +0400 |
commit | a5f293d16c8b4a333fac31e187e0b5e55fd38335 (patch) | |
tree | bf61f8b863bb660d10363a7e86c5d671aed42552 /drivers | |
parent | 21d36db2bad56b6389873b1c10e45f36938ed5fc (diff) | |
download | accel-ppp-a5f293d16c8b4a333fac31e187e0b5e55fd38335.tar.gz accel-ppp-a5f293d16c8b4a333fac31e187e0b5e55fd38335.zip |
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 <xeb@mail.ru>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ipoe/ipoe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c index 447b48b..4071f7d 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) { |