Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2977381rwd; Wed, 14 Jun 2023 09:34:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4kXCm4W/XBugPyNlhYWhO/M/kQkdQfos7ZEOMt6GgzO2BnaJ307UoO1RaDY5WwXwdgeLtI X-Received: by 2002:a05:6808:2a83:b0:394:3f93:ce0e with SMTP id fc3-20020a0568082a8300b003943f93ce0emr9923987oib.24.1686760446655; Wed, 14 Jun 2023 09:34:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686760446; cv=none; d=google.com; s=arc-20160816; b=fUvMCrhFGvZDcZWZTImrmUFO09taJNPYjwG5clUF6LmDV56SEoRS/wVSUx/NECZv/T xglq32pKxzBPyUFWtwn0J0PHLuNEO1ohYkfPMS6po8JD24hJtqozl7cilV+pNyrssU2h hDNSEJqOfRIxO9Lce3HzAHFLnS1buLfCRaZ23nADIvsoZwDUAee/grOYDNzBZELQK69/ fx1waadYOV95nSdVJgpsX6WcOHYXDmt+AP9AFUlhSFlsP+MrBNdtKByy4VATKV9TeUgr 5FCBJF3NNLPhegPdSh3Yzvew83+Fm1RJnJHRs++JCcy3CpxqL/bdYrhCSgW4Owyg/9tZ h/Jg== 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=rtT0/eZ+pzVcJ4kjv037r9aHK8XNjhCtUjr9Gr9jvYU=; b=vujfYG3Z33BffPtKRYbgCQSEEMTY0fP72G2oWyIyw8N+puaXpvxmgqwAVOQv4hPLCj vqHkRTATfJxZFUzvyXRH3KTtLhz+wIoQfnZH+bqVK72gu3xT86nVKM+24gP5y5CebQ6A klc6bFUhEtk+GOx92NH63LuFISdeMuL279PIPkeNM7RsQf6dAZvKgB245WI7O18smEon pTapyEEwAlRF4FNdc39JKSnV9BNw7k6/ix4amgXnuVfCQr2EOwmPMeNpDPbxWrnL35CO CsufzVlrETx8iGyLA0tXodYiijNWD77dyRUuxjbdBMmtE3voPdwxvJaEHyuOkeL9uUyd oYzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@isovalent.com header.s=google header.b="ZP/SamkU"; 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 my14-20020a17090b4c8e00b0024e2bb99e67si13956000pjb.7.2023.06.14.09.33.50; Wed, 14 Jun 2023 09:34:06 -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="ZP/SamkU"; 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 S236346AbjFNPnA (ORCPT + 99 others); Wed, 14 Jun 2023 11:43:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235873AbjFNPm7 (ORCPT ); Wed, 14 Jun 2023 11:42:59 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DE2A1FFA for ; Wed, 14 Jun 2023 08:42:58 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-977e83d536fso121521566b.3 for ; Wed, 14 Jun 2023 08:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=isovalent.com; s=google; t=1686757376; x=1689349376; 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=rtT0/eZ+pzVcJ4kjv037r9aHK8XNjhCtUjr9Gr9jvYU=; b=ZP/SamkUlMwFjkSD+wrJBR2kE19TzHG8u/731TAnTAmVaSTQXtc0WwSReIL1pIoYyf hAj1Fc83SjRkaP/Jd8z+8vJrD7kacBt1WV+EFkP6WCPbUg1TFiUki5IQEAS5cjPTJIfl NuAVoDBcAtSqb1N6akK+1QNhFDl0FUCmiUU2J30qDEaelyMgFfmxTcRgPY5ojlK3pt8V UILRh0iEMQtUeodX9l9Q6zlGZ8C+tDuwTXnydiJL+4X4PwVEcM3pmQl6eSYDSyZC6CZo whkT1upUUDa2NpmYHxgN9lR0xKmCB5JsX4htzUiT/chQYtbB1TGedl3PqHXWnyOmSWGp rPjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686757376; x=1689349376; 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=rtT0/eZ+pzVcJ4kjv037r9aHK8XNjhCtUjr9Gr9jvYU=; b=ZyDxnWpgK1tfK7Btv7eg9RdFEI2NmNeENKiOFlV6or7pK2wj15hzSLX/qgO9YnOkHb fC0UAXedROYf1uINjQDEm3dQeLidd9gWIskkhfBlWUHJqj4sL7wBQSRc094V0AqCG+Fc 8r7P4SIRS169rKfr4IwzH0y0eAjdmWVdpdAEpKIgjtO7vV2QVlJe5ovjfY7M6EnuxCLq q7GMheN2hkVHlrvARqpMbjL43TsWBfDEiKSaEwpvJU4WZpnX0fOHqcWeOPtAlX2AcSrg QtYkx1USeforuxpHNXamXX3rg3n9lDnqnBM1AywE61FSbChF6JvvBt427TQm/CVS29Hh 0aTQ== X-Gm-Message-State: AC+VfDw26iiUG7S/WSQqc+Jj4CtDivUglHK0ewjjsvFTgMFjn+UQp9DR rD3PHxVRIxZ+lZwZifL3kKk9/6Ysw4Jqe5COVC/jJA== X-Received: by 2002:a17:907:6d08:b0:978:992e:efc4 with SMTP id sa8-20020a1709076d0800b00978992eefc4mr14322051ejc.8.1686757376686; Wed, 14 Jun 2023 08:42:56 -0700 (PDT) MIME-Version: 1.0 References: <20230613-so-reuseport-v2-0-b7c69a342613@isovalent.com> <20230613-so-reuseport-v2-3-b7c69a342613@isovalent.com> In-Reply-To: From: Lorenz Bauer Date: Wed, 14 Jun 2023 16:42:45 +0100 Message-ID: Subject: Re: [PATCH bpf-next v2 3/6] net: remove duplicate reuseport_lookup functions To: Simon Horman Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , David Ahern , Willem de Bruijn , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Joe Stringer , Mykola Lysenko , Shuah Khan , Kuniyuki Iwashima , Hemanth Malla , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org 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,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 Tue, Jun 13, 2023 at 4:33=E2=80=AFPM Simon Horman wrote: > > > > +INDIRECT_CALLABLE_DECLARE(u32 udp_ehashfn(const struct net *, > > + const __be32, const __u16, > > + const __be32, const __be16)); > > + > > Hi Lorenz, > > Would this be better placed in a header file? > GCC complains that in udp.c this function is neither static nor > has a prototype. Hi Simon, The problem is that I don't want to pull in udp.h in inet_hashtables.c, but that is the natural place to define that function. I was hoping the macro magic would solve the problem, but oh well. How do you make gcc complain, and what is the full error message? Thanks Lorenz