From nobody Sun Sep 29 04:18:49 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 4XGWDB0162z5YHhL; Sun, 29 Sep 2024 04:18:50 +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 4XGWD96Gszz4fV0; Sun, 29 Sep 2024 04:18:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727583529; 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=Ezzd0BwcdiI3an3lX4izR9jV2lSef9JH0YKLlWCAFSs=; b=FRStN65o1FcqkhEiTWzuI+CE9x0Wvk5sAySULQjo2zhSlhbDdHWNCJb+z0Gb1PivrtTtJb YBi4VTtTRCxESUI+iYGsNysO9wlgkaFrJfoi+0Ku26DhHROb9zr42DH2B61I0e8hJiqea2 YYG+W9CnAZiZzny+yVEI9At5ImGWpjO2g9+5SvQ0UmMBEPYoOKiWCYZ3oQfILPYDpqwlWj Eksk+lyrqgKg+xiy3989J0Gjauuiegng/TOr3dfpGXc4qlDd7hyIK0NzoWoQQ+RhVwsllu Ng/JhW8kRFtMYOcNfDn+ZWGrnhnP+sO3J1xyZHDRgAx1a7OJvQM9syHt2y7w2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727583529; 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=Ezzd0BwcdiI3an3lX4izR9jV2lSef9JH0YKLlWCAFSs=; b=uKaWXb9ZaXoLl+Upj3WV8NI7IFP9wHRV2C0TO0OBo7RLQd5UDHxENAPr7m+f6gPNr9UfNI R9ri+U2Jd6pyFmrsXvtD1wSlEDZ2H3+5kdjQ9Y0/ztWJVysC+HwS/eLkn+M4Tt8MJ5wWpt 5xXaMDP9DTvqna1/AyHnYKyMUBx/7Qe5Zr4dQPBmJO5Lig8oInkePObvOxGWeYgtPr9AVv D5Yndh4mZcTazXLHEac8Mic+M/OtrgemEqAcikzBRnygr74c2S5aPHbW94+qFxpJyxMC5O sf0SZYmJyIvpXreEHeVvebMezoZf1RL6tFnvplH4dHAzoCuXBra25nebuoNZZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727583529; a=rsa-sha256; cv=none; b=NMrAcQIicQcQLVCsyYmFEzqEGL37avSUBaI6M31zkcpeCR6VcOKJE77cVXkzWDE3F51ztA 5lHL4uppWy1IZMU6cwnBpUevn1cMn0eubvy+0QiDEey42ir/rpMnUEgxgiArC1Ble2gTtk gscf4LqnmMqHMzbXuwKSq4gZb4AkoESHbZveHnbb+RhoBs63GiM+nxQZPTkoEMA69hJBML RinGCphpAx1IGASd2gUyI2BqN4kjz+D0A1ON6147W+kKljCyKmY7htii0Y9HvkBaBJmt1o UN9a8HvKiJxUhQ3JSmrmuD6l2KyH1H+MobJ4O/b+FQZSe4cDuyzMbuwaEkMQIw== 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 4XGWD95t9JztNB; Sun, 29 Sep 2024 04:18:49 +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 48T4InLA097752; Sun, 29 Sep 2024 04:18:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48T4InjK097749; Sun, 29 Sep 2024 04:18:49 GMT (envelope-from git) Date: Sun, 29 Sep 2024 04:18:49 GMT Message-Id: <202409290418.48T4InjK097749@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: 1e3b1870ad2a - main - 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/main X-Git-Reftype: branch X-Git-Commit: 1e3b1870ad2a426de6e3f5445211b698f20f7f1f Auto-Submitted: auto-generated The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=1e3b1870ad2a426de6e3f5445211b698f20f7f1f commit 1e3b1870ad2a426de6e3f5445211b698f20f7f1f Author: Kevin Bowling AuthorDate: 2024-09-29 04:15:53 +0000 Commit: Kevin Bowling CommitDate: 2024-09-29 04:17:21 +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. MFC after: 1 week --- 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;