Jason Wang
2022-Nov-22 06:32 UTC
[RFC PATCH net-next 17/19] pds_vdpa: add vdpa config client commands
On Sat, Nov 19, 2022 at 6:57 AM Shannon Nelson <snelson at pensando.io> wrote:> > These are the adminq commands that will be needed for > setting up and using the vDPA device. > > Signed-off-by: Shannon Nelson <snelson at pensando.io> > --- > 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 >