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 enable Rx checkum offload (i.e. skip) for x...
details: https://anonhg.NetBSD.org/src/rev/a28890c2841b
branches: trunk
changeset: 850422:a28890c2841b
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sat Apr 04 14:45:37 2020 +0000
description:
enable Rx checkum offload (i.e. skip) for xen netback; it works well
as long as netfront in DomU is configured to fill the checksum
documentation will be updated to recommend how the flags should be setup
on each side of the xennet(4)/xvif(4) pair
diffstat:
sys/arch/xen/xen/xennetback_xenbus.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (35 lines):
diff -r 94d7227bcfd7 -r a28890c2841b sys/arch/xen/xen/xennetback_xenbus.c
--- a/sys/arch/xen/xen/xennetback_xenbus.c Sat Apr 04 13:59:16 2020 +0000
+++ b/sys/arch/xen/xen/xennetback_xenbus.c Sat Apr 04 14:45:37 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xennetback_xenbus.c,v 1.90 2020/03/30 19:07:32 jdolecek Exp $ */
+/* $NetBSD: xennetback_xenbus.c,v 1.91 2020/04/04 14:45:37 jdolecek Exp $ */
/*
* Copyright (c) 2006 Manuel Bouyer.
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xennetback_xenbus.c,v 1.90 2020/03/30 19:07:32 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xennetback_xenbus.c,v 1.91 2020/04/04 14:45:37 jdolecek Exp $");
#include "opt_xen.h"
@@ -287,11 +287,11 @@
ifp->if_snd.ifq_maxlen =
uimax(ifqmaxlen, NET_TX_RING_SIZE * 2);
ifp->if_capabilities =
- IFCAP_CSUM_IPv4_Tx
- | IFCAP_CSUM_UDPv4_Tx
- | IFCAP_CSUM_TCPv4_Tx
- | IFCAP_CSUM_UDPv6_Tx
- | IFCAP_CSUM_TCPv6_Tx;
+ IFCAP_CSUM_IPv4_Rx | IFCAP_CSUM_IPv4_Tx
+ | IFCAP_CSUM_UDPv4_Rx | IFCAP_CSUM_UDPv4_Tx
+ | IFCAP_CSUM_TCPv4_Rx | IFCAP_CSUM_TCPv4_Tx
+ | IFCAP_CSUM_UDPv6_Rx | IFCAP_CSUM_UDPv6_Tx
+ | IFCAP_CSUM_TCPv6_Rx | IFCAP_CSUM_TCPv6_Tx;
#define XN_M_CSUM_SUPPORTED ( \
M_CSUM_TCPv4 | M_CSUM_UDPv4 | M_CSUM_IPv4 \
| M_CSUM_TCPv6 | M_CSUM_UDPv6 \
Home |
Main Index |
Thread Index |
Old Index