From nobody Tue Aug 25 00:31:34 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hTTHC37Vwz6pMqY for ; Tue, 25 Aug 2026 00:31:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hTTHB6MZXz49Cx for ; Tue, 25 Aug 2026 00:31:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787617894; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pP+8gCZzHyd4kvZ+CZsIPQ1ZK9jnWf182OKiDFIBjC4=; b=pnWOC7fOLVnFZWnJusjby1oRiUtUPJwE4nMmt+BNIyx6myw4Y57rOLvDoWlKJzJi6ogY55 ZndQs1qWq2tSRK00039GmJ16OESCOr1zULq+F5RJrsAgV5DtBUC9GuH5e4VeVF4elaraaU 2TWsQ0lryvn+JB3jedIPzfLPI1RFB7R69vYwlgaDTSeOaZJ+vIRgs8pFfCep/Tl6UTnIOD xO0W4gRPzuiZcLgQvuz0DcaJPH+E1sbkse77EVjLovyZ17w+7AVmT+G5MGsLgM5Xg5jviZ 4WVO8WAXmNUAsAFD/+1go7txaPVFYVU0U7ldQkrfHqXwcvFJ3430zHLRfMdzKQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1787617894; a=rsa-sha256; cv=none; b=oypmsZrOrUkGAtj7rl+Ijacwka+PJfHw/GTTymeVxCfJDvO4hvj9TmxyLeLyCNp0HF+BoE 41eWF9upBlEcNijFEkfgsWp9J8VemfrKqc4FPYpVWOc06uqXsbFWieFjQULyQnzrJBEDCh rhrHs0/sCRMnRbwR3M3p3VJ2LLNbPy4XGAj07kBF/5ibpZFFUzSKHfpvZhXqOVI35Mxq+Y YHyAl5rmtql+NgVV2qEPKBJs2A+/u3O0OtsSRd9tdUCn3WCm/tSd6dOxFaITZlxABx4XJY 6t3tjD3ec5eEMWO27oiRQCdDvs4ARW2ezu3aRspVN6fwF+2O0q0v+incc9tR1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787617894; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pP+8gCZzHyd4kvZ+CZsIPQ1ZK9jnWf182OKiDFIBjC4=; b=N/l6+UtMSS/px4crBlOX64VLtYnSpk6c1hyqOdNQxBKbwVZQx3NBfU7ouVqct9rpQXo0op cWuPLNrTUvGFogGIHTIOT2u42zQiPQygC+X8AWUnQXl8zfqxgxHNWCRQFdnQev2JmqrJSf YQpp+qpJBUV3Cqg+t0BiSsvyrMgjb0b2RQic92p3UNhO0mqm5UDxd6mjOH2/G0oVVm9b2Z K12I6JuBoVuAlma/+/Rfc90L1FRGSYqEHwkVoDIW4Q8k/uILFZvZve2PoGaB6xp/083jsJ GNxBVlsFKPvL9YtOrbi+6Wc87Ah8ASYJBQvUHtAQgQ6/bWUxjr0k6tnTAJUY0A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hTTHB4rMZzCVj for ; Tue, 25 Aug 2026 00:31:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3dc6f by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 25 Aug 2026 00:31:34 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Barbara Skobiej From: Kevin Bowling Subject: git: 4b1469832d8b - stable/15 - e1000: fix data type in MAC hash List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 4b1469832d8ba3d2d6b47be4c543e41610c6322d Auto-Submitted: auto-generated Date: Tue, 25 Aug 2026 00:31:34 +0000 Message-Id: <6a8ce266.3dc6f.40cffaaf@gitrepo.freebsd.org> The branch stable/15 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=4b1469832d8ba3d2d6b47be4c543e41610c6322d commit 4b1469832d8ba3d2d6b47be4c543e41610c6322d Author: Barbara Skobiej AuthorDate: 2025-02-06 16:08:41 +0000 Commit: Kevin Bowling CommitDate: 2026-08-25 00:27:15 +0000 e1000: fix data type in MAC hash DPDK commit message net/e1000/base: fix data type in MAC hash One of the bit shifts in MAC hash calculation triggers a static analysis warning about a potential overflow. Fix the data type to avoid this. Fixes: af75078fece3 ("first public release") Cc: stable@dpdk.org Signed-off-by: Barbara Skobiej Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson Obtained from: DPDK (458734aaac) (cherry picked from commit a09034d561cbb3792ecc0146b41d4794ab3bda37) --- sys/dev/e1000/e1000_mac.c | 6 ++++-- sys/dev/e1000/e1000_vf.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sys/dev/e1000/e1000_mac.c b/sys/dev/e1000/e1000_mac.c index a34e2c873a0e..eb2c29d153dc 100644 --- a/sys/dev/e1000/e1000_mac.c +++ b/sys/dev/e1000/e1000_mac.c @@ -576,8 +576,10 @@ u32 e1000_hash_mc_addr_generic(struct e1000_hw *hw, u8 *mc_addr) break; } - hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | - (((u16) mc_addr[5]) << bit_shift))); + hash_value = (u32)mc_addr[4]; + hash_value >>= 8 - bit_shift; + hash_value |= (u32)mc_addr[5] << bit_shift; + hash_value &= hash_mask; return hash_value; } diff --git a/sys/dev/e1000/e1000_vf.c b/sys/dev/e1000/e1000_vf.c index 89ce0181faef..5b19375e6034 100644 --- a/sys/dev/e1000/e1000_vf.c +++ b/sys/dev/e1000/e1000_vf.c @@ -371,8 +371,10 @@ static u32 e1000_hash_mc_addr_vf(struct e1000_hw *hw, u8 *mc_addr) while (bit_shift < 4 && hash_mask >> bit_shift != 0xFF) bit_shift++; - hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | - (((u16) mc_addr[5]) << bit_shift))); + hash_value = (u32)mc_addr[4]; + hash_value >>= 8 - bit_shift; + hash_value |= (u32)mc_addr[5] << bit_shift; + hash_value &= hash_mask; return hash_value; }