Linux – How to check at which PCI-Express mode a NIC operates

hardwarelinuxnicpci-express

I have PCIe x4 NIC plugged into PCIe x16 slot. I have read, that even though it should run in x4 mode, it's not guaranteed: the network card can run in backward compatibility 1x mode. How to verify this under Linux?

Best Answer

I got it, it's in the logs:

0000:00:01.0: eth2: (PCI Express:2.5GB/s:Width x1) 00:15:17:96:79:57