Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Aug 2018 21:40:14 +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: r338119 - head/sys/dev/cxgbe/tom
Message-ID:  <201808202140.w7KLeE84042301@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Mon Aug 20 21:40:14 2018
New Revision: 338119
URL: https://svnweb.freebsd.org/changeset/base/338119

Log:
  cxgbe/tom: Provide the hardware tid in tcp_info.
  
  Submitted by:	marius@

Modified:
  head/sys/dev/cxgbe/tom/t4_tom.c

Modified: head/sys/dev/cxgbe/tom/t4_tom.c
==============================================================================
--- head/sys/dev/cxgbe/tom/t4_tom.c	Mon Aug 20 21:19:21 2018	(r338118)
+++ head/sys/dev/cxgbe/tom/t4_tom.c	Mon Aug 20 21:40:14 2018	(r338119)
@@ -438,6 +438,8 @@ t4_tcp_info(struct toedev *tod, struct tcpcb *tp, stru
 	INP_WLOCK_ASSERT(tp->t_inpcb);
 	MPASS(ti != NULL);
 
+	ti->tcpi_toe_tid = toep->tid;
+
 	addr = t4_read_reg(sc, A_TP_CMM_TCB_BASE) + toep->tid * TCB_SIZE;
 	rc = read_via_memwin(sc, 2, addr, &buf[0], TCB_SIZE);
 	if (rc != 0)



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