net-sysfs: restore behavior for not running devices
modprobe dummy dumdummies=1 Old behavior : $ cat /sys/class/net/dummy0/carrier cat: /sys/class/net/dummy0/carrier: Invalid argument After blamed commit, an empty string is reported. $ cat /sys/class/net/dummy0/carrier $ In this commit, I restore the old behavior for carrier, speed and duplex attributes. Fixes: 79c61899 ("net-sysfs: remove rtnl_trylock from device attributes") Signed-off-by:Eric Dumazet <edumazet@google.com> Reported-by:
Marco Leogrande <leogrande@google.com> Reviewed-by:
Antoine Tenart <atenart@kernel.org> Link: https://patch.msgid.link/20250221051223.576726-1-edumazet@google.com Signed-off-by:
Jakub Kicinski <kuba@kernel.org>
Loading
Please sign in to comment