virtio-net: Unify the logic to update NIC state for RSS
commit0e07198ea3d899b0e7946b1a3d2a439d53415289
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Sun, 28 Apr 2024 07:00:55 +0000 (28 16:00 +0900)
committerJason Wang <jasowang@redhat.com>
Tue, 4 Jun 2024 07:14:26 +0000 (4 15:14 +0800)
tree39746d5a957f4184c2075b70e4782d5f0bbb7ad3
parentcef776c03a24576c5913f7e4427b133766531744
virtio-net: Unify the logic to update NIC state for RSS

The code to attach or detach the eBPF program to RSS were duplicated so
unify them into one function to save some code.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/virtio-net.c