qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 6/6] ebpf: Updated eBPF program and skeleton.


From: Daniel P . Berrangé
Subject: Re: [PATCH v2 6/6] ebpf: Updated eBPF program and skeleton.
Date: Mon, 15 May 2023 10:53:19 +0100
User-agent: Mutt/2.2.9 (2022-11-12)

On Fri, May 12, 2023 at 03:29:02PM +0300, Andrew Melnychenko wrote:
> Updated section name, so libbpf should init/gues proper
> program type without specifications during open/load.
> 
> Signed-off-by: Andrew Melnychenko <andrew@daynix.com>
> ---
>  ebpf/rss.bpf.skeleton.h | 1469 ++++++++++++++++++++-------------------
>  tools/ebpf/rss.bpf.c    |    2 +-
>  2 files changed, 741 insertions(+), 730 deletions(-)

..snip..

Can't say I've verified the big hex blob, but I'll asume its a faithful
compilation of the change below:

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


> diff --git a/tools/ebpf/rss.bpf.c b/tools/ebpf/rss.bpf.c
> index 20f227e2acc..d32b6fb42a4 100644
> --- a/tools/ebpf/rss.bpf.c
> +++ b/tools/ebpf/rss.bpf.c
> @@ -528,7 +528,7 @@ static inline __u32 calculate_rss_hash(struct __sk_buff 
> *skb,
>      return result;
>  }
>  
> -SEC("tun_rss_steering")
> +SEC("socket")
>  int tun_rss_steering_prog(struct __sk_buff *skb)
>  {
>  
> -- 
> 2.39.1
> 

With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




reply via email to

[Prev in Thread] Current Thread [Next in Thread]