Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Apr 2021 07:59:58 GMT
From:      "Alexander V. Chernikov" <melifaro@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 4044af03a4e9 - main - Fix vtnet TCP lro panic
Message-ID:  <202104220759.13M7xwCt034092@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by melifaro:

URL: https://cgit.FreeBSD.org/src/commit/?id=4044af03a4e95642d8d1982800c079029c2b087c

commit 4044af03a4e95642d8d1982800c079029c2b087c
Author:     Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2021-04-19 15:58:41 +0000
Commit:     Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2021-04-19 16:06:34 +0000

    Fix vtnet TCP lro panic
    
    Differential Revision: https://reviews.freebsd.org/D29900
    Reviewed by:    hps, kp
---
 sys/dev/virtio/network/if_vtnet.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/dev/virtio/network/if_vtnet.c b/sys/dev/virtio/network/if_vtnet.c
index 3650d19fbe0e..e65914c5184f 100644
--- a/sys/dev/virtio/network/if_vtnet.c
+++ b/sys/dev/virtio/network/if_vtnet.c
@@ -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);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104220759.13M7xwCt034092>