svn commit: r283864 - head/sys/dev/cxgbe
Navdeep Parhar
np at FreeBSD.org
Mon Jun 1 03:24:40 UTC 2015
Author: np
Date: Mon Jun 1 03:24:39 2015
New Revision: 283864
URL: https://svnweb.freebsd.org/changeset/base/283864
Log:
cxgbe: no need to display the per-lane GT/s rating of the pcie link.
MFC after: 1 week
Modified:
head/sys/dev/cxgbe/t4_main.c
Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c Mon Jun 1 02:06:57 2015 (r283863)
+++ head/sys/dev/cxgbe/t4_main.c Mon Jun 1 03:24:39 2015 (r283864)
@@ -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);
More information about the svn-src-all
mailing list