If the driver defines an led_func, have the framework create them during attach.
PR: 246885
Reported by: Jose Luis Duran <jlduran@gmail.com>
Differential D32389
iflib: Create led(4) devices kbowling on Oct 9 2021, 3:14 AM. Authored by Tags None Referenced Files
Details
If the driver defines an led_func, have the framework create them during attach. PR: 246885 Tested on I350:
Diff Detail
Event TimelineComment Actions Jose submitted a variant where the driver (e1000 in this case) calls the iflib_led_create() function in its post attach. I am open to either approach if anyone has any thoughts one way or the other. Comment Actions I prefer this approach. Regardless of which patch you choose, on my home router (2 i211-based NICs), identifying /dev/led/igb0 works, but /dev/led/igb1 do not. Nevertheless, the LED devices are created as well. Thank you! |