Date: Mon, 1 Jun 2015 03:24:40 +0000 (UTC) From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r283864 - head/sys/dev/cxgbe Message-ID: <201506010324.t513OePZ078372@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506010324.t513OePZ078372>