linux-stable/drivers/net
Rasmus Villemoes cb6ca98c81 net: loopback: use NET_NAME_PREDICTABLE for name_assign_type
[ Upstream commit 31d929de5a ]

When the name_assign_type attribute was introduced (commit
685343fc3b, "net: add name_assign_type netdev attribute"), the
loopback device was explicitly mentioned as one which would make use
of NET_NAME_PREDICTABLE:

    The name_assign_type attribute gives hints where the interface name of a
    given net-device comes from. These values are currently defined:
...
      NET_NAME_PREDICTABLE:
        The ifname has been assigned by the kernel in a predictable way
        that is guaranteed to avoid reuse and always be the same for a
        given device. Examples include statically created devices like
        the loopback device [...]

Switch to that so that reading /sys/class/net/lo/name_assign_type
produces something sensible instead of returning -EINVAL.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-21 17:41:15 +01:00
..
appletalk
arcnet arcnet: fix potential memory leak in com20020_probe() 2022-12-02 17:43:08 +01:00
bonding bonding: get correct NA dest address 2022-12-14 11:41:03 +01:00
caif
can can: mcba_usb: Fix termination command argument 2022-12-19 12:41:03 +01:00
dsa net: dsa: mv88e6xxx: accept phy-mode = "internal" for internal PHY ports 2022-12-14 11:41:05 +01:00
ethernet igb: Initialize mailbox message for VF reset 2022-12-21 17:41:14 +01:00
fddi
fjes
hamradio hamradio: fix issue of dev reference count leakage in bpq_device_event() 2022-11-16 10:03:55 +01:00
hippi net: hippi: Add missing pci_disable_device() in rr_init_one() 2022-09-26 13:22:39 -07:00
hyperv hv_netvsc: Fix race between VF offering and VF association message from host 2022-10-21 12:37:34 +02:00
ieee802154 ca8210: Fix crash by zero initializing data 2022-12-14 11:40:56 +01:00
ipa
ipvlan ipvlan: hold lower dev to avoid possible use-after-free 2022-12-02 17:43:04 +01:00
mctp mctp i2c: don't count unused / invalid keys for flow release 2022-11-26 09:27:34 +01:00
mdio net: mdio: fix unbalanced fwnode reference count in mdio_device_release() 2022-12-14 11:41:03 +01:00
netdevsim netdevsim: Fix memory leak of nsim_dev->fa_cookie 2022-11-26 09:27:40 +01:00
pcs
phy net: phy: mxl-gpy: add MDINT workaround 2022-12-14 11:41:05 +01:00
plip net: plip: don't call kfree_skb/dev_kfree_skb() under spin_lock_irq() 2022-12-14 11:41:05 +01:00
ppp
slip
team
usb net: usb: qmi_wwan: add u-blox 0x1342 composition 2022-12-14 11:40:49 +01:00
vmxnet3 vmxnet3: use correct intrConf reference when using extended queues 2022-12-14 11:40:58 +01:00
vxlan
wan net: lapbether: fix issue of invalid opcode in lapbeth_open() 2022-11-16 10:03:58 +01:00
wireguard
wireless wifi: wilc1000: validate number of channels 2022-12-02 17:43:17 +01:00
wwan net: wwan: iosm: fix memory leak in ipc_mux_init() 2022-12-14 11:41:02 +01:00
xen-netback xen/netback: fix build warning 2022-12-14 11:41:04 +01:00
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c net: loopback: use NET_NAME_PREDICTABLE for name_assign_type 2022-12-21 17:41:15 +01:00
macsec.c macsec: add missing attribute validation for offload 2022-12-14 11:41:05 +01:00
macvlan.c macvlan: enforce a consistent minimal mtu 2022-11-26 09:27:54 +01:00
macvtap.c
Makefile
mdio.c
mhi_net.c net: mhi: Fix memory leak in mhi_net_dellink() 2022-11-26 09:27:36 +01:00
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c net: net_netdev: Fix error handling in ntb_netdev_init_module() 2022-12-08 11:30:17 +01:00
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c net: thunderbolt: fix memory leak in tbnet_open() 2022-12-14 11:41:05 +01:00
tun.c net: tun: Fix use-after-free in tun_detach() 2022-12-08 11:30:18 +01:00
veth.c
virtio_net.c virtio_net: Fix probe failed when modprobe virtio_net 2022-12-02 17:43:09 +01:00
vrf.c
vsockmon.c
xen-netfront.c xen-netfront: Fix NULL sring after live migration 2022-12-14 11:41:01 +01:00