mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
cxgbei: Set vnet around tcp_drop() in do_rx_iscsi_ddp().
Reviewed by: np MFC after: 2 weeks Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D29298
This commit is contained in:
parent
f33b4fa2f0
commit
52c11c3f74
1 changed files with 2 additions and 0 deletions
|
|
@ -412,12 +412,14 @@ do_rx_iscsi_ddp(struct sge_iq *iq, const struct rss_header *rss, struct mbuf *m)
|
|||
SOCKBUF_UNLOCK(sb);
|
||||
INP_WUNLOCK(inp);
|
||||
|
||||
CURVNET_SET(so->so_vnet);
|
||||
NET_EPOCH_ENTER(et);
|
||||
INP_WLOCK(inp);
|
||||
tp = tcp_drop(tp, ECONNRESET);
|
||||
if (tp)
|
||||
INP_WUNLOCK(inp);
|
||||
NET_EPOCH_EXIT(et);
|
||||
CURVNET_RESTORE();
|
||||
|
||||
icl_cxgbei_conn_pdu_free(NULL, ip);
|
||||
#ifdef INVARIANTS
|
||||
|
|
|
|||
Loading…
Reference in a new issue