From nobody Sun Oct 06 03:49:23 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 4XLpF01FBhz5YCGX; Sun, 06 Oct 2024 03:49:24 +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 4XLpF00Vmqz4FT2; Sun, 6 Oct 2024 03:49:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728186564; 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=vCwTavNGVBdwcH1lPCCkxsKs8Li089NvR/FJKY07JRU=; b=cv0bsBaez2kT7TF4KG2S7KkvufOh0iuo0uQObQGXtOMvHRQUX6FydPQcvlsH719i0X4CoD WU46dyykdQEQ6BkhRZKL+hlJW08J7ddUxpd3h9+dKkihU85XueqvlqfeddausMMpEdpvMw eYORvy8IBBhXDMq698nOx9wSY16LygiHoynqUp6TA58Za9bJ7nN5rAy35Tw71MIxE0e98S 2Go+NyyM9nHy6KYrS8jNGwBQGF+OnVsSt8Pp+mKgeuYuMvEZ6qBCJAZxSIprCrmHO1cHyp AG9NXZKbhXwqUj5lA431yDdCrKl41p5zhMa6awMPgyk6GRn6acB+UjVg7z/Olw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728186564; 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=vCwTavNGVBdwcH1lPCCkxsKs8Li089NvR/FJKY07JRU=; b=suCAF5thfQP8BSIk9LBkryC5nOMwnalK3QA17OfSpAshMhjpNtiDOfArsQOpZ1i3FGsAOG YQEmc3ojK6qSHn7I1mFr55B3VlJsw6qFFZXd1IHUS4ndzFw8vuH9vyvo1dXoYHTcOLBrFg Wixzm+V+CWuyCTchFyd3cBmpd0ZNZucEhM2vSfqFmHN226GaFCLKO1v+F1QUBcf2McyxLo Tjnnln9PUblQ4bXcAjkD/6C5V1pbYTZVQSOSl7yszpCInGmZrKLY1EUgBpM56aMyXfQ4tN AaN5SwU3sHEjl+YslvoQFtMuDAZLNiWNwvDFwsZZ1hDBBsIg40Rez3JkraFOLw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728186564; a=rsa-sha256; cv=none; b=duCw1RUyxQR2eZ7HFWMB/874B3r7QJrAMNlh5up8JwDwdRHKwtkEPhba901LNWcW8fixxz IrB/IJjmIvaZmj6dsWBVKN1OUi7TdAsUE4UtdZTdToVHUUUNhZipVITQmyR9CqJAHBMRda BdjObdYpl9Dxif83UrCoyiMW0XgOW+hc6zpdeoTELtaH74DmLVOYJoSgUwTtV3yB1ZGxBY eWkNwlPD0yD28TYU2BtTC1dXFE1j0TFC3uSQDha/QSo+Ac5ntOWrQdJPkBc5Qkm2pcOozo 07hvc+jeEp+xbqlMiAM8FS6OqbEzTMT7UsVHDRUG5aHHNBut/8NHhTA/IvQlhg== 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 4XLpF005xkzmMl; Sun, 6 Oct 2024 03:49:24 +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 4963nNTu091853; Sun, 6 Oct 2024 03:49:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4963nNcE091850; Sun, 6 Oct 2024 03:49:23 GMT (envelope-from git) Date: Sun, 6 Oct 2024 03:49:23 GMT Message-Id: <202410060349.4963nNcE091850@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: 941833b9bb8a - stable/14 - ixgbe: Switch if_sriov read/write back to ixgbe_mbx APIs 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/14 X-Git-Reftype: branch X-Git-Commit: 941833b9bb8a3ab063189e02eed6860bfabd5f73 Auto-Submitted: auto-generated The branch stable/14 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=941833b9bb8a3ab063189e02eed6860bfabd5f73 commit 941833b9bb8a3ab063189e02eed6860bfabd5f73 Author: Kevin Bowling AuthorDate: 2024-09-29 04:15:53 +0000 Commit: Kevin Bowling CommitDate: 2024-10-06 03:48:42 +0000 ixgbe: Switch if_sriov read/write back to ixgbe_mbx APIs These are more succinct than jumping through the function pointers directly and add some additional error handling. (cherry picked from commit 1e3b1870ad2a426de6e3f5445211b698f20f7f1f) --- sys/dev/ixgbe/if_sriov.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/dev/ixgbe/if_sriov.c b/sys/dev/ixgbe/if_sriov.c index 6a2dad4bca42..0916ae1ac7cc 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_hw *hw, struct ixgbe_vf *vf, u32 msg) if (vf->flags & IXGBE_VF_CTS) msg |= IXGBE_VT_MSGTYPE_CTS; - hw->mbx.ops[vf->pool].write(hw, &msg, 1, vf->pool); + ixgbe_write_mbx(hw, &msg, 1, vf->pool); } static inline void @@ -595,8 +595,7 @@ ixgbe_process_vf_msg(if_ctx_t ctx, struct ixgbe_vf *vf) hw = &sc->hw; - error = hw->mbx.ops[vf->pool].read(hw, msg, IXGBE_VFMAILBOX_SIZE, - vf->pool); + error = ixgbe_read_mbx(hw, msg, IXGBE_VFMAILBOX_SIZE, vf->pool); if (error != 0) return;