]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: set default assignment identifier to NET_NAME_ENUM
authorIan Wienand <iwienand@redhat.com>
Wed, 6 Apr 2022 09:36:36 +0000 (19:36 +1000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 8 Apr 2022 04:04:03 +0000 (21:04 -0700)
commit06200561fc88c3c239a7081c1bc10d021e6fbb20
tree74293f5df1543533f70493e383bbfe90a077100b
parentf8f992bb26bc7e7dcbb9a66bc95b81bbb8c640ef
net: ethernet: set default assignment identifier to NET_NAME_ENUM

As noted in the original commit 2e95b1c941e6 ("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>
net/ethernet/eth.c