aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Bowling <kbowling@FreeBSD.org>2026-08-11 19:36:20 +0000
committerKevin Bowling <kbowling@FreeBSD.org>2026-08-11 20:59:33 +0000
commit392fbdcf2232f12cb973d00ae931740c72d970c6 (patch)
treed6f7a3ab8a02cb68fa7cf80edaaa3ff28316dc11
parentbf6feffef6c16559333048859b24547acea3dba5 (diff)
e1000: Avoid a signed manageability VLAN bitmap shift
A manageability VLAN can select bit 31 of its VFTA register. Use an unsigned value when constructing the register mask. MFC after: 2 weeks
-rw-r--r--sys/dev/e1000/e1000_82571.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/e1000/e1000_82571.c b/sys/dev/e1000/e1000_82571.c
index 3621f35a819c..fa010075f367 100644
--- a/sys/dev/e1000/e1000_82571.c
+++ b/sys/dev/e1000/e1000_82571.c
@@ -1363,7 +1363,7 @@ static void e1000_clear_vfta_82571(struct e1000_hw *hw)
E1000_VFTA_ENTRY_SHIFT) &
E1000_VFTA_ENTRY_MASK;
vfta_bit_in_reg =
- 1 << (hw->mng_cookie.vlan_id &
+ 1U << (hw->mng_cookie.vlan_id &
E1000_VFTA_ENTRY_BIT_SHIFT_MASK);
}
break;