ifcvf/vDPA implement features provisioning
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest12 patches 3 repliesIn review
- v14 patches 10 repliesSuperseded
Changes in v2 from the cover letter
split original patch 1 ~ patch 3 to small patches that are less than 100 lines, so they can be applied to stalbe kernel(Jason)
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | vDPA/ifcvf: decouple hw features manipulators from the adapterdrivers/ drivers/ drivers/ | +4 | 0 replies | |
| 2/12 | vDPA/ifcvf: decouple config space ops from the adapterdrivers/ | +5 | 0 replies | |
| 3/12 | vDPA/ifcvf: alloc the mgmt_dev before the adapterdrivers/ | +14 | 0 replies | |
| 4/12 | vDPA/ifcvf: decouple vq IRQ releasers from the adapterdrivers/ | +9 | 0 replies | |
| 5/12 | vDPA/ifcvf: decouple config IRQ releaser from the adapterdrivers/ | +10 | 0 replies | |
| 6/12 | vDPA/ifcvf: decouple vq irq requester from the adapterdrivers/ | +8 | 0 replies | |
| 7/12 | vDPA/ifcvf: decouple config/dev IRQ requester and vectors allocator from the adapterdrivers/ | +9 | 0 replies | |
| 8/12 | vDPA/ifcvf: ifcvf_request_irq works on ifcvf_hwdrivers/ | +2 | 0 replies | |
| 9/12 | vDPA/ifcvf: manage ifcvf_hw in the mgmt_devdrivers/ drivers/ | +7 | 0 replies | |
| 10/12 | vDPA/ifcvf: allocate the adapter in dev_add()drivers/ | +13 | 0 replies | |
| 11/12 | vDPA/ifcvf: retire ifcvf_private_to_vfdrivers/ drivers/ | +5 | 0 replies | |
| 12/12 | vDPA/ifcvf: implement features provisioningdrivers/ drivers/ drivers/ | +17 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH V2 00/12] ifcvf/vDPA implement features provisioning
This series implements features provisioning for ifcvf. By applying this series, we allow userspace to create a vDPA device with selected (management device supported) feature bits and mask out others.
Examples:
a)The management device supported features:
$ vdpa mgmtdev show pci/0000:01:00.5 pci/0000:01:00.5: supported_classes net max_supported_vqs 9 dev_features MTU MAC MRG_RXBUF CTRL_VQ MQ ANY_LAYOUT VERSION_1 ACCESS_PLATFORM
b)Provision a vDPA device with all supported features:
$ vdpa dev add name vdpa0 mgmtdev pci/0000:01:00.5 $ vdpa/vdpa dev config show vdpa0 vdpa0: mac 00:e8:ca:11:be:05 link up link_announce false max_vq_pairs 4 mtu 1500 negotiated_features MRG_RXBUF CTRL_VQ MQ VERSION_1 ACCESS_PLATFORM
c)Provision a vDPA device with a subset of the supported features:
$ vdpa dev add name vdpa0 mgmtdev pci/0000:01:00.5 device_features 0x300020020 $ vdpa dev config show vdpa0 mac 00:e8:ca:11:be:05 link up link_announce false negotiated_features CTRL_VQ VERSION_1 ACCESS_PLATFORM
Please help review
Thanks
Changes from V1:
split original patch 1 ~ patch 3 to small patches that are less than 100 lines, so they can be applied to stalbe kernel(Jason)
Zhu Lingshan (12):
vDPA/ifcvf: decouple hw features manipulators from the adapter vDPA/ifcvf: decouple config space ops from the adapter vDPA/ifcvf: alloc the mgmt_dev before the adapter vDPA/ifcvf: decouple vq IRQ releasers from the adapter vDPA/ifcvf: decouple config IRQ releaser from the adapter vDPA/ifcvf: decouple vq irq requester from the adapter vDPA/ifcvf: decouple config/dev IRQ requester and vectors allocator
from the adapter
vDPA/ifcvf: ifcvf_request_irq works on ifcvf_hw vDPA/ifcvf: manage ifcvf_hw in the mgmt_dev
vDPA/ifcvf: allocate the adapter in dev_add() vDPA/ifcvf: retire ifcvf_private_to_vf
vDPA/ifcvf: implement features provisioning
drivers/vdpa/ifcvf/ifcvf_base.c | 32 ++----- drivers/vdpa/ifcvf/ifcvf_base.h | 10 +- drivers/vdpa/ifcvf/ifcvf_main.c | 162 +++++++++++++++----------------- 3 files changed, 91 insertions(+), 113 deletions(-)
Signature · 1 line
2.31.1