[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 13/21] virtio-net: Do not clear VIRTIO_NET_F_RSS
From: |
Akihiko Odaki |
Subject: |
[PATCH v5 13/21] virtio-net: Do not clear VIRTIO_NET_F_RSS |
Date: |
Tue, 17 Oct 2023 13:09:19 +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 6eb206f297..20df40442d 100644
--- a/hw/net/virtio-net.c
+++ b/hw/net/virtio-net.c
@@ -776,9 +776,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 v5 16/21] ebpf: Fix RSS error handling, Akihiko Odaki, 2023/10/17
[PATCH v5 18/21] ebpf: Simplify error handling, Akihiko Odaki, 2023/10/17
[PATCH v5 17/21] ebpf: Use standard section name, Akihiko Odaki, 2023/10/17
[PATCH v5 20/21] ebpf: Refactor tun_rss_steering_prog(), Akihiko Odaki, 2023/10/17