From nobody Tue Aug 11 21:00:06 2026 X-Original-To: dev-commits-src-main@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 4hKPCB6t87z6X1K6 for ; Tue, 11 Aug 2026 21:00:06 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hKPCB3GvBz4BsV for ; Tue, 11 Aug 2026 21:00:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786482006; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KKXj2wn2WRpf1Y0Cp7IxRKpVFDjMC4c1xZp+UDh+DD8=; b=CEChEBAnVI0m1R836DWlmDCRW7oBFvbW+y0Drr6vT+U0diIOFpplRjhqy3mC/1iz2LE3Et I7RfNxJmOmRZYZAUZKYCah0yq5mu15prFiTPt2ulcOwmkSwYgxHdK4ZuPOf8gGDbrRNZWW pWjWj2/iaNUpmss7/6wCYntjmVSpv8rCCf+1R2FOjHln0X/6EF56P3KBFnGGOSpOqjjE0p FHqPAzbAqZRjS9B4B1/5i5IKKvqhFG7FLZQJ+cG+dvJi6GHdPhHnY+DC+8MRYAs+9sSh6X LYJ6bo3R/Ier7eSioNiat/rzlvnL7Ek+J7vTrmCYVrA7vt/x+wqecpNXUmXO/A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1786482006; a=rsa-sha256; cv=none; b=nX88qoiJAw8OocMw/XHRbWkA/OZ7RHTW42XW3ZNYPe+bBkqxmtSym4YFY0gsus/kNsPBvA osZ20yilVFxZu//Q2lxot4a4TJgCRTgw91LvmoPVcjArTqALd5iPsvZqFrGeRdJLHzuBVv N4QUNjbCiEaRorU0maqAAJfAl+zr+QBYBAhruAS64h8mo3Ghj+YobUjkzfJ2/eSB0nz6Ze MglFLyh1V635Bghvk7qBtu46CBAACxy8dDpaX+hfUn2JIvtdcS00fdx9U5wX5T0PvkBEFc +0YVgHd92UewpAP2QPOh2PDLfym2EK5934//jGnfNm0MR5iPqdAtTs1jO8owww== 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=1786482006; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KKXj2wn2WRpf1Y0Cp7IxRKpVFDjMC4c1xZp+UDh+DD8=; b=Cak1NQU5VTlHUoZbsE4DPYSryZoDX8Nu+Ju+PrXNIQ5ZEF3ObDhkKKDNDiuvdCxpmGTZYp KU077lxm5VEmfBXomhnqpz74eV3gCc130YfBMCy/xYV7Jsi940IOonecayOHTNXHO+nF+o XZQ3YI87VlwoZfefU0y3ImlCSReeDeKxF/wKqN63XbQcNvwYrkPU/Udj1+UN4dWmtBC96t Y5KbyKKjDG+ZqtrdPikbgSoBG7EorIZ1Ycwiwz5Rze+PmOjMY6lIOI1+QCZw3GFFpW0o16 rW73fjvxtn74KsBaLMtGvagw6Rb1pXrf8ZFtOi42ZFkddzdYYMN3Qa1mxpyLTg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hKPCB1vJ2z19mM for ; Tue, 11 Aug 2026 21:00:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 370b6 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 11 Aug 2026 21:00:06 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: baa6e3af8525 - main - ixgbe: Avoid a signed shift while assembling the PBA number List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: baa6e3af8525244e65a404fa13306fbca7feae9c Auto-Submitted: auto-generated Date: Tue, 11 Aug 2026 21:00:06 +0000 Message-Id: <6a7b8d56.370b6.169d81ee@gitrepo.freebsd.org> The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=baa6e3af8525244e65a404fa13306fbca7feae9c commit baa6e3af8525244e65a404fa13306fbca7feae9c Author: Kevin Bowling AuthorDate: 2026-08-11 19:34:40 +0000 Commit: Kevin Bowling CommitDate: 2026-08-11 20:59:33 +0000 ixgbe: Avoid a signed shift while assembling the PBA number The EEPROM word is promoted to signed int before the left shift when the cast is applied to the complete expression. Cast the word first so all 16-bit values are shifted as unsigned data. This is the ixgbe counterpart of the e1000 correction imported from DPDK commit b932270c66. MFC after: 2 weeks --- sys/dev/ixgbe/ixgbe_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ixgbe/ixgbe_common.c b/sys/dev/ixgbe/ixgbe_common.c index 458452a8492e..2b9bd2da403c 100644 --- a/sys/dev/ixgbe/ixgbe_common.c +++ b/sys/dev/ixgbe/ixgbe_common.c @@ -770,7 +770,7 @@ s32 ixgbe_read_pba_num_generic(struct ixgbe_hw *hw, u32 *pba_num) DEBUGOUT("NVM Not supported\n"); return IXGBE_NOT_IMPLEMENTED; } - *pba_num = (u32)(data << 16); + *pba_num = (u32)data << 16; ret_val = hw->eeprom.ops.read(hw, IXGBE_PBANUM1_PTR, &data); if (ret_val) {