Closed guesslin closed 4 years ago
Hello @guesslin . Can you please retarget your change to develop
branch? Master
is for releases and brief changes to README
.
I tried to change the target branch for your pull request, but I got conflicts, so it is better if you do it yourself.
@gshimansky ok, I update the target from master
to develop
, please have a look :)
For some NIC the readlink
/sys/class/net/<nic_name>
would get several PCI address and the correct one would be the second one, e.g.To get the correct device ID, we have to check if the second one
0000:13:00.0
is a PCI address, return the second one, else return the first one0000:00:17.0
Signed-off-by: Yu-Han Lin guesslin@glasnostic.com