git: 07deb662c395 - stable/15 - e1000: Avoid a signed manageability VLAN bitmap shift

From: Kevin Bowling <kbowling_at_FreeBSD.org>
Date: Tue, 25 Aug 2026 00:31:48 UTC
The branch stable/15 has been updated by kbowling:

URL: https://cgit.FreeBSD.org/src/commit/?id=07deb662c395e99412b5bb034956b2f529aae6c1

commit 07deb662c395e99412b5bb034956b2f529aae6c1
Author:     Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2026-08-11 19:36:20 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2026-08-25 00:29:59 +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;