mbox series

[v4,0/2] virtio-net: Convert feature properties to OnOffAuto

Message ID 20250104-auto-v4-0-972461ee87fd@daynix.com (mailing list archive)
Headers show
Series virtio-net: Convert feature properties to OnOffAuto | expand

Message

Akihiko Odaki Jan. 4, 2025, 7:48 a.m. UTC
Based-on: <20250104-virtio-v3-0-63ef70e9ddf3@daynix.com>
("[PATCH v3 0/3] virtio: Convert feature properties to OnOffAuto")

Some features are not always available, and virtio-net used to disable
them when not available even if the corresponding properties were
explicitly set to "on".

Convert feature properties to OnOffAuto so that the user can explicitly
tell QEMU to automatically select the value by setting them "auto".
QEMU will give an error if they are set "on".

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
Changes in v4:
- Rebased.
- Link to v3: https://lore.kernel.org/r/20240714-auto-v3-0-e27401aabab3@daynix.com

Changes in v3:
- Added patch "qdev-properties: Accept bool for OnOffAuto".
  (Michael S. Tsirkin and Daniel P. Berrangé)
- Changed to report errors with ebpf-rss-fds (Daniel P. Berrangé)
- Link to v2: https://lore.kernel.org/r/20240708-auto-v2-0-f4908b953f05@daynix.com

Changes in v2:
- Added patch "virtio-net: Remove fallback from ebpf-rss-fds".
- Added a compatibility property.
- Corrected property type name.
- Link to v1: https://lore.kernel.org/r/20240428-auto-v1-0-7b012216a120@daynix.com

---
Akihiko Odaki (2):
      virtio-net: Convert feature properties to OnOffAuto
      virtio-net: Report RSS warning at device realization

 include/hw/virtio/virtio-net.h |   3 +-
 hw/core/machine.c              |   1 +
 hw/net/virtio-net.c            | 273 +++++++++++++++++++++++++----------------
 3 files changed, 173 insertions(+), 104 deletions(-)
---
base-commit: d4ce41e114a1f079b0994b1e6aa7f01e20ba490d
change-id: 20240428-auto-be0dc010dda5

Best regards,