summaryrefslogtreecommitdiff
path: root/net/ethernet
diff options
context:
space:
mode:
authorIan Wienand <iwienand@redhat.com>2022-04-06 19:36:36 +1000
committerJakub Kicinski <kuba@kernel.org>2022-04-07 21:04:03 -0700
commite9f656b7a21408866ba04c112ccbac73885529bd (patch)
tree74293f5df1543533f70493e383bbfe90a077100b /net/ethernet
parent15fcdf6ae116d1e8da4ff76c6fd82514f5ea501b (diff)
downloadlinux-next-e9f656b7a21408866ba04c112ccbac73885529bd.tar.gz
net: ethernet: set default assignment identifier to NET_NAME_ENUM
As noted in the original commit 685343fc3ba6 ("net: add name_assign_type netdev attribute") ... when the kernel has given the interface a name using global device enumeration based on order of discovery (ethX, wlanY, etc) ... are labelled NET_NAME_ENUM. That describes this case, so set the default for the devices here to NET_NAME_ENUM. Current popular network setup tools like systemd use this only to warn if you're setting static settings on interfaces that might change, so it is expected this only leads to better user information, but not changing of interfaces, etc. Signed-off-by: Ian Wienand <iwienand@redhat.com> Link: https://lore.kernel.org/r/20220406093635.1601506-1-iwienand@redhat.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ethernet')
-rw-r--r--net/ethernet/eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c
index ebcc812735a4..62b89d6f54fd 100644
--- a/net/ethernet/eth.c
+++ b/net/ethernet/eth.c
@@ -391,7 +391,7 @@ EXPORT_SYMBOL(ether_setup);
struct net_device *alloc_etherdev_mqs(int sizeof_priv, unsigned int txqs,
unsigned int rxqs)
{
- return alloc_netdev_mqs(sizeof_priv, "eth%d", NET_NAME_UNKNOWN,
+ return alloc_netdev_mqs(sizeof_priv, "eth%d", NET_NAME_ENUM,
ether_setup, txqs, rxqs);
}
EXPORT_SYMBOL(alloc_etherdev_mqs);