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 allow skipping IPv4 checksum on Tx
details: https://anonhg.NetBSD.org/src/rev/6e29a9d57f22
branches: trunk
changeset: 1008326:6e29a9d57f22
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Thu Mar 19 11:19:25 2020 +0000
description:
allow skipping IPv4 checksum on Tx
diffstat:
sys/arch/xen/xen/xennetback_xenbus.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (46 lines):
diff -r 0691694540cb -r 6e29a9d57f22 sys/arch/xen/xen/xennetback_xenbus.c
--- a/sys/arch/xen/xen/xennetback_xenbus.c Thu Mar 19 10:53:43 2020 +0000
+++ b/sys/arch/xen/xen/xennetback_xenbus.c Thu Mar 19 11:19:25 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xennetback_xenbus.c,v 1.81 2020/03/18 19:26:15 jdolecek Exp $ */
+/* $NetBSD: xennetback_xenbus.c,v 1.82 2020/03/19 11:19:25 jdolecek Exp $ */
/*
* Copyright (c) 2006 Manuel Bouyer.
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xennetback_xenbus.c,v 1.81 2020/03/18 19:26:15 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xennetback_xenbus.c,v 1.82 2020/03/19 11:19:25 jdolecek Exp $");
#include "opt_xen.h"
@@ -304,7 +304,8 @@
ifp->if_snd.ifq_maxlen =
uimax(ifqmaxlen, NET_TX_RING_SIZE * 2);
ifp->if_capabilities =
- IFCAP_CSUM_UDPv4_Tx
+ IFCAP_CSUM_IPv4_Tx
+ | IFCAP_CSUM_UDPv4_Tx
| IFCAP_CSUM_TCPv4_Tx;
ifp->if_ioctl = xennetback_ifioctl;
ifp->if_start = xennetback_ifstart;
@@ -1049,7 +1050,7 @@
rxresp->offset = offset;
rxresp->status = m->m_pkthdr.len;
if ((m->m_pkthdr.csum_flags &
- (M_CSUM_TCPv4 | M_CSUM_UDPv4)) != 0) {
+ (M_CSUM_TCPv4 | M_CSUM_UDPv4 | M_CSUM_IPv4)) != 0) {
rxresp->flags = NETRXF_csum_blank;
} else {
rxresp->flags = NETRXF_data_validated;
@@ -1358,7 +1359,7 @@
rxresp->offset = 0;
rxresp->status = m->m_pkthdr.len;
if ((m->m_pkthdr.csum_flags &
- (M_CSUM_TCPv4 | M_CSUM_UDPv4)) != 0) {
+ (M_CSUM_TCPv4 | M_CSUM_UDPv4 | M_CSUM_IPv4)) != 0) {
rxresp->flags = NETRXF_csum_blank;
} else {
rxresp->flags = NETRXF_data_validated;
Home |
Main Index |
Thread Index |
Old Index