Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/dev/pci/ixgbe Pull up following revision(s) (requeste...



details:   https://anonhg.NetBSD.org/src/rev/37b1add8fe24
branches:  netbsd-9
changeset: 963147:37b1add8fe24
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Oct 17 19:09:14 2019 +0000

description:
Pull up following revision(s) (requested by msaitoh in ticket #348):

        sys/dev/pci/ixgbe/ixgbe.c: revision 1.214

Apply FreeBSD r353599:
 > ixgbe: Disable EEE for backplane X550EM_X
 >
 > From Zach:
 > Intel documentation indicates that backplane X550EM_X KR devices do not
 > support Energy Efficient Ethernet. Prior to this patch, X552 devices
 > (device ID 0x15AB) will crash the system when transitioning EEE state
 > via sysctl.
 >
 > Signed-off-by: Zach Vargas <zvargas%xes-inc.com@localhost>
 >
 > PR:          240320
 > Submitted by:        Zach Vargas <zvargas%xes-inc.com@localhost>
 > Reviewed by: erj@
 > MFC after:   3 days
 > Differential Revision:       https://reviews.freebsd.org/D21673

diffstat:

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

diffs (27 lines):

diff -r 25a86c15e19c -r 37b1add8fe24 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Thu Oct 17 19:06:58 2019 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Thu Oct 17 19:09:14 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.199.2.5 2019/09/26 19:07:22 martin Exp $ */
+/* $NetBSD: ixgbe.c,v 1.199.2.6 2019/10/17 19:09:14 martin Exp $ */
 
 /******************************************************************************
 
@@ -5860,7 +5860,7 @@
        if ((new_eee < 0) || (new_eee > 1))
                return (EINVAL);
 
-       retval = adapter->hw.mac.ops.setup_eee(&adapter->hw, new_eee);
+       retval = ixgbe_setup_eee(&adapter->hw, new_eee);
        if (retval) {
                device_printf(dev, "Error in EEE setup: 0x%08X\n", retval);
                return (EINVAL);
@@ -6034,8 +6034,6 @@
                 */
                adapter->feat_cap |= IXGBE_FEATURE_SRIOV;
                adapter->feat_cap |= IXGBE_FEATURE_FDIR;
-               if (adapter->hw.device_id == IXGBE_DEV_ID_X550EM_X_KR)
-                       adapter->feat_cap |= IXGBE_FEATURE_EEE;
                break;
        case ixgbe_mac_X550EM_a:
                /*



Home | Main Index | Thread Index | Old Index