Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3851368rwo; Mon, 24 Jul 2023 18:31:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlEqOk7CmKwzmX9OSOAIAENU8u9Xr8lSAjik+IY62QKYrK7f/Wi1+1JqMBXqEhr/NO4cMP3F X-Received: by 2002:a05:6358:91c:b0:139:71af:ed6d with SMTP id r28-20020a056358091c00b0013971afed6dmr5141288rwi.11.1690248699221; Mon, 24 Jul 2023 18:31:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690248699; cv=none; d=google.com; s=arc-20160816; b=kuMLxiOr1khYEDIUNalchYvr2VEfV2WeuB/jLc+5dkMDkMC/dYMMTkGo1uS3vXspNV 1+QEXSZKxSs/VZgHtZCH5OISUGjekm7ZpxYzN6UzrDlgWPrLS+vFgpjd/r0Q5fAUJNjO Mz95ZeMyFsZ4EhGgqI9DSASYCkZQCgt31aidf4gVwNCIY6w8SjNe/SjKke0mg1nJ9kAi HCbI5VrDnzYs70H9EltPplDqYjcQFWzpzOlKE0iBNeSWMs2ssh8J1IiI+fl+cPZ2BkgN gpzoUoPndXJxO66S7OKALQMGtO+2t6aYihA+s/XZaClLkyLxM18Ah/Km7TLZvWSBj9un scpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :dkim-signature:message-id; bh=FEc/syJTd3RZaFMkZliujo+qvISQHAzyZNwX6YDi1dY=; fh=PgkIEfiBTts5OtN05lGuMJnSbk37yhIYMFAW4TvNVSg=; b=jDppg0GlnKPvdlfAJLtPBvqWBNVDddjTSaRCERTEnI/mmx/2aD51I6KYZHxP1E3Oja c8WRSyvmXBXLWRS6fK8YC+dYjrBKvXvbf2ukqFT5ThghuOp8JzLfSs1FsBJEW7jmyoD4 hll1sqRepyLlfnLlUDm6msed7Sxpy4tiOZQj1oAZAGvm65PaDhZXTAwBBr469YBitQZl s/KgRPfp95RtdTLhWntIrOlvCGkTt92KOGi0ZwYfMZZEld5zPLp9z00CdTjUZfhCFhoR r9PVO1TPbFjBRfD4egr3jIAYnj7OUjmWgY81A84DXfEB0MxVNx5wRbYAAb7Z+jDr+zoN NJgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=lMrvmuvv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k1-20020a635a41000000b005526bd0c526si10291343pgm.641.2023.07.24.18.31.26; Mon, 24 Jul 2023 18:31:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=lMrvmuvv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229981AbjGYBCZ (ORCPT + 99 others); Mon, 24 Jul 2023 21:02:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230429AbjGYBCU (ORCPT ); Mon, 24 Jul 2023 21:02:20 -0400 X-Greylist: delayed 495 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 24 Jul 2023 18:01:46 PDT Received: from out-26.mta0.migadu.com (out-26.mta0.migadu.com [91.218.175.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4603219B4 for ; Mon, 24 Jul 2023 18:01:45 -0700 (PDT) Message-ID: <6e4f2a64-ed6d-297d-9d6e-6056c1903363@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1690246406; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FEc/syJTd3RZaFMkZliujo+qvISQHAzyZNwX6YDi1dY=; b=lMrvmuvvy/otPm0dRFwLYl+otoZr73D8MDD/O5ezWeDI0oARPND8cUsWpEb4+xK+e9L6Wc Cv7WwIMknobpG+PI42VtROxeope4MUCet/j+3batAbP7vSXxQMhor2MMG65q3kauxRxL/N 3MxPM9t3Z4/YEjpdiPscxD+U4hA6S50= Date: Mon, 24 Jul 2023 17:53:15 -0700 MIME-Version: 1.0 Subject: Re: [PATCH bpf-next v6 4/8] net: remove duplicate reuseport_lookup functions Content-Language: en-US To: Lorenz Bauer Cc: Hemanth Malla , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , David Ahern , Willem de Bruijn , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Joe Stringer , Mykola Lysenko , Shuah Khan , Kuniyuki Iwashima References: <20230720-so-reuseport-v6-0-7021b683cdae@isovalent.com> <20230720-so-reuseport-v6-4-7021b683cdae@isovalent.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: <20230720-so-reuseport-v6-4-7021b683cdae@isovalent.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/20/23 8:30 AM, Lorenz Bauer wrote: > diff --git a/include/net/inet6_hashtables.h b/include/net/inet6_hashtables.h > index 032ddab48f8f..f89320b6fee3 100644 > --- a/include/net/inet6_hashtables.h > +++ b/include/net/inet6_hashtables.h > @@ -48,12 +48,21 @@ struct sock *__inet6_lookup_established(struct net *net, > const u16 hnum, const int dif, > const int sdif); > > +typedef u32 (inet6_ehashfn_t)(const struct net *net, > + const struct in6_addr *laddr, const u16 lport, > + const struct in6_addr *faddr, const __be16 fport); > + > +inet6_ehashfn_t inet6_ehashfn; > + > +INDIRECT_CALLABLE_DECLARE(inet6_ehashfn_t udp6_ehashfn); > + [ ... ] > diff --git a/net/ipv6/inet6_hashtables.c b/net/ipv6/inet6_hashtables.c > index b7c56867314e..3616225c89ef 100644 > --- a/net/ipv6/inet6_hashtables.c > +++ b/net/ipv6/inet6_hashtables.c > @@ -39,6 +39,7 @@ u32 inet6_ehashfn(const struct net *net, > return __inet6_ehashfn(lhash, lport, fhash, fport, > inet6_ehash_secret + net_hash_mix(net)); > } > +EXPORT_SYMBOL_GPL(inet6_ehashfn); > > /* > * Sockets in TCP_CLOSE state are _always_ taken out of the hash, so > @@ -111,18 +112,22 @@ static inline int compute_score(struct sock *sk, struct net *net, > return score; > } > > +INDIRECT_CALLABLE_DECLARE(inet6_ehashfn_t udp6_ehashfn); The same INDIRECT_CALLABLE_DECLARE is also added to inet6_hashtables.h. Is this one still needed here? The same goes for the inet_hashtables.c.