svn commit: r306216 - head/sys/dev/cxgbe
Navdeep Parhar
np at FreeBSD.org
Thu Sep 22 21:19:27 UTC 2016
Author: np
Date: Thu Sep 22 21:19:25 2016
New Revision: 306216
URL: https://svnweb.freebsd.org/changeset/base/306216
Log:
cxgbe(4): Fix the output of the "tids" sysctl on T6.
Modified:
head/sys/dev/cxgbe/t4_main.c
Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c Thu Sep 22 21:16:54 2016 (r306215)
+++ head/sys/dev/cxgbe/t4_main.c Thu Sep 22 21:19:25 2016 (r306216)
@@ -7237,7 +7237,12 @@ sysctl_tids(SYSCTL_HANDLER_ARGS)
if (t->ntids) {
if (t4_read_reg(sc, A_LE_DB_CONFIG) & F_HASHEN) {
- uint32_t b = t4_read_reg(sc, A_LE_DB_SERVER_INDEX) / 4;
+ uint32_t b;
+
+ if (chip_id(sc) <= CHELSIO_T5)
+ b = t4_read_reg(sc, A_LE_DB_SERVER_INDEX) / 4;
+ else
+ b = t4_read_reg(sc, A_LE_DB_SRVR_START_INDEX);
if (b) {
sbuf_printf(sb, "TID range: 0-%u, %u-%u", b - 1,
More information about the svn-src-all
mailing list