summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormsaitoh <msaitoh@NetBSD.org>2021-12-10 11:21:44 +0000
committermsaitoh <msaitoh@NetBSD.org>2021-12-10 11:21:44 +0000
commit1deca7c13eb2461ea70a41b7403f3275dea07d4d (patch)
treecdbd1feb1ce614959db7b3531ce5dcce1a324522 /sys/dev
parent038b08a8be6cf992108aa7a7dc6674e74e436e25 (diff)
Change argument. No functional change. This file is not used in NetBSD.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/ixgbe/if_sriov.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/pci/ixgbe/if_sriov.c b/sys/dev/pci/ixgbe/if_sriov.c
index 05af3b3bbc2..3f032a96278 100644
--- a/sys/dev/pci/ixgbe/if_sriov.c
+++ b/sys/dev/pci/ixgbe/if_sriov.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_sriov.c,v 1.12 2021/12/10 11:18:30 msaitoh Exp $ */
+/* $NetBSD: if_sriov.c,v 1.13 2021/12/10 11:21:44 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.12 2021/12/10 11:18:30 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_sriov.c,v 1.13 2021/12/10 11:21:44 msaitoh Exp $");
#include "ixgbe.h"
#include "ixgbe_sriov.h"
@@ -255,8 +255,9 @@ ixgbe_vf_set_default_vlan(struct adapter *adapter, struct ixgbe_vf *vf,
static void
-ixgbe_clear_vfmbmem(struct ixgbe_hw *hw, struct ixgbe_vf *vf)
+ixgbe_clear_vfmbmem(struct adapter *adapter, struct ixgbe_vf *vf)
{
+ struct ixgbe_hw *hw = &adapter->hw;
uint32_t vf_index = IXGBE_VF_INDEX(vf->pool);
uint16_t mbx_size = hw->mbx.size;
uint16_t i;
@@ -323,7 +324,7 @@ ixgbe_process_vf_reset(struct adapter *adapter, struct ixgbe_vf *vf)
// XXX clear multicast addresses
ixgbe_clear_rar(&adapter->hw, vf->rar_index);
- ixgbe_clear_vfmbmem(&adapter->hw, vf);
+ ixgbe_clear_vfmbmem(adapter, vf);
ixgbe_toggle_txdctl(&adapter->hw, IXGBE_VF_INDEX(vf->pool));
vf->api_ver = IXGBE_API_VER_UNKNOWN;