Skip to content

RFC ifcvf/vDPA: support query device config space through

Zhu Lingshan netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6vDPA/ifcvf: get_config_size should return a value no greater than dev implementationdrivers/vdpa/ifcvf/ifcvf_base.c drivers/vdpa/ifcvf/ifcvf_base.h+8 -20 replies
2/6vDPA/ifcvf: support userspace to query features and MQ of a management devicedrivers/vdpa/ifcvf/ifcvf_base.c drivers/vdpa/ifcvf/ifcvf_base.h drivers/vdpa/ifcvf/ifcvf_main.c+16 -00 replies
3/6vDPA/ifcvf: support userspace to query device feature bitsdrivers/vdpa/vdpa.c include/uapi/linux/vdpa.h+11 -50 replies
4/6vDPA: !FEATURES_OK should not block querying device config spacedrivers/vdpa/vdpa.c+0 -80 replies
5/6vDPA: answer num of queue pairs = 1 to userspace when VIRTIO_NET_F_MQ == 0drivers/vdpa/vdpa.c+3 -20 replies
6/6vDPA: fix 'cast to restricted le16' warnings in vdpa_dev_net_config_fill()drivers/vdpa/vdpa.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/6] ifcvf/vDPA: support query device config space through

This series allows userspace to query device config space through netlink, to get multi-queue, feature bits, device features and driver features.

This series also has fixed some issues of misusing VDPA_ATTR_DEV_SUPPORTED_FEATURES, this should be used for virtio devices than the management device.

Please help review.

Thanks!
Zhu Lingshan

Zhu Lingshan (6):
vDPA/ifcvf: get_config_size should return a value no greater than dev
implementation
vDPA/ifcvf: support userspace to query features and MQ of a management
device
vDPA/ifcvf: support userspace to query device feature bits
vDPA: !FEATURES_OK should not block querying device config space
vDPA: answer num of queue pairs = 1 to userspace when VIRTIO_NET_F_MQ

    == 0

vDPA: fix 'cast to restricted le16' warnings in
vdpa_dev_net_config_fill()

 drivers/vdpa/ifcvf/ifcvf_base.c | 20 ++++++++++++++++++--
 drivers/vdpa/ifcvf/ifcvf_base.h |  3 +++
 drivers/vdpa/ifcvf/ifcvf_main.c |  3 +++
 drivers/vdpa/vdpa.c             | 32 +++++++++++++++-----------------
 include/uapi/linux/vdpa.h       |  1 +
 5 files changed, 40 insertions(+), 19 deletions(-)
Signature · 1 line
2.31.1