Re: [RFC PATCH net-next 17/19] pds_vdpa: add vdpa config client commands
From: Jason Wang <jasowang@redhat.com>
Date: 2022-11-22 06:33:58
Also in:
virtualization
From: Jason Wang <jasowang@redhat.com>
Date: 2022-11-22 06:33:58
Also in:
virtualization
On Sat, Nov 19, 2022 at 6:57 AM Shannon Nelson [off-list ref] wrote:
These are the adminq commands that will be needed for setting up and using the vDPA device. Signed-off-by: Shannon Nelson <redacted> --- drivers/vdpa/pds/Makefile | 1 + drivers/vdpa/pds/cmds.c | 266 ++++++++++++++++++++++++++++++++++++ drivers/vdpa/pds/cmds.h | 17 +++ drivers/vdpa/pds/vdpa_dev.h | 60 ++++++++ 4 files changed, 344 insertions(+) create mode 100644 drivers/vdpa/pds/cmds.c create mode 100644 drivers/vdpa/pds/cmds.h create mode 100644 drivers/vdpa/pds/vdpa_dev.h
[...]
+struct pds_vdpa_device {
+ struct vdpa_device vdpa_dev;
+ struct pds_vdpa_aux *vdpa_aux;
+ struct pds_vdpa_hw hw;
+
+ struct virtio_net_config vn_config;
+ dma_addr_t vn_config_pa;So this is the dma address not necessarily pa, we'd better drop the "pa" suffix. Thanks
+ struct dentry *dentry; +}; + +int pds_vdpa_get_mgmt_info(struct pds_vdpa_aux *vdpa_aux); + +#endif /* _VDPA_DEV_H_ */ -- 2.17.1