Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5128089rwb; Mon, 31 Jul 2023 19:13:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlEE5T8zEMj8TaWm+vBQeJatPCBG9p33idIr0B+RHF+Wz1i9iNEyCvtHSKu/EyZMW8jZbwXk X-Received: by 2002:a19:6d17:0:b0:4fb:89e2:fc27 with SMTP id i23-20020a196d17000000b004fb89e2fc27mr778488lfc.54.1690855988268; Mon, 31 Jul 2023 19:13:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690855988; cv=none; d=google.com; s=arc-20160816; b=MMMWWXyc5+w6MG6yKkDiavc0ijNpryq3FXCDBNuN87/mL1/vMIWh5Y82NcvGCY3rPR tcFBnbBBhZSNYK5t5CKNiZVjg0nJnzh5NFhyYIDYiglXWorEyD8kU4N/8n5B3uMGWlbQ jaYwNbUhjLbg3iEXTGlazrFC6f5ftKlyelHCkRmmTlw2bGvyscU5AyP2G4ZiX0vCI4jO BrWnwDa70GYQBQ463E0sc37bchdUnNYvrDkAo+bz2oNa2scBlarp0jrZagUGarsTlhUL vlyMGCBQgMUTblopZMwlJS0W1CqrT05vO3ULfF+swvVKeIMHYA+Tdlcja1FO4FYhJK1+ ZmAg== 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=8mtR4vj5hk+cVwancO1pOd7gYaPqrE6PYim1ZZ5qoB4=; fh=lIO1j295GfBs7YwkRHQ271apXcp6wiCbp0NZTypJkyE=; b=WKthlh8Lo5LAh5iP36PIRxHMOMaxGn7RP2eWJMg5TH1UOxVb6T9WQW3ypcJQ8Fob8p daWj4z7Nd4OyMVlhk1VLjZNgiUMucHZ7JUEcOvRC2pm2l4ovW4j8f+c2BGdO1S28SqlU Oh0XVd9glbeX5Eq65zZeG4YtCp4ChhPyHbIvZK+0aV999sM0qtp1phS2WWmKWCVm7//R 8ksROUqO10XI4OKXumr6HBy6rrzSq79IYYMSVgrJLWdEXsyCjWjbu3AsdAdgps9q3od2 +axeJnFqVVEqyF7EgEhfHYxx+snyA3BAFRyGKZMKQS5om73vMQELOTYovY8kIR0XNxCQ OsnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=UzURXrGS; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d14-20020aa7ce0e000000b00521e50a9c89si4633372edv.435.2023.07.31.19.12.44; Mon, 31 Jul 2023 19:13:08 -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=@gmail.com header.s=20221208 header.b=UzURXrGS; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231139AbjHAAxp (ORCPT + 99 others); Mon, 31 Jul 2023 20:53:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbjHAAxo (ORCPT ); Mon, 31 Jul 2023 20:53:44 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06F7FEE; Mon, 31 Jul 2023 17:53:43 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4f95bf5c493so8277387e87.3; Mon, 31 Jul 2023 17:53:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690851221; x=1691456021; 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=8mtR4vj5hk+cVwancO1pOd7gYaPqrE6PYim1ZZ5qoB4=; b=UzURXrGS2fFW0f6ohQuT9GZlY+yVaRvBgbWYsd51A1C0I7hsVFRrglL68uP1FYG7mA Qp9UMmO7/Ob/KYz3hSO7nQ9G9K6WuCpX5Bp+L5NPsEBTz+aQBdP1ySK5IDbjQes2ljPm iFtWRW4NuxyqNgk4QlTW4P5DTks4N+rtmCBDaiIXN4kr3MQtwHB2N73NTFl6Nt5pIubw qD9HLLwAQ95BlGQAV7wzb5ntBgDP9EThYs+PDuN2I3Mf2A7oUowoT45xMPFngEAxU5jN Z1fvRprsML+1mnBoPeLW1adlbyKr7k/DgfYgRMTH0QKq+8l0HvvesO1TDu+l/OM4LFTE h9Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690851221; x=1691456021; 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=8mtR4vj5hk+cVwancO1pOd7gYaPqrE6PYim1ZZ5qoB4=; b=kZkj9tFavQpEhEaPxc5dN/yzUB7KelZSsjy/YcvWwDnFFMLbRyUvf7bKxtws1ISlbW Sk/bJmtC+Ho9WT0hrjjg0WnChZSQJXXMM1LW2LsJQJhUl8LxzY63UQ6vGyuAvqgVi5gq JUbX+tcHk5K3JaYNbQpX5q93M6nIKgj+Hx0KkNK4JJv7ZIXzj80ynbXY0131tuYXUEY5 vN3p+AI8l6yRtHbVb6zGvFzG5Jgcv8EdnjvvKFB8foFKKhMnYD9prrkrSfDYB+0nS7bs bZyJAqlej6yDzdUwojmho1TzwwzB3Ef2bKMSROhTyzp7CPrxC6uTvhgwU39pZlzq1rXq +OaQ== X-Gm-Message-State: ABy/qLa4S0J6CNNmGP3AB/6nkoL6Wwc4QGYsaYwKQF9bmuZ2M0ozeuD2 QZDXETPxBMkEp/4J7MKbuPgG5BapNfIIrCv8aU8= X-Received: by 2002:a2e:88d1:0:b0:2af:25cf:92ae with SMTP id a17-20020a2e88d1000000b002af25cf92aemr1176134ljk.22.1690851220847; Mon, 31 Jul 2023 17:53:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alexei Starovoitov Date: Mon, 31 Jul 2023 17:53:29 -0700 Message-ID: Subject: Re: [PATCH] netfilter: bpf: Only define get_proto_defrag_hook() if necessary To: Daniel Xu Cc: Jozsef Kadlecsik , "David S. Miller" , Paolo Abeni , Alexei Starovoitov , Eric Dumazet , Pablo Neira Ayuso , Jakub Kicinski , Florian Westphal , netfilter-devel , coreteam@netfilter.org, Network Development , LKML , bpf , kernel test robot 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,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Mon, Jul 31, 2023 at 2:55=E2=80=AFPM Daniel Xu wrote: > > Before, we were getting this warning: > > net/netfilter/nf_bpf_link.c:32:1: warning: 'get_proto_defrag_hook' defi= ned but not used [-Wunused-function] > > Guard the definition with CONFIG_NF_DEFRAG_IPV[4|6]. > > Fixes: 91721c2d02d3 ("netfilter: bpf: Support BPF_F_NETFILTER_IP_DEFRAG i= n netfilter link") since that commit is in bpf-next only please use [PATCH bpf-next] in the future to make sure BPF CI can test it. I've applied it after manual testing, but very much prefer the automation to do it for me.