]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Merge branch 'net-devname_alloc_cleanups'
authorDavid S. Miller <davem@davemloft.net>
Tue, 14 Nov 2017 07:38:46 +0000 (16:38 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Nov 2017 07:38:46 +0000 (16:38 +0900)
commitf6b3716dcdcd1a4c3fa05ecb6ab0a1e52b6785d0
treeb9ba9a9706210253ef272c349f8a70b10db5bc13
parent951b7966959fde507e1718627b37795f40b704f4
parent87c320e51519a83c496ab7bfb4e96c8f9c001e89
Merge branch 'net-devname_alloc_cleanups'

Rasmus Villemoes says:

====================
net: core: devname allocation cleanups

It's somewhat confusing to have both dev_alloc_name and
dev_get_valid_name. I can't see why the former is less strict than the
latter, so make them (or rather dev_alloc_name_ns and
dev_get_valid_name) equivalent, hardening dev_alloc_name() a little.

Obvious follow-up patches would be to only export one function, and
make dev_alloc_name a static inline wrapper for that (whichever name
is chosen for the exported interface). But maybe there is a good
reason the two exported interfaces do different checking, so I'll
refrain from including the trivial but tree-wide renaming in this
series.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>