Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Nov 2020 00:12:42 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r367969 - stable/12/sys/dev/cxgbe
Message-ID:  <202011240012.0AO0CgK7062525@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Tue Nov 24 00:12:42 2020
New Revision: 367969
URL: https://svnweb.freebsd.org/changeset/base/367969

Log:
  MFC r366916:
  
  cxgbe(4): display correct tid range for T6 based -SO cards.
  
  Reported by:	Chelsio QA
  Sponsored by:	Chelsio Communications

Modified:
  stable/12/sys/dev/cxgbe/t4_main.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/cxgbe/t4_main.c
==============================================================================
--- stable/12/sys/dev/cxgbe/t4_main.c	Tue Nov 24 00:07:22 2020	(r367968)
+++ stable/12/sys/dev/cxgbe/t4_main.c	Tue Nov 24 00:12:42 2020	(r367969)
@@ -9020,8 +9020,10 @@ sysctl_tids(SYSCTL_HANDLER_ARGS)
 			if (b)
 				sbuf_printf(sb, "%u-%u, ", t->tid_base, b - 1);
 			sbuf_printf(sb, "%u-%u", hb, t->ntids - 1);
-		} else
-			sbuf_printf(sb, "%u-%u", t->tid_base, t->ntids - 1);
+		} else {
+			sbuf_printf(sb, "%u-%u", t->tid_base, t->tid_base +
+			    t->ntids - 1);
+		}
 		sbuf_printf(sb, ", in use: %u\n",
 		    atomic_load_acq_int(&t->tids_in_use));
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011240012.0AO0CgK7062525>