From nobody Sun Oct 06 03:50:58 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 4XLpGq24gwz5YCWw; Sun, 06 Oct 2024 03:50:59 +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 4XLpGp652Kz4GFy; Sun, 6 Oct 2024 03:50:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728186658; 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=w/F+yvI+ir6c9Waqq5BAiL/ODklf9zpyXB4Mtq2wKjI=; b=EZSXawwOUonHlx9x8ANEvOVl0Jxczz7seHspoxbGKfS7i75ISXprMbcO9NYZ2Kw3Eq/ln7 pTq8bHvFbbOu35nSyajGJjR+D8DWoC+eN6lsFTufCuBOXlU5/l38KqdMn/hXFziBgjbyq3 lhxCxkK465jnM6fLHz0kZmAgeL2L6EBe7sqpdriTyddyfvaGMRRpP6npaU3JNDlw/2rpDh sNSY9fXkPjnAIsoYFqF5r2NIFlR2Idtax7vCNh2TCRsHc1HhgFAHQTkngvnqcioovJ3ytU A34e6RZ/aHV+mwUK8B0By/Tmr5oHxkZCCnGDWQEMUNsHs5m8pFYRJhMQc6vYUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728186658; 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=w/F+yvI+ir6c9Waqq5BAiL/ODklf9zpyXB4Mtq2wKjI=; b=hy5zrkZVsqvXAf6jDl3kxfw224hZQBQBwOxsvHTe72moFGyf53pHhLCCa4PyJTZNZV6Ynq jt1WXU6p4t5yeJIYe3SrX3Qc8NJJj0oBmI/95SikvEHT3Wpd8bZOjenl+K56k76sx9YxwQ BnGlgLNqMf8wGfbJV9RQvHTVMmsjmjToc7ZlNm4L5bKVlvt+ucMHPKT0wk5p2vOKRXcyiX qrMis1Tott6FTbx1vROciH1JVjeXsPHVF7mM7roah/X1YtwVMGW8UHMZAtM095YQe7FpAK 5grfI6M8nPnLDWJ3J6cb50xE5Xow/TuhWX3j/p8ONN3bMKRVYnwkFVq2DaG6hg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728186658; a=rsa-sha256; cv=none; b=N33osjO2AyO4m+WzF9zmLpZrbcWwRM8ap7N4M3WqnA0hSwmMQ5DngIOT6lwKOArYB4SQoX WZgrxh65H6aYZqnXXK5dDRlF2loVE6FFAbd8k64VxYi+tLN4SPEUG+ELcV2RQSCKtIE8Za O84VGdKnKl60ySoQrMw2htYnfzDgBKnLdGzkN6CurCw7UI72XOvauXsqEfTLTAB+Gu7J8b 3NELZ8Ne1tquz1JZy8wNY/ZyaGQTcXRSKi8pS084AAb+zeQBdX2REdU21ga0c/Gu8Eabu4 lhJc57A6GVgqEw5ddzeYXob0aI7Vb32hw8gXC5YHxEqxtnfdBtsOwMJQLSx6bQ== 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 4XLpGp5gN2zmKH; Sun, 6 Oct 2024 03:50:58 +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 4963owbN003105; Sun, 6 Oct 2024 03:50:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4963ow4O003102; Sun, 6 Oct 2024 03:50:58 GMT (envelope-from git) Date: Sun, 6 Oct 2024 03:50:58 GMT Message-Id: <202410060350.4963ow4O003102@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: d92efc05a796 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: d92efc05a79678ef60e1cbccf2afeab57871fcb0 Auto-Submitted: auto-generated The branch stable/13 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=d92efc05a79678ef60e1cbccf2afeab57871fcb0 commit d92efc05a79678ef60e1cbccf2afeab57871fcb0 Author: Kevin Bowling AuthorDate: 2024-09-29 04:15:53 +0000 Commit: Kevin Bowling CommitDate: 2024-10-06 03:49:50 +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 4ee0784ba74a..b186f4decdf8 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;