projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a70d833
)
vDPA/ifcvf: ifcvf_request_irq works on ifcvf_hw
author
Zhu Lingshan
<lingshan.zhu@intel.com>
Fri, 25 Nov 2022 14:57:20 +0000
(22:57 +0800)
committer
Michael S. Tsirkin
<mst@redhat.com>
Tue, 21 Feb 2023 00:26:55 +0000
(19:26 -0500)
All ifcvf_request_irq's callees are refactored
to work on ifcvf_hw, so it should be decoupled
from the adapter as well
Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com>
Cc: stable@vger.kernel.org
Message-Id: <
20221125145724
.
1129962
-9-lingshan.zhu@intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/ifcvf/ifcvf_main.c
patch
|
blob
|
history
diff --git
a/drivers/vdpa/ifcvf/ifcvf_main.c
b/drivers/vdpa/ifcvf/ifcvf_main.c
index 6fcc412b46de419bfd52c8677139fc0e5fc34e08..a09a1c26b7142865ed9ee3eb4a44bd996906bb9e 100644
(file)
--- a/
drivers/vdpa/ifcvf/ifcvf_main.c
+++ b/
drivers/vdpa/ifcvf/ifcvf_main.c
@@
-314,9
+314,8
@@
err:
return -EFAULT;
}
-static int ifcvf_request_irq(struct ifcvf_
adapter *adapter
)
+static int ifcvf_request_irq(struct ifcvf_
hw *vf
)
{
- struct ifcvf_hw *vf = &adapter->vf;
int nvectors, ret, max_intr;
nvectors = ifcvf_alloc_vectors(vf);
@@
-468,7
+467,7
@@
static void ifcvf_vdpa_set_status(struct vdpa_device *vdpa_dev, u8 status)
if ((status & VIRTIO_CONFIG_S_DRIVER_OK) &&
!(status_old & VIRTIO_CONFIG_S_DRIVER_OK)) {
- ret = ifcvf_request_irq(
adapter
);
+ ret = ifcvf_request_irq(
vf
);
if (ret) {
status = ifcvf_get_status(vf);
status |= VIRTIO_CONFIG_S_FAILED;