From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14B1EC64ED6 for ; Mon, 27 Feb 2023 23:40:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229657AbjB0XkU (ORCPT ); Mon, 27 Feb 2023 18:40:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbjB0XkT (ORCPT ); Mon, 27 Feb 2023 18:40:19 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52E741C7DF for ; Mon, 27 Feb 2023 15:40:18 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DCFFA60F22 for ; Mon, 27 Feb 2023 23:40:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 3E52CC4339B; Mon, 27 Feb 2023 23:40:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677541217; bh=KY6JUPPvlgMXuc3jQDW3veZpxcfwMRXgRSu74hXNxng=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=ATQqYrjQQZhuAJgl7j51B/wlaxVOPJsQBnlcPYnWraB+7LC+TWl16tLMhHcl6pd6i MHQzd+C7KtTH5Z6kn32TOXwhJrthK+g2k2qNkzvp4zrvdTo6jxz6pxmPJJjFjZ/p09 veLc2q6J8C2pGS/NN9u81o9oxdIwh3TGlhtVIQLBYBdvazisQ6BXhhSTPx2Gg/IBCT ShKaMFkTz5Wcw2Rfs8u5ATij1y89cl4l1jxg7ePksxjFNt9eL9ZDd04cOxt5gDMPEa i9TQO7LlfRLg5QVirL2tJAWRdH2JTD9LfgJed606LhQb4VmhtwsRSIr0iuCYkQJlWH /R4bKRnmQQmbg== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 1DE67C41676; Mon, 27 Feb 2023 23:40:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH bpf] libbpf: Fix bpf_xdp_query() in old kernels From: patchwork-bot+netdevbpf@kernel.org Message-Id: <167754121711.19048.9342789016120820880.git-patchwork-notify@kernel.org> Date: Mon, 27 Feb 2023 23:40:17 +0000 References: <20230227224943.1153459-1-yhs@fb.com> In-Reply-To: <20230227224943.1153459-1-yhs@fb.com> To: Yonghong Song Cc: bpf@vger.kernel.org, ast@kernel.org, andrii@kernel.org, daniel@iogearbox.net, kernel-team@fb.com, martin.lau@kernel.org, lorenzo@kernel.org Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org Hello: This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko : On Mon, 27 Feb 2023 14:49:43 -0800 you wrote: > Commit 04d58f1b26a4("libbpf: add API to get XDP/XSK supported features") > added feature_flags to struct bpf_xdp_query_opts. If a user uses > bpf_xdp_query_opts with feature_flags member, the bpf_xdp_query() > will check whether 'netdev' family exists or not in the kernel. > If it does not exist, the bpf_xdp_query() will return -ENOENT. > > But 'netdev' family does not exist in old kernels as it is > introduced in the same patch set as Commit 04d58f1b26a4. > So old kernel with newer libbpf won't work properly with > bpf_xdp_query() api call. > > [...] Here is the summary with links: - [bpf] libbpf: Fix bpf_xdp_query() in old kernels https://git.kernel.org/bpf/bpf-next/c/c8ee37bde402 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html