Module Name: src Committed By: msaitoh Date: Fri Dec 24 05:01:00 UTC 2021
Modified Files: src/sys/dev/pci/ixgbe: if_sriov.c Log Message: Change the first argument of ixgbe_send_vf_msg(). No functional change. - This is a part of FreeBSD ix-3.2.17. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/dev/pci/ixgbe/if_sriov.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/ixgbe/if_sriov.c diff -u src/sys/dev/pci/ixgbe/if_sriov.c:1.15 src/sys/dev/pci/ixgbe/if_sriov.c:1.16 --- src/sys/dev/pci/ixgbe/if_sriov.c:1.15 Fri Dec 24 04:59:23 2021 +++ src/sys/dev/pci/ixgbe/if_sriov.c Fri Dec 24 05:01:00 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: if_sriov.c,v 1.15 2021/12/24 04:59:23 msaitoh Exp $ */ +/* $NetBSD: if_sriov.c,v 1.16 2021/12/24 05:01:00 msaitoh Exp $ */ /****************************************************************************** Copyright (c) 2001-2017, Intel Corporation @@ -34,7 +34,7 @@ /*$FreeBSD: head/sys/dev/ixgbe/if_sriov.c 327031 2017-12-20 18:15:06Z erj $*/ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_sriov.c,v 1.15 2021/12/24 04:59:23 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_sriov.c,v 1.16 2021/12/24 05:01:00 msaitoh Exp $"); #include "ixgbe.h" #include "ixgbe_sriov.h" @@ -94,26 +94,26 @@ ixgbe_align_all_queue_indices(struct ada /* Support functions for SR-IOV/VF management */ static inline void -ixgbe_send_vf_msg(struct adapter *adapter, struct ixgbe_vf *vf, u32 msg) +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; - adapter->hw.mbx.ops.write(&adapter->hw, &msg, 1, vf->pool); + hw->mbx.ops.write(hw, &msg, 1, vf->pool); } static inline void ixgbe_send_vf_ack(struct adapter *adapter, struct ixgbe_vf *vf, u32 msg) { msg &= IXGBE_VT_MSG_MASK; - ixgbe_send_vf_msg(adapter, vf, msg | IXGBE_VT_MSGTYPE_SUCCESS); + ixgbe_send_vf_msg(&adapter->hw, vf, msg | IXGBE_VT_MSGTYPE_SUCCESS); } static inline void ixgbe_send_vf_nack(struct adapter *adapter, struct ixgbe_vf *vf, u32 msg) { msg &= IXGBE_VT_MSG_MASK; - ixgbe_send_vf_msg(adapter, vf, msg | IXGBE_VT_MSGTYPE_FAILURE); + ixgbe_send_vf_msg(&adapter->hw, vf, msg | IXGBE_VT_MSGTYPE_FAILURE); } static inline void @@ -209,7 +209,7 @@ ixgbe_ping_all_vfs(struct adapter *adapt for (int i = 0; i < adapter->num_vfs; i++) { vf = &adapter->vfs[i]; if (vf->flags & IXGBE_VF_ACTIVE) - ixgbe_send_vf_msg(adapter, vf, IXGBE_PF_CONTROL_MSG); + ixgbe_send_vf_msg(&adapter->hw, vf, IXGBE_PF_CONTROL_MSG); } } /* ixgbe_ping_all_vfs */ @@ -797,7 +797,7 @@ ixgbe_init_vf(struct adapter *adapter, s ixgbe_vf_enable_transmit(adapter, vf); ixgbe_vf_enable_receive(adapter, vf); - ixgbe_send_vf_msg(adapter, vf, IXGBE_PF_CONTROL_MSG); + ixgbe_send_vf_msg(&adapter->hw, vf, IXGBE_PF_CONTROL_MSG); } /* ixgbe_init_vf */ void