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 Simplify setting of EIAC register. No func...
details: https://anonhg.NetBSD.org/src/rev/f25042a13c65
branches: trunk
changeset: 958117:f25042a13c65
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Dec 24 22:36:43 2020 +0000
description:
Simplify setting of EIAC register. No functional change intended.
diffstat:
sys/dev/pci/ixgbe/ixgbe.c | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
diffs (28 lines):
diff -r d0aaab85ea01 -r f25042a13c65 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Thu Dec 24 18:32:53 2020 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Thu Dec 24 22:36:43 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.269 2020/12/24 18:32:53 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.270 2020/12/24 22:36:43 msaitoh Exp $ */
/******************************************************************************
@@ -5085,13 +5085,11 @@
/* With MSI-X we use auto clear */
if (adapter->msix_mem) {
- mask = IXGBE_EIMS_ENABLE_MASK;
- /* Don't autoclear Link */
- mask &= ~IXGBE_EIMS_OTHER;
- mask &= ~IXGBE_EIMS_LSC;
- if (adapter->feat_cap & IXGBE_FEATURE_SRIOV)
- mask &= ~IXGBE_EIMS_MAILBOX;
- IXGBE_WRITE_REG(hw, IXGBE_EIAC, mask);
+ /*
+ * It's not required to set TCP_TIMER because we don't use
+ * it.
+ */
+ IXGBE_WRITE_REG(hw, IXGBE_EIAC, IXGBE_EIMS_RTX_QUEUE);
}
/*
Home |
Main Index |
Thread Index |
Old Index