summaryrefslogtreecommitdiff
path: root/drivers/vdpa/solidrun/snet_vdpa.h
diff options
context:
space:
mode:
authorAlvaro Karsz <alvaro.karsz@solid-run.com>2023-04-13 10:33:37 +0300
committerMichael S. Tsirkin <mst@redhat.com>2023-04-21 10:02:34 +0300
commit3616bf377a5a8ef4f124dfde5f3522c4da335561 (patch)
tree4a2238e232b5bf36dbba7c0b634519a13755acf9 /drivers/vdpa/solidrun/snet_vdpa.h
parent3f3a1675b731e532d479e65570f2904878fbd9f0 (diff)
downloadlinux-3616bf377a5a8ef4f124dfde5f3522c4da335561.tar.xz
vdpa/snet: support the suspend vDPA callback
When suspend is called, the driver sends a suspend command to the DPU through the control mechanism. Signed-off-by: Alvaro Karsz <alvaro.karsz@solid-run.com> Message-Id: <20230413073337.31367-3-alvaro.karsz@solid-run.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'drivers/vdpa/solidrun/snet_vdpa.h')
-rw-r--r--drivers/vdpa/solidrun/snet_vdpa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vdpa/solidrun/snet_vdpa.h b/drivers/vdpa/solidrun/snet_vdpa.h
index 09ff676e7a2d..3c78d4e7d485 100644
--- a/drivers/vdpa/solidrun/snet_vdpa.h
+++ b/drivers/vdpa/solidrun/snet_vdpa.h
@@ -203,5 +203,6 @@ void psnet_create_hwmon(struct pci_dev *pdev);
void snet_ctrl_clear(struct snet *snet);
int snet_destroy_dev(struct snet *snet);
int snet_read_vq_state(struct snet *snet, u16 idx, struct vdpa_vq_state *state);
+int snet_suspend_dev(struct snet *snet);
#endif //_SNET_VDPA_H_