git: 1e3b1870ad2a - main - ixgbe: Switch if_sriov read/write back to ixgbe_mbx APIs
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 29 Sep 2024 04:18:49 UTC
The branch main has been updated by kbowling:
URL: https://cgit.FreeBSD.org/src/commit/?id=1e3b1870ad2a426de6e3f5445211b698f20f7f1f
commit 1e3b1870ad2a426de6e3f5445211b698f20f7f1f
Author: Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2024-09-29 04:15:53 +0000
Commit: Kevin Bowling <kbowling@FreeBSD.org>
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;