aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/e1000
diff options
context:
space:
mode:
authorKevin Bowling <kbowling@FreeBSD.org>2024-09-28 03:34:18 +0000
committerKevin Bowling <kbowling@FreeBSD.org>2024-09-28 03:36:00 +0000
commit26439b57877ccae7a2404f7d179afaa5ddb2f64d (patch)
tree0e347057206d44dcff9aa714b99be327534e010f /sys/dev/e1000
parentb7cbf741d55468ba34305a14ac3acc1c286af034 (diff)
downloadsrc-26439b57877ccae7a2404f7d179afaa5ddb2f64d.tar.gz
src-26439b57877ccae7a2404f7d179afaa5ddb2f64d.zip
e1000: Remove redundant EITR shift from igb
The E1000_EITR() macro is already multiplying by 0x4 which is the same as this shift, so we were shifting more than expected. MFC after: 6 days Sponsored by: BBOX.io
Diffstat (limited to 'sys/dev/e1000')
-rw-r--r--sys/dev/e1000/if_em.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/e1000/if_em.h b/sys/dev/e1000/if_em.h
index 7219dc57c333..83a0d4e96fc6 100644
--- a/sys/dev/e1000/if_em.h
+++ b/sys/dev/e1000/if_em.h
@@ -251,8 +251,7 @@
#define IGB_ITR_DIVIDEND 1000000
#define IGB_ITR_SHIFT 2
#define IGB_QVECTOR_MASK 0x7FFC
-#define IGB_INTS_TO_EITR(i) (((IGB_ITR_DIVIDEND/i) & IGB_QVECTOR_MASK) << \
- IGB_ITR_SHIFT)
+#define IGB_INTS_TO_EITR(i) ((IGB_ITR_DIVIDEND/i) & IGB_QVECTOR_MASK)
#define IGB_LINK_ITR 2000
#define I210_LINK_DELAY 1000