Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/xen if part of checksum was undeferred via sw a...
details: https://anonhg.NetBSD.org/src/rev/d179b4b8d475
branches: trunk
changeset: 1009541:d179b4b8d475
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sun Apr 26 12:38:21 2020 +0000
description:
if part of checksum was undeferred via sw and part not, count it as both
diffstat:
sys/arch/xen/xen/xennet_checksum.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r a4aa64a5b465 -r d179b4b8d475 sys/arch/xen/xen/xennet_checksum.c
--- a/sys/arch/xen/xen/xennet_checksum.c Sun Apr 26 12:15:37 2020 +0000
+++ b/sys/arch/xen/xen/xennet_checksum.c Sun Apr 26 12:38:21 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xennet_checksum.c,v 1.10 2020/03/22 11:20:59 jdolecek Exp $ */
+/* $NetBSD: xennet_checksum.c,v 1.11 2020/04/26 12:38:21 jdolecek Exp $ */
/*-
* Copyright (c)2006 YAMAMOTO Takashi,
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xennet_checksum.c,v 1.10 2020/03/22 11:20:59 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xennet_checksum.c,v 1.11 2020/04/26 12:38:21 jdolecek Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -224,6 +224,8 @@
#endif
if (m->m_pkthdr.csum_flags != 0) {
+ if (sw_csum)
+ xn_cksum_undefer.ev_count++;
xn_cksum_defer.ev_count++;
#ifdef M_CSUM_BLANK
m->m_pkthdr.csum_flags |= M_CSUM_BLANK;
Home |
Main Index |
Thread Index |
Old Index