Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/ixgbe Don't set LRO capability flags because we ...



details:   https://anonhg.NetBSD.org/src/rev/bf96ec563388
branches:  trunk
changeset: 433675:bf96ec563388
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Sep 27 05:40:27 2018 +0000

description:
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).

diffstat:

 sys/dev/pci/ixgbe/ixgbe.c |  5 ++---
 sys/dev/pci/ixgbe/ixv.c   |  6 +++---
 2 files changed, 5 insertions(+), 6 deletions(-)

diffs (40 lines):

diff -r db17f24589a9 -r bf96ec563388 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Thu Sep 27 01:18:11 2018 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Thu Sep 27 05:40:27 2018 +0000
@@ -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 @@
        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
diff -r db17f24589a9 -r bf96ec563388 sys/dev/pci/ixgbe/ixv.c
--- a/sys/dev/pci/ixgbe/ixv.c   Thu Sep 27 01:18:11 2018 +0000
+++ b/sys/dev/pci/ixgbe/ixv.c   Thu Sep 27 05:40:27 2018 +0000
@@ -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 @@
        ec->ec_capenable = ec->ec_capabilities;
 
        /* Don't enable LRO by default */
+#if 0
+       /* NetBSD doesn't support LRO yet */
        ifp->if_capabilities |= IFCAP_LRO;
-#if 0
-       ifp->if_capenable = ifp->if_capabilities;
 #endif
 
        /*



Home | Main Index | Thread Index | Old Index