Trying to see if it's possible to limit the output of the
lspci command to show only Ethernet devices. The
-d switch seems like it should work, but nothing I've tried gets the job done. For example:
lspci -d '*:*:02'
still shows all pci device classes. I'm using
02 as the class per the values found here: http://pci-ids.ucw.cz/read/PD/02
For reference here is the "man lspci" info for the
-d [<vendor>]:[<device>][:<class>] Show only devices with specified vendor, device and class ID. The ID's are given in hexadecimal and may be omitted or given as "*", both meaning "any value".
I'm currently using grep to filter output, and that gets the job done:
lspci -vv | grep -A20 Ethernet