svn commit: r338119 - head/sys/dev/cxgbe/tom

Navdeep Parhar np at FreeBSD.org
Mon Aug 20 21:40:15 UTC 2018


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)


More information about the svn-src-all mailing list