linux/drivers/vdpa
Zhu Lingshan 0f420c383a ifcvf/vDPA: fix misuse virtio-net device config size for blk dev
This commit fixes a misuse of virtio-net device config size issue
for virtio-block devices.

A new member config_size in struct ifcvf_hw is introduced and would
be initialized through vdpa_dev_add() to record correct device
config size.

To be more generic, rename ifcvf_hw.net_config to ifcvf_hw.dev_config,
the helpers ifcvf_read/write_net_config() to ifcvf_read/write_dev_config()

Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com>
Reported-and-suggested-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Fixes: 6ad31d162a ("vDPA/ifcvf: enable Intel C5000X-PL virtio-block for vDPA")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20211201081255.60187-1-lingshan.zhu@intel.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2022-01-14 18:50:52 -05:00
..
alibaba eni_vdpa: add vDPA driver for Alibaba ENI 2021-11-01 05:23:41 -04:00
ifcvf ifcvf/vDPA: fix misuse virtio-net device config size for blk dev 2022-01-14 18:50:52 -05:00
mlx5 vhost,virtio,vhost: fixes,features 2021-11-03 15:00:39 -07:00
vdpa_sim vdpa_sim: avoid putting an uninitialized iova_domain 2021-11-24 19:00:29 -05:00
vdpa_user vduse: moving kvfree into caller 2022-01-14 18:50:52 -05:00
virtio_pci vp_vdpa: add vq irq offloading support 2021-11-01 04:30:34 -04:00
Kconfig eni_vdpa: add vDPA driver for Alibaba ENI 2021-11-01 05:23:41 -04:00
Makefile eni_vdpa: add vDPA driver for Alibaba ENI 2021-11-01 05:23:41 -04:00
vdpa.c vdpa: Consider device id larger than 31 2021-12-08 15:41:50 -05:00