Actions
Feature #11690
closedAdd an option to rescan PCI buses to allow NIC hotplug
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Operating System
Target version:
-
Start date:
03/17/2021
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Release Notes:
Default
Description
Hi,
Would it be possible to add an option to rescan PCI buses? Maybe just a playback command would be enough.
I am surprised that there are no open issues that mention this. The only thing I was able to find is a forum post from 2012 in which jimp explained that it was not possible at the time.
I was able to hotplug an EM1000 NIC from ESXi after finding out which PCI bus the existing NICs were using with devinfo
:
pcib2 pci2 em0 em1
It looks like pciconf -l em0
can also help us identify the bus number of the current NICs:
em0@pci0:2:0:0: class=0x020000 card=0x075015ad chip=0x100f8086 rev=0x01 hdr=0x00@
I then ran devctl rescan pci2
which made the new interface appear as shown by dmesg
's output:
em2: <Intel(R) PRO/1000 Legacy Network Connection 1.1.0> at device 3.0 on pci2 em2: Ethernet address: xx:xx:xx:xx:xx:xx em2: netmap queues/slots: TX 1/256, RX 1/256 em2: link state changed to UP
Actions