Re: [RFC PATCH v3 5/6] virtio-net: Added eBPF RSS to virtio-net.

2021-01-25 Thread Jason Wang
On 2021/1/24 下午4:24, Yuri Benditovich wrote: Hi Jason, I've prepared a POC of graceful switch to 'vhost off' if respective features are acked by the guest. Such a way we do not need to silently clear RSS and hash report features in case of 'vhost on'. Can you please review it and provide your

Re: [RFC PATCH v3 5/6] virtio-net: Added eBPF RSS to virtio-net.

2021-01-24 Thread Yuri Benditovich
On Sun, Jan 24, 2021 at 10:24 AM Yuri Benditovich wrote: > > Hi Jason, > > I've prepared a POC of graceful switch to 'vhost off' if respective > features are acked by the guest. > Such a way we do not need to silently clear RSS and hash report > features in case of 'vhost on'. > Can you please

Re: [RFC PATCH v3 5/6] virtio-net: Added eBPF RSS to virtio-net.

2021-01-24 Thread Yuri Benditovich
Hi Jason, I've prepared a POC of graceful switch to 'vhost off' if respective features are acked by the guest. Such a way we do not need to silently clear RSS and hash report features in case of 'vhost on'. Can you please review it and provide your feedback? I think the only open question is

Re: [RFC PATCH v3 5/6] virtio-net: Added eBPF RSS to virtio-net.

2021-01-17 Thread Jason Wang
On 2021/1/17 下午5:04, Yuri Benditovich wrote: On Fri, Jan 15, 2021 at 9:20 AM Jason Wang wrote: On 2021/1/15 上午5:16, Andrew Melnychenko wrote: From: Andrew When RSS is enabled the device tries to load the eBPF program to select RX virtqueue in the TUN. If eBPF can be loaded the RSS will

Re: [RFC PATCH v3 5/6] virtio-net: Added eBPF RSS to virtio-net.

2021-01-17 Thread Yuri Benditovich
On Fri, Jan 15, 2021 at 9:20 AM Jason Wang wrote: > > > On 2021/1/15 上午5:16, Andrew Melnychenko wrote: > > From: Andrew > > > > When RSS is enabled the device tries to load the eBPF program > > to select RX virtqueue in the TUN. If eBPF can be loaded > > the RSS will function also with vhost

Re: [RFC PATCH v3 5/6] virtio-net: Added eBPF RSS to virtio-net.

2021-01-14 Thread Jason Wang
On 2021/1/15 上午5:16, Andrew Melnychenko wrote: From: Andrew When RSS is enabled the device tries to load the eBPF program to select RX virtqueue in the TUN. If eBPF can be loaded the RSS will function also with vhost (works with kernel 5.8 and later). Software RSS is used as a fallback with

[RFC PATCH v3 5/6] virtio-net: Added eBPF RSS to virtio-net.

2021-01-14 Thread Andrew Melnychenko
From: Andrew When RSS is enabled the device tries to load the eBPF program to select RX virtqueue in the TUN. If eBPF can be loaded the RSS will function also with vhost (works with kernel 5.8 and later). Software RSS is used as a fallback with vhost=off when eBPF can't be loaded or when hash