aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Joyner <erj@FreeBSD.org>2019-10-15 21:56:19 +0000
committerEric Joyner <erj@FreeBSD.org>2019-10-15 21:56:19 +0000
commitd61b6a41dd30a9b175c1c41cd3acf5028db021a1 (patch)
tree555f06a54314acc0a6161dc7e7a293a72676e155
parent4b25d1f2e310434a8df82805de4f0ced69b761a5 (diff)
downloadsrc-d61b6a41dd30a9b175c1c41cd3acf5028db021a1.tar.gz
src-d61b6a41dd30a9b175c1c41cd3acf5028db021a1.zip
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> PR: 240320 Submitted by: Zach Vargas <zvargas@xes-inc.com> Reviewed by: erj@ MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D21673
Notes
Notes: svn path=/head/; revision=353599
-rw-r--r--sys/dev/ixgbe/if_ix.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/ixgbe/if_ix.c b/sys/dev/ixgbe/if_ix.c
index 62f5e517148e..cfbecf4c56ce 100644
--- a/sys/dev/ixgbe/if_ix.c
+++ b/sys/dev/ixgbe/if_ix.c
@@ -4414,7 +4414,7 @@ ixgbe_sysctl_eee_state(SYSCTL_HANDLER_ARGS)
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);
@@ -4467,8 +4467,6 @@ ixgbe_init_device_features(struct adapter *adapter)
case ixgbe_mac_X550EM_x:
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:
adapter->feat_cap |= IXGBE_FEATURE_SRIOV;