ifcvf/vDPA: support query device config space through netlink
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest6 patches 15 repliesIn review
- v46 patches 19 repliesSuperseded
- v36 patches 111 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 6 patches | 11 replies | Superseded | |
| v1 | 6 patches | 17 replies | Superseded |
Changes from V3 from the cover letter
(1)drop the fixes tags(Parva)
(2)better commit log for patch 1/6(Michael)
(3)assign num_queues to max_supported_vqs than max_vq_pairs(Jason) (4)initialize virtio pci capabilities in the probe() function.
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | vDPA/ifcvf: get_config_size should return a value no greater than dev implementationdrivers/ drivers/ | +13 | 0 replies | |
| 2/6 | vDPA/ifcvf: support userspace to query features and MQ of a management devicedrivers/ | +76 | 0 replies | |
| 3/6 | vDPA: allow userspace to query features of a vDPA devicedrivers/ include/ | +16 | 0 replies | |
| 4/6 | vDPA: !FEATURES_OK should not block querying device config spacedrivers/ | +0 | 11 replies | |
| 5/6 | vDPA: Conditionally read fields in virtio-net dev config spacedrivers/ | +37 | 0 replies | |
| 6/6 | fix 'cast to restricted le16' warnings in vdpa.cdrivers/ | +10 | 0 replies |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by.
| Patch | Parav Pandit |
|---|---|
| 1/6 | |
| 2/6 | |
| 3/6 | |
| 4/6 | |
| 5/6 | |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH V5 0/6] ifcvf/vDPA: support query device config space through netlink
This series allows userspace to query device config space of vDPA devices and the management devices through netlink,
to get multi-queue, feature bits and etc.
This series has introduced a new netlink attr VDPA_ATTR_VDPA_DEV_SUPPORTED_FEATURES, this should be used to query features of vDPA devices than the management device.
Please help review.
Thanks!
Zhu Lingshan
Changes rom V4:
(1) Read MAC, MTU, MQ conditionally (Michael)
(2) If VIRTIO_NET_F_MAC not set, don't report MAC to userspace
(3) If VIRTIO_NET_F_MTU not set, report 1500 to userspace
(4) Add comments to the new attr VDPA_ATTR_VDPA_DEV_SUPPORTED_FEATURES(Michael)
(5) Add comments for reporting the device status as LE(Michael)
Changes from V3:
(1)drop the fixes tags(Parva)
(2)better commit log for patch 1/6(Michael)
(3)assign num_queues to max_supported_vqs than max_vq_pairs(Jason) (4)initialize virtio pci capabilities in the probe() function.
Changes from V2:
Add fixes tags(Parva)
Changes from V1:
(1) Use __virito16_to_cpu(true, xxx) for the le16 casting(Jason)
(2) Add a comment in ifcvf_get_config_size(), to explain
why we should return the minimum value ofsizeof(struct virtio_net_config) and the onboard
cap size(Jason)
(3) Introduced a new attr VDPA_ATTR_VDPA_DEV_SUPPORTED_FEATURES
(4) Show the changes of iproute2 output before and after 5/6 patch(Jason)
(5) Fix cast warning in vdpa_fill_stats_rec()
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: allow userspace to query features of a vDPA device
vDPA: !FEATURES_OK should not block querying device config space
vDPA: Conditionally read fields in virtio-net dev config space fix 'cast to restricted le16' warnings in vdpa.c
drivers/vdpa/ifcvf/ifcvf_base.c | 13 ++- drivers/vdpa/ifcvf/ifcvf_base.h | 2 + drivers/vdpa/ifcvf/ifcvf_main.c | 142 +++++++++++++++++--------------- drivers/vdpa/vdpa.c | 82 ++++++++++++------ include/uapi/linux/vdpa.h | 3 + 5 files changed, 149 insertions(+), 93 deletions(-)
Signature · 1 line
2.31.1