cxgbe/t4_tom: Exempt RDMA connections from a TCP sanity test for now, to

avoid panicking debug kernels.

t4_tom does not keep track of a connection once it switches to ULP mode
iWARP.  If the connection falls out of ULP mode the driver/hardware seq#
etc. are out of sync.  A better fix would be to figure out what the
current seq# are, update the driver's state, and perform all sanity
checks as usual.
This commit is contained in:
Navdeep Parhar 2016-05-28 00:38:17 +00:00
parent 12889df73f
commit addd6a52c4

View File

@ -1417,7 +1417,11 @@ do_rx_data(struct sge_iq *iq, const struct rss_header *rss, struct mbuf *m)
ddp_placed = be32toh(cpl->seq) - tp->rcv_nxt;
tp->rcv_nxt += len;
KASSERT(tp->rcv_wnd >= len, ("%s: negative window size", __func__));
if (tp->rcv_wnd < len) {
KASSERT(toep->ulp_mode != ULP_MODE_RDMA,
("%s: negative window size", __func__));
}
tp->rcv_wnd -= len;
tp->t_rcvtime = ticks;