summaryrefslogtreecommitdiff
path: root/drivers/vdpa/solidrun/Makefile
diff options
context:
space:
mode:
authorAlvaro Karsz <alvaro.karsz@solid-run.com>2023-04-13 10:33:36 +0300
committerMichael S. Tsirkin <mst@redhat.com>2023-04-21 10:02:34 +0300
commit3f3a1675b731e532d479e65570f2904878fbd9f0 (patch)
treedd7dd4b655fec3796f995cec54a7a2e0f7de39d4 /drivers/vdpa/solidrun/Makefile
parent4a536d881a661c7ff7d241c537ee511106d88163 (diff)
downloadlinux-3f3a1675b731e532d479e65570f2904878fbd9f0.tar.xz
vdpa/snet: support getting and setting VQ state
This patch adds the get_vq_state and set_vq_state vDPA callbacks. In order to get the VQ state, the state needs to be read from the DPU. In order to allow that, the old messaging mechanism is replaced with a new, flexible control mechanism. This mechanism allows to read data from the DPU. The mechanism can be used if the negotiated config version is 2 or higher. If the new mechanism is used when the config version is 1, it will call snet_send_ctrl_msg_old, which is config 1 compatible. Signed-off-by: Alvaro Karsz <alvaro.karsz@solid-run.com> Message-Id: <20230413073337.31367-2-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/Makefile')
-rw-r--r--drivers/vdpa/solidrun/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vdpa/solidrun/Makefile b/drivers/vdpa/solidrun/Makefile
index c0aa3415bf7b..9116252cd5fa 100644
--- a/drivers/vdpa/solidrun/Makefile
+++ b/drivers/vdpa/solidrun/Makefile
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_SNET_VDPA) += snet_vdpa.o
snet_vdpa-$(CONFIG_SNET_VDPA) += snet_main.o
+snet_vdpa-$(CONFIG_SNET_VDPA) += snet_ctrl.o
ifdef CONFIG_HWMON
snet_vdpa-$(CONFIG_SNET_VDPA) += snet_hwmon.o
endif