lkml.org 
[lkml]   [2021]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v7 bpf-next 04/11] tcp: Add reuseport_migrate_sock() to select a new listener.
Date
From:   Eric Dumazet <eric.dumazet@gmail.com>
Date: Thu, 10 Jun 2021 20:09:32 +0200
> On 5/21/21 8:20 PM, Kuniyuki Iwashima wrote:
> > reuseport_migrate_sock() does the same check done in
> > reuseport_listen_stop_sock(). If the reuseport group is capable of
> > migration, reuseport_migrate_sock() selects a new listener by the child
> > socket hash and increments the listener's sk_refcnt beforehand. Thus, if we
> > fail in the migration, we have to decrement it later.
> >
> > We will support migration by eBPF in the later commits.
> >
> > Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
> > Signed-off-by: Martin KaFai Lau <kafai@fb.com>
> > ---
> > include/net/sock_reuseport.h | 3 ++
> > net/core/sock_reuseport.c | 78 +++++++++++++++++++++++++++++-------
> > 2 files changed, 67 insertions(+), 14 deletions(-)
>
> Reviewed-by: Eric Dumazet <edumazet@google.com>

Thank you again!

\
 
 \ /
  Last update: 2021-06-11 00:40    [W:0.152 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site