cxgbe/tom: Provide the hardware tid in tcp_info.

Submitted by:	marius@
This commit is contained in:
np 2018-08-20 21:40:14 +00:00
parent a91193512d
commit d9db754f8a

View File

@ -438,6 +438,8 @@ t4_tcp_info(struct toedev *tod, struct tcpcb *tp, struct tcp_info *ti)
INP_WLOCK_ASSERT(tp->t_inpcb); INP_WLOCK_ASSERT(tp->t_inpcb);
MPASS(ti != NULL); MPASS(ti != NULL);
ti->tcpi_toe_tid = toep->tid;
addr = t4_read_reg(sc, A_TP_CMM_TCB_BASE) + toep->tid * TCB_SIZE; 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); rc = read_via_memwin(sc, 2, addr, &buf[0], TCB_SIZE);
if (rc != 0) if (rc != 0)