git: 941833b9bb8a - stable/14 - ixgbe: Switch if_sriov read/write back to ixgbe_mbx APIs

From: Kevin Bowling <kbowling_at_FreeBSD.org>
Date: Sun, 06 Oct 2024 03:49:23 UTC
The branch stable/14 has been updated by kbowling:

URL: https://cgit.FreeBSD.org/src/commit/?id=941833b9bb8a3ab063189e02eed6860bfabd5f73

commit 941833b9bb8a3ab063189e02eed6860bfabd5f73
Author:     Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2024-09-29 04:15:53 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
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;