cxgbe: no need to display the per-lane GT/s rating of the pcie link.
MFC after: 1 week
This commit is contained in:
parent
324c11a1be
commit
a89409b817
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283864
@ -582,7 +582,6 @@ t4_attach(device_t dev)
|
||||
#ifdef DEV_NETMAP
|
||||
int nm_rqidx, nm_tqidx;
|
||||
#endif
|
||||
const char *pcie_ts;
|
||||
|
||||
sc = device_get_softc(dev);
|
||||
sc->dev = dev;
|
||||
@ -905,25 +904,10 @@ t4_attach(device_t dev)
|
||||
goto done;
|
||||
}
|
||||
|
||||
switch (sc->params.pci.speed) {
|
||||
case 0x1:
|
||||
pcie_ts = "2.5";
|
||||
break;
|
||||
case 0x2:
|
||||
pcie_ts = "5.0";
|
||||
break;
|
||||
case 0x3:
|
||||
pcie_ts = "8.0";
|
||||
break;
|
||||
default:
|
||||
pcie_ts = "??";
|
||||
break;
|
||||
}
|
||||
device_printf(dev,
|
||||
"PCIe x%d (%s GTS/s) (%d), %d ports, %d %s interrupt%s, %d eq, %d iq\n",
|
||||
sc->params.pci.width, pcie_ts, sc->params.pci.speed,
|
||||
sc->params.nports, sc->intr_count,
|
||||
sc->intr_type == INTR_MSIX ? "MSI-X" :
|
||||
"PCIe gen%d x%d, %d ports, %d %s interrupt%s, %d eq, %d iq\n",
|
||||
sc->params.pci.speed, sc->params.pci.width, sc->params.nports,
|
||||
sc->intr_count, sc->intr_type == INTR_MSIX ? "MSI-X" :
|
||||
(sc->intr_type == INTR_MSI ? "MSI" : "INTx"),
|
||||
sc->intr_count > 1 ? "s" : "", sc->sge.neq, sc->sge.niq);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user