Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp25924310rwd; Mon, 3 Jul 2023 03:01:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlE4Acb18RgHIix/zWtPS/+1unk2x/4tgSNbeOqlNo4XUT68rU8fqRdef/fF8vB3LAwU2Las X-Received: by 2002:a9d:620b:0:b0:6b8:b765:33a4 with SMTP id g11-20020a9d620b000000b006b8b76533a4mr6294805otj.7.1688378484504; Mon, 03 Jul 2023 03:01:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688378484; cv=none; d=google.com; s=arc-20160816; b=iKkQRdHwqODDS/lFjpWsJS6kc57WGYQZMM4aGnwojNxHrHbdHe+LpYqWjVmwHyVXsJ di5wOpJwLb7q9MET8vVNvLkHoRjfKa2Si5bW1PLFLx3UaR7XFIu4PTOc+DZ1GgDHbnYl O/xAHBQ/7ABrnzj+8+GeEwcHnIi8elbOipVGpVMi7Q0FeSGufelX4jzjilaIcvLHPYcH K7wE1aBMNxtMaXF0ZlSoO8gELrG/L2I4W+OFbbkrz8qAZsjatnZ61sxjA6J1kdAxvthN tkOKPIKSBAMusAnXTDvKk3Co/JqguRXULp1lHirpz27QjVlEgXKZdxSMCQbkJg4esuqR 4OVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=RAVcfp0GiSAt76fo4gLjijfKkWn98YypFzYe/HtvOKU=; fh=4kIwunvMdIzb+Pg6Arf1WnBBvvHM5HOG8zr/MvTQvtY=; b=PUvHSPj54VmLwH7ScESXctHVObwYxR3LcZwP0r+NxlO/eZiEzFlGElEQv/B2fVv2ps i02MpaBUQYc6Vj+u26fjD5ianrA7Vvji9bkvtWSTnmQmXcHnVXEEm/MtH7UeQk5okv62 F0IKOuhjoX0NiB/uzzyVCC9PpCRUaJLyBnokOOqFleko0599O4TyTN8Lx6FHPM0GMZO+ HArqyivcZDV0gYhtHEfmAMDUpFsZh4zursiyP49PVfXLW/rRTa8X2g9/tzl/f0ASCeYE nE5LdcrFxLTSFG2GgwD4frUxOpQTtx8kqV2G7kP+3Tb+DDRVT8ov04znxEgmv45BHMZf 8A+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@isovalent.com header.s=google header.b=HD95sOKg; 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=isovalent.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 184-20020a6300c1000000b0053fb7d14255si18038269pga.0.2023.07.03.03.01.08; Mon, 03 Jul 2023 03:01:24 -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=@isovalent.com header.s=google header.b=HD95sOKg; 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=isovalent.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231158AbjGCJqS (ORCPT + 99 others); Mon, 3 Jul 2023 05:46:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231183AbjGCJqP (ORCPT ); Mon, 3 Jul 2023 05:46:15 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2826E5C for ; Mon, 3 Jul 2023 02:46:11 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-992ca792065so430347566b.2 for ; Mon, 03 Jul 2023 02:46:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=isovalent.com; s=google; t=1688377570; x=1690969570; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=RAVcfp0GiSAt76fo4gLjijfKkWn98YypFzYe/HtvOKU=; b=HD95sOKgKpvDJjMobg5G+wIZgo1K7nnWBpuhskATho6HC5AoGzaZi8rRmPIxXemMq2 o900X+GzpDo2XZJD199KKY9MrfZHJFr1QtuwRd07VlpmXVZUTLfY0LLTq3xJYVCf/a4/ /0Le0hGJ5S4GMofEHiKUfaE6g50i0psznpRYu0R6MrOjBoTFVXnIkMsSkcUuBrWx8DBw oBHpe79OG2ppm+LVFsp/ULOh1mU+SX9eS6o2rIB95lTdmDBUNaDrUUfwMUNKiKzd7Zv3 Tk8Lbpw0bJDK7E0+tJ9vUBc6XdoMDUaVABlzzlWA1H71sDEgy4C5RdTlA38Ni0SAY8p1 A+Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688377570; x=1690969570; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RAVcfp0GiSAt76fo4gLjijfKkWn98YypFzYe/HtvOKU=; b=gv2hxKwjpg+Ue3RsKJrTWt4cevqyQvafiwABCrr3ZX4jnWR14Xa49xOEWR4NR8QKxk dz/5Tv2Dud7HHtmDKL2H59RfKGDdxNadhZoOyaEBXMQ+6585nuMmBRVc3O88+YW2B6j/ EG69KLXm5IXk05t89Pjm4vByugYir2q4AYlFzK1I/yyouCMeEDVv24P0f6FbO7tUzYme EOmV2DYw4MqRAOXvt597CraCQE3iywV23R9MX+t70+f+dDngh0muIbU3ePHZbdZatEOL R1Tv3DU6aGT13seZ4iZ2Nnvr1+jYPEXV+7rs5GGkgeKxJesisUX+qPnogON1TU7QuKMq KOAQ== X-Gm-Message-State: ABy/qLZBZlnw+wwpNg/Zs7Ygq6VfHtWNNDC66KYGuA1dPQz5O6C7W0v0 Ps7vuqcrcqN4MfEmKFf31WEHkQSNuKoFFSjjWGMnRA== X-Received: by 2002:a17:906:37cc:b0:94f:449e:75db with SMTP id o12-20020a17090637cc00b0094f449e75dbmr7501039ejc.52.1688377570306; Mon, 03 Jul 2023 02:46:10 -0700 (PDT) MIME-Version: 1.0 References: <20230613-so-reuseport-v4-3-4ece76708bba@isovalent.com> <20230628183258.74704-1-kuniyu@amazon.com> In-Reply-To: <20230628183258.74704-1-kuniyu@amazon.com> From: Lorenz Bauer Date: Mon, 3 Jul 2023 10:45:59 +0100 Message-ID: Subject: Re: [PATCH bpf-next v4 3/7] net: remove duplicate reuseport_lookup functions To: Kuniyuki Iwashima Cc: andrii@kernel.org, ast@kernel.org, bpf@vger.kernel.org, daniel@iogearbox.net, davem@davemloft.net, dsahern@kernel.org, edumazet@google.com, haoluo@google.com, hemanthmalla@gmail.com, joe@wand.net.nz, john.fastabend@gmail.com, jolsa@kernel.org, kpsingh@kernel.org, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, martin.lau@linux.dev, mykolal@fb.com, netdev@vger.kernel.org, pabeni@redhat.com, sdf@google.com, shuah@kernel.org, song@kernel.org, willemdebruijn.kernel@gmail.com, yhs@fb.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Wed, Jun 28, 2023 at 7:33=E2=80=AFPM Kuniyuki Iwashima wrote: > > + > > +inet6_ehashfn_t inet6_ehashfn; > > + > > +INDIRECT_CALLABLE_DECLARE(inet6_ehashfn_t udp6_ehashfn); > > We need not define udp6_ehashfn() here as inet6_hashtables.c has > the definition. > > Only inet6_ehashfn() is needed because sk_ehashfn() uses it. Without udp6_ehashfn we get the following error, as reported by Simon against v1: net/ipv4/udp.c:410:5: error: no previous prototype for =E2=80=98udp_ehashfn= =E2=80=99 [-Werror=3Dmissing-prototypes] 410 | u32 udp_ehashfn(const struct net *net, const __be32 laddr, const __u16 lport, | ^~~~~~~~~~~ > > +inet_ehashfn_t inet_ehashfn; > > + > > +INDIRECT_CALLABLE_DECLARE(inet_ehashfn_t udp_ehashfn); > > + > > We don't need inet_ehashfn() and udp_ehashfn() declarations here. Without inet_ehashfn I get: ./include/net/inet_hashtables.h: In function =E2=80=98__inet_lookup_skb=E2= =80=99: ./include/net/inet_hashtables.h:501:42: error: =E2=80=98inet_ehashfn=E2=80= =99 undeclared (first use in this function); did you mean =E2=80=98inet_bhashfn= =E2=80=99? 501 | refcounted, inet_ehashfn); Same problem with the warning as above. I think this needs to stay the way it is.