diff options
author | Mathias Kresin <dev@kresin.me> | 2018-01-06 17:30:38 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-01-10 08:08:53 +0100 |
commit | d3fd38637febad007bcc692bd79d5af08a17689d (patch) | |
tree | f6aa0b689a07605a4366057c6a3b44cbb4a115a6 /package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c | |
parent | e4936a957d1af8b905107396b1a9057101e63abb (diff) | |
download | upstream-d3fd38637febad007bcc692bd79d5af08a17689d.tar.gz upstream-d3fd38637febad007bcc692bd79d5af08a17689d.tar.bz2 upstream-d3fd38637febad007bcc692bd79d5af08a17689d.zip |
lantiq: create ATM/PTM interfaces with dsl as netdev name
Renaming an atm etherbride using 'ip link' (via hotplug) is racy since the
original netdev might disappear before br2684ctl has finished appling it's
setting:
local2.notice br2684ctl[1667]: Interface "nas0" created sucessfully
local2.notice br2684ctl[1667]: Communicating over ATM 0.8.35, encapsulation: LLC
kern.info kernel: dsl0: renamed from nas0
kern.err kernel: br2684:br2684_regvcc: tried to attach to non-existent device
local2.err br2684ctl[1667]: Could not configure interface:No such device or address
By passing the final used netdev name to br2684ctl_wrap another race
condition workaround will be enabled again.
Change the lantiq ptm driver to create a netdev with the name dsl as well.
Albeit the rename via 'ip link' works fine so far, using a different
approach for ptm then atm could be confusing.
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c')
-rw-r--r-- | package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c b/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c index 22f1e23c4a..4e10d72fe1 100644 --- a/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c +++ b/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c @@ -121,7 +121,7 @@ static struct net_device_ops g_ptm_netdev_ops = { }; static struct net_device *g_net_dev[1] = {0}; -static char *g_net_dev_name[1] = {"ptm0"}; +static char *g_net_dev_name[1] = {"dsl0"}; static int g_ptm_prio_queue_map[8]; |