From nobody Fri Sep 27 03:41:47 2024 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 4XFGVM36P2z5XQt2; Fri, 27 Sep 2024 03:41:47 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XFGVM22B5z4sDn; Fri, 27 Sep 2024 03:41:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727408507; 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=533xaT1GmfRLGfYA/Gy6zHYbpC4MwhASnLzI4omhS64=; b=ZyaVYY3AX/H+emyfbFCvWyVpUXMyCb6xAwVNiDybZXRBygaKCw/XrWJNeVtKlUCQw7SBXG gn/AvNAhvtnMwXD9zWcIV8nEEQzJSHwl61Q372V9dcKlgqfZTlGddajX2cylGb2peLHlnu En5g3ufCigxdqI/DwEs3DNI8O7jeqgHAuilzAvqj7lafaX3/K955fDX5uxhe+OaJx4ULUM zLJyelwBi97FQsNKorcNwWlg46PZfjOD6W64Sn0C74XgwGTGe5ShKIu+c6syrE1Bb2z8dF UrDLw7B3/nInoBwDjftLj4tb4gPLMimRP6zDZFxL8SLspCL/5PaJkPCWHdtczA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727408507; 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=533xaT1GmfRLGfYA/Gy6zHYbpC4MwhASnLzI4omhS64=; b=dMKnTHR0+uevoToYNaHr/UuviZQsQsG8TfF2hbm74tAxZlQLyRwSopefDQJ1kEfcKromr5 EvqPWHxBys8HQ6ZJwgba1ld7eJ7N4kLeWV99YGtBbNGG3xaaLBd9LJC8gVjngvRN9FO2dX nZktLKGoXI1FQQRc0dVy9Zc7gFYX5Bd3K0xJE137xlLkZrp8VwTNl0toYHj1EZobiS9WCR 11ldZdgSIN/1FdomSmvij4uNZHdYSsDzUtQPkaCyZQRB5HKeRQqFAQpFSV0QWzr43CUymc ENO2okTzyPiheyOR7NA4ijfeSDfgkzKlF4jp00hqyBsNpWK8a7fymDNggccHPg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727408507; a=rsa-sha256; cv=none; b=rz1ru5LIi99I9p+fG3Uw1iQ4hRFeW8itjGfjQMAxmmB7ZcUjys1fSBIuEEnjqOhGioCVzE b8uGaa6DScpJG8V6TGelir07WhI7wefbqiWC392hsScL1mjaiN5UU1+ZmVhiuNG3bKrie/ Yxd+nwfiJd30k2WWwBhrKuHXx5MCpW3iamTHuE3asOq1nQM+JWdWguakPA8J9+Kjo8kuSD FUkjG0nc6gTka/Grv25Lo1DnDMklpdFy70yogzo6ZHCIXpX6u445uQjy8CbDWd6Uoh97U5 fhwzw1eVLw8DwNTUS7OYLsbjoNHU4z5gseMbU4ArxB0s8ZI+YyVPTbA8Zm6MVg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XFGVM1MfdzPH2; Fri, 27 Sep 2024 03:41:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48R3fl7M055758; Fri, 27 Sep 2024 03:41:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48R3fl5o055755; Fri, 27 Sep 2024 03:41:47 GMT (envelope-from git) Date: Fri, 27 Sep 2024 03:41:47 GMT Message-Id: <202409270341.48R3fl5o055755@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kevin Bowling Subject: git: ed31e4eca057 - stable/13 - ixgbe: fix compilation for VF 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 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/13 X-Git-Reftype: branch X-Git-Commit: ed31e4eca0570b19106f9f0d77010fb2f9b0e8e1 Auto-Submitted: auto-generated The branch stable/13 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=ed31e4eca0570b19106f9f0d77010fb2f9b0e8e1 commit ed31e4eca0570b19106f9f0d77010fb2f9b0e8e1 Author: Doug Moore AuthorDate: 2024-09-20 07:54:48 +0000 Commit: Kevin Bowling CommitDate: 2024-09-27 03:41:08 +0000 ixgbe: fix compilation for VF The mailbox API changed in version 15 and these array ops were left out of the recent code import as applicable to FreeBSD. Reported by: vishwin, yasu Differential Revision: https://reviews.freebsd.org/D46708 (cherry picked from commit 267f223f622fdbf779cc43b5a564bb02e2b59ecd) --- sys/dev/ixgbe/if_sriov.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/dev/ixgbe/if_sriov.c b/sys/dev/ixgbe/if_sriov.c index 794f2e0365f5..b9d8fb2ee2fb 100644 --- a/sys/dev/ixgbe/if_sriov.c +++ b/sys/dev/ixgbe/if_sriov.c @@ -100,7 +100,7 @@ ixgbe_send_vf_msg(struct ixgbe_softc *sc, struct ixgbe_vf *vf, u32 msg) if (vf->flags & IXGBE_VF_CTS) msg |= IXGBE_VT_MSGTYPE_CTS; - sc->hw.mbx.ops.write(&sc->hw, &msg, 1, vf->pool); + sc->hw.mbx.ops[0].write(&sc->hw, &msg, 1, vf->pool); } static inline void @@ -374,7 +374,7 @@ ixgbe_vf_reset_msg(struct ixgbe_softc *sc, struct ixgbe_vf *vf, uint32_t *msg) resp[0] = IXGBE_VF_RESET | ack | IXGBE_VT_MSGTYPE_CTS; bcopy(vf->ether_addr, &resp[1], ETHER_ADDR_LEN); resp[3] = hw->mac.mc_filter_type; - hw->mbx.ops.write(hw, resp, IXGBE_VF_PERMADDR_MSG_LEN, vf->pool); + hw->mbx.ops[0].write(hw, resp, IXGBE_VF_PERMADDR_MSG_LEN, vf->pool); } /* ixgbe_vf_reset_msg */ @@ -565,7 +565,7 @@ ixgbe_vf_get_queues(struct ixgbe_softc *sc, struct ixgbe_vf *vf, uint32_t *msg) resp[IXGBE_VF_TRANS_VLAN] = (vf->default_vlan != 0); resp[IXGBE_VF_DEF_QUEUE] = 0; - hw->mbx.ops.write(hw, resp, IXGBE_VF_GET_QUEUES_RESP_LEN, vf->pool); + hw->mbx.ops[0].write(hw, resp, IXGBE_VF_GET_QUEUES_RESP_LEN, vf->pool); } /* ixgbe_vf_get_queues */ @@ -582,7 +582,7 @@ ixgbe_process_vf_msg(if_ctx_t ctx, struct ixgbe_vf *vf) hw = &sc->hw; - error = hw->mbx.ops.read(hw, msg, IXGBE_VFMAILBOX_SIZE, vf->pool); + error = hw->mbx.ops[0].read(hw, msg, IXGBE_VFMAILBOX_SIZE, vf->pool); if (error != 0) return; @@ -643,13 +643,13 @@ ixgbe_handle_mbx(void *context) vf = &sc->vfs[i]; if (vf->flags & IXGBE_VF_ACTIVE) { - if (hw->mbx.ops.check_for_rst(hw, vf->pool) == 0) + if (hw->mbx.ops[0].check_for_rst(hw, vf->pool) == 0) ixgbe_process_vf_reset(sc, vf); - if (hw->mbx.ops.check_for_msg(hw, vf->pool) == 0) + if (hw->mbx.ops[0].check_for_msg(hw, vf->pool) == 0) ixgbe_process_vf_msg(ctx, vf); - if (hw->mbx.ops.check_for_ack(hw, vf->pool) == 0) + if (hw->mbx.ops[0].check_for_ack(hw, vf->pool) == 0) ixgbe_process_vf_ack(sc, vf); } }