Module Name:    src
Committed By:   martin
Date:           Sun Jan 14 15:25:54 UTC 2024

Modified Files:
        src/sys/arch/xen/xen [netbsd-10]: if_xennet_xenbus.c

Log Message:
Pull up following revision(s) (requested by jdolecek in ticket #543):

        sys/arch/xen/xen/if_xennet_xenbus.c: revision 1.130

disable TX checksum optimization, it's causing ARP lossage in some
configurations using Linux dom0

PR port-xen/57743 by Brian Marcotte, thanks for the patch


To generate a diff of this commit:
cvs rdiff -u -r1.128.20.1 -r1.128.20.2 \
    src/sys/arch/xen/xen/if_xennet_xenbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/xen/xen/if_xennet_xenbus.c
diff -u src/sys/arch/xen/xen/if_xennet_xenbus.c:1.128.20.1 src/sys/arch/xen/xen/if_xennet_xenbus.c:1.128.20.2
--- src/sys/arch/xen/xen/if_xennet_xenbus.c:1.128.20.1	Mon Jul 31 15:23:02 2023
+++ src/sys/arch/xen/xen/if_xennet_xenbus.c	Sun Jan 14 15:25:54 2024
@@ -1,4 +1,4 @@
-/*      $NetBSD: if_xennet_xenbus.c,v 1.128.20.1 2023/07/31 15:23:02 martin Exp $      */
+/*      $NetBSD: if_xennet_xenbus.c,v 1.128.20.2 2024/01/14 15:25:54 martin Exp $      */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -81,7 +81,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_xennet_xenbus.c,v 1.128.20.1 2023/07/31 15:23:02 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_xennet_xenbus.c,v 1.128.20.2 2024/01/14 15:25:54 martin Exp $");
 
 #include "opt_xen.h"
 #include "opt_nfs_boot.h"
@@ -1122,7 +1122,13 @@ xennet_submit_tx_request(struct xennet_x
 			if (m->m_pkthdr.csum_flags & XN_M_CSUM_SUPPORTED) {
 				txreq->flags |= NETTXF_csum_blank;
 			} else {
+#if 0
+				/*
+				 * XXX Checksum optimization disabled 
+				 * to avoid port-xen/57743.
+				 */
 				txreq->flags |= NETTXF_data_validated;
+#endif
 			}
 		}
 		if (multiseg && i < lastseg)

Reply via email to