Author: np
Date: Wed Oct 21 20:42:29 2020
New Revision: 366916
URL: https://svnweb.freebsd.org/changeset/base/366916

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

Modified:
  head/sys/dev/cxgbe/t4_main.c

Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c        Wed Oct 21 18:45:48 2020        
(r366915)
+++ head/sys/dev/cxgbe/t4_main.c        Wed Oct 21 20:42:29 2020        
(r366916)
@@ -9325,8 +9325,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));
        }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to