Fix vtnet TCP lro panic

Differential Revision: https://reviews.freebsd.org/D29900
Reviewed by:	hps, kp
This commit is contained in:
Alexander V. Chernikov 2021-04-19 16:58:41 +01:00
parent df456a1fcf
commit 4044af03a4

View File

@ -2145,7 +2145,8 @@ vtnet_rxq_eof(struct vtnet_rxq *rxq)
if (deq > 0) {
#if defined(INET) || defined(INET6)
tcp_lro_flush_all(&rxq->vtnrx_lro);
if (vtnet_software_lro(sc))
tcp_lro_flush_all(&rxq->vtnrx_lro);
#endif
virtqueue_notify(vq);
}