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/5ad297408c16
branches:  trunk
changeset: 997320:5ad297408c16
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 c77af001038c -r 5ad297408c16 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