Rasmus Villemoes 87c320e515 net: core: dev_get_valid_name is now the same as dev_alloc_name_ns
If name contains a %, it's easy to see that this patch doesn't change
anything (other than eliminate the duplicate dev_valid_name
call). Otherwise, we'll now just spend a little time in snprintf()
copying name to the stack buffer allocated in dev_alloc_name_ns, and do
the __dev_get_by_name using that buffer rather than name.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-11-14 16:38:46 +09:00
..
2017-11-14 11:11:45 +09:00
2017-11-01 12:19:03 +09:00
2017-11-14 15:45:53 +09:00
2017-11-08 16:12:33 +09:00
2017-11-14 16:17:38 +09:00
2017-08-16 11:27:52 -07:00