Thread (41 messages) read the whole thread 41 messages, 5 authors, 2023-10-20

Re: [RFC PATCH 0/7] tun: Introduce virtio-net hashing feature

From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date: 2023-10-08 18:37:42
Also in: bpf, kvm, linux-kselftest, lkml, virtualization

On Sun, Oct 8, 2023 at 7:21 AM Akihiko Odaki [off-list ref] wrote:
virtio-net have two usage of hashes: one is RSS and another is hash
reporting. Conventionally the hash calculation was done by the VMM.
However, computing the hash after the queue was chosen defeats the
purpose of RSS.

Another approach is to use eBPF steering program. This approach has
another downside: it cannot report the calculated hash due to the
restrictive nature of eBPF.

Introduce the code to compute hashes to the kernel in order to overcome
thse challenges.

An alternative solution is to extend the eBPF steering program so that it
will be able to report to the userspace, but it makes little sense to
allow to implement different hashing algorithms with eBPF since the hash
value reported by virtio-net is strictly defined by the specification.
But using the existing BPF steering may have the benefit of requiring
a lot less new code.

There is ample precedence for BPF programs that work this way. The
flow dissector comes to mind.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help