Module Name:    src
Committed By:   msaitoh
Date:           Thu Sep 27 05:40:27 UTC 2018

Modified Files:
        src/sys/dev/pci/ixgbe: ixgbe.c ixv.c

Log Message:
 Don't set LRO capability flags because we don't support it yet.
This doesn't change any behavior other than if_capabilities' visibility
(e.g. ifconfig).


To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 src/sys/dev/pci/ixgbe/ixgbe.c
cvs rdiff -u -r1.106 -r1.107 src/sys/dev/pci/ixgbe/ixv.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/dev/pci/ixgbe/ixgbe.c
diff -u src/sys/dev/pci/ixgbe/ixgbe.c:1.166 src/sys/dev/pci/ixgbe/ixgbe.c:1.167
--- src/sys/dev/pci/ixgbe/ixgbe.c:1.166	Fri Sep 14 09:51:09 2018
+++ src/sys/dev/pci/ixgbe/ixgbe.c	Thu Sep 27 05:40:27 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.166 2018/09/14 09:51:09 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.167 2018/09/27 05:40:27 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -1314,8 +1314,7 @@ ixgbe_setup_interface(device_t dev, stru
 	ifp->if_capabilities |= IFCAP_RXCSUM
 			     |  IFCAP_TXCSUM
 			     |  IFCAP_TSOv4
-			     |  IFCAP_TSOv6
-			     |  IFCAP_LRO;
+			     |  IFCAP_TSOv6;
 	ifp->if_capenable = 0;
 
 	ec->ec_capabilities |= ETHERCAP_VLAN_HWTAGGING

Index: src/sys/dev/pci/ixgbe/ixv.c
diff -u src/sys/dev/pci/ixgbe/ixv.c:1.106 src/sys/dev/pci/ixgbe/ixv.c:1.107
--- src/sys/dev/pci/ixgbe/ixv.c:1.106	Mon Sep  3 16:29:33 2018
+++ src/sys/dev/pci/ixgbe/ixv.c	Thu Sep 27 05:40:27 2018
@@ -1,4 +1,4 @@
-/*$NetBSD: ixv.c,v 1.106 2018/09/03 16:29:33 riastradh Exp $*/
+/*$NetBSD: ixv.c,v 1.107 2018/09/27 05:40:27 msaitoh Exp $*/
 
 /******************************************************************************
 
@@ -1549,9 +1549,9 @@ ixv_setup_interface(device_t dev, struct
 	ec->ec_capenable = ec->ec_capabilities;
 
 	/* Don't enable LRO by default */
-	ifp->if_capabilities |= IFCAP_LRO;
 #if 0
-	ifp->if_capenable = ifp->if_capabilities;
+	/* NetBSD doesn't support LRO yet */
+	ifp->if_capabilities |= IFCAP_LRO;
 #endif
 
 	/*

Reply via email to