The branch stable/14 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=025c27c0b3a7f6b04a801ce46d7b2061926c3fbf
commit 025c27c0b3a7f6b04a801ce46d7b2061926c3fbf Author: Kevin Bowling <[email protected]> AuthorDate: 2026-08-11 19:36:20 +0000 Commit: Kevin Bowling <[email protected]> CommitDate: 2026-08-25 00:41:38 +0000 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. (cherry picked from commit 392fbdcf2232f12cb973d00ae931740c72d970c6) --- sys/dev/e1000/e1000_82571.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;
