[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 10/11] virtio-net: Do not clear VIRTIO_NET_F_RSS
From: |
Akihiko Odaki |
Subject: |
[PATCH v3 10/11] virtio-net: Do not clear VIRTIO_NET_F_RSS |
Date: |
Thu, 12 Oct 2023 00:39:41 +0900 |
Even if eBPF is not available, virtio-net can perform RSS on the
user-space if vhost is disabled although such a configuration results in
a warning. If vhost is enabled, the configuration will be rejected when
realizing the device. Therefore, VIRTIO_NET_F_RSS should not be cleared
even if eBPF is not loaded.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
hw/net/virtio-net.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c
index 20feb20bb1..31a32bdff9 100644
--- a/hw/net/virtio-net.c
+++ b/hw/net/virtio-net.c
@@ -775,9 +775,6 @@ static uint64_t virtio_net_get_features(VirtIODevice *vdev,
uint64_t features,
return features;
}
- if (!ebpf_rss_is_loaded(&n->ebpf_rss)) {
- virtio_clear_feature(&features, VIRTIO_NET_F_RSS);
- }
features = vhost_net_get_features(get_vhost_net(nc->peer), features);
vdev->backend_features = features;
--
2.42.0
[PATCH v3 02/11] tap: Remove qemu_using_vnet_hdr(), Akihiko Odaki, 2023/10/11
[PATCH v3 05/11] tap: Shrink zeroed virtio-net header, Akihiko Odaki, 2023/10/11
[PATCH v3 06/11] virtio-net: Copy header only when necessary, Akihiko Odaki, 2023/10/11
[PATCH v3 09/11] virtio-net: Return an error when vhost cannot enable RSS, Akihiko Odaki, 2023/10/11
[PATCH v3 10/11] virtio-net: Do not clear VIRTIO_NET_F_RSS,
Akihiko Odaki <=
[PATCH v3 03/11] net: Move virtio-net header length assertion, Akihiko Odaki, 2023/10/11
[PATCH v3 04/11] net: Remove receive_raw(), Akihiko Odaki, 2023/10/11
[PATCH v3 07/11] virtio-net: Disable RSS on reset, Akihiko Odaki, 2023/10/11
[PATCH v3 08/11] virtio-net: Unify the logic to update NIC state for RSS, Akihiko Odaki, 2023/10/11
[PATCH v3 11/11] ebpf: Fix RSS error handling, Akihiko Odaki, 2023/10/11