Module Name:    src
Committed By:   jmcneill
Date:           Mon Mar  4 11:35:38 UTC 2019

Modified Files:
        src/sys/arch/arm/sunxi: sunxi_emac.c

Log Message:
Enable hw csum offload by default


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/arm/sunxi/sunxi_emac.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/sunxi/sunxi_emac.c
diff -u src/sys/arch/arm/sunxi/sunxi_emac.c:1.21 src/sys/arch/arm/sunxi/sunxi_emac.c:1.22
--- src/sys/arch/arm/sunxi/sunxi_emac.c:1.21	Tue Jan 22 03:42:25 2019
+++ src/sys/arch/arm/sunxi/sunxi_emac.c	Mon Mar  4 11:35:38 2019
@@ -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 <jmcne...@invisible.ca>
@@ -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 @@ sunxi_emac_attach(device_t parent, devic
 			       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);
 

Reply via email to