[NET]: Factor out __dev_alloc_name from dev_alloc_name
commitb267b179648e46ea8e2a44f7314a23eb6aee1d6c
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 12 Sep 2007 11:48:45 +0000 (12 13:48 +0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:49:11 +0000 (10 16:49 -0700)
treef5ad81414be89f41114e2aa63d038fd7eac08c1d
parent881d966b48b035ab3f3aeaae0f3d3f9b584f45b2
[NET]: Factor out __dev_alloc_name from dev_alloc_name

When forcibly changing the network namespace of a device
I need something that can generate a name for the device
in the new namespace without overwriting the old name.

__dev_alloc_name provides me that functionality.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c