Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/sunxi Enable hw csum offload by default
details: https://anonhg.NetBSD.org/src/rev/d1ffd7ad1fac
branches: trunk
changeset: 449339:d1ffd7ad1fac
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Mar 04 11:35:38 2019 +0000
description:
Enable hw csum offload by default
diffstat:
sys/arch/arm/sunxi/sunxi_emac.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 1de5c003cfa6 -r d1ffd7ad1fac sys/arch/arm/sunxi/sunxi_emac.c
--- a/sys/arch/arm/sunxi/sunxi_emac.c Mon Mar 04 09:25:04 2019 +0000
+++ b/sys/arch/arm/sunxi/sunxi_emac.c Mon Mar 04 11:35:38 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_emac.c,v 1.21 2019/01/22 03:42:25 msaitoh Exp $ */
+/* $NetBSD: sunxi_emac.c,v 1.22 2019/03/04 11:35:38 jmcneill Exp $ */
/*-
* Copyright (c) 2016-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -33,7 +33,7 @@
#include "opt_net_mpsafe.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_emac.c,v 1.21 2019/01/22 03:42:25 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_emac.c,v 1.22 2019/03/04 11:35:38 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -1440,6 +1440,7 @@
IFCAP_CSUM_TCPv4_Tx |
IFCAP_CSUM_UDPv4_Rx |
IFCAP_CSUM_UDPv4_Tx;
+ ifp->if_capenable = ifp->if_capabilities;
IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
IFQ_SET_READY(&ifp->if_snd);
Home |
Main Index |
Thread Index |
Old Index