Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp17433iog; Tue, 28 Jun 2022 13:54:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vdMUPJ8rcwBe+HNsCZOI0DeJuYtl2KFNLrjyUFkvSFwPVOq75LUYiV/GUzLRl8xDvtM4ts X-Received: by 2002:a50:ef12:0:b0:435:81f3:a93a with SMTP id m18-20020a50ef12000000b0043581f3a93amr24510651eds.80.1656449662731; Tue, 28 Jun 2022 13:54:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656449662; cv=none; d=google.com; s=arc-20160816; b=XiLTZNHd+1pfm9nlg9JHsM7bTx2e/PG4cgj3/ur3CRDGVeX0R4XwGvPT+tFJYATrSK 4o9rR1JRKQvX2u1ZLCvCYV3hzp+PS2EnwoE+A7nVZHxJuqDtEQv3L5WqN+AJYSP9mdXq bhbz3Jz/yeIuTiSzmrKDYMnqtUaxbWS8lu3xcyxXkaI7UoaP3PcJ6oa8FYD+HBEVO2fE 6dKAbpSR87Zzs0AKAeCfeWspgG1/M8SrwLkhhR/gfLHtgs8Xi9px+NNL5my2CNOhLYag nTnh+tdkEMmozJEuFpBvjUzJv/O1aRcfmnvG4YiWflaMbnzMsj/l+OdrdcuwHLHq5RYB 5cAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NEX9yFbywRDEQT7vjmOWvIu1F3AF6TaoR1aYA3hMwso=; b=Rlhlx+qhNjXbdD2H3MPJCwnOZmHlxnBdIh9C+FqF/2OZB4leVnKxwzbPUja24Q0RSJ dGh+1PG4I92+GMo8czJOpQ3UwDbtxCagfSHHjszRvRmO3LPB4WN1Y+/5X7cqwoTmqnzP FDsKbu35f3B8xYfRv0L5ET21ohe4FMF7fJkSB9fhK5C+f/Af4wASe+nw03VyxVi3CH90 F6AxK+t9m8UcM0km942gIAuKkF6VSkMUSBaJEC3ln8sFdB0XDS48yOpByZEM9gibFdqe WgRdlXFVOdk7+0706X8UGhRCa9DEA4swL+tihIyKuanNVnDFcgZtwOsPNhfGFpWva+4S AOiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jWtnNgFI; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h20-20020a170906111400b0070fe457d158si6799777eja.71.2022.06.28.13.53.55; Tue, 28 Jun 2022 13:54:22 -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=@intel.com header.s=Intel header.b=jWtnNgFI; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233760AbiF1Tyk (ORCPT + 99 others); Tue, 28 Jun 2022 15:54:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232467AbiF1Tu5 (ORCPT ); Tue, 28 Jun 2022 15:50:57 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96CC82B268; Tue, 28 Jun 2022 12:49:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656445791; x=1687981791; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=42auUlJ9mEBV1h64OGRghrHR1EB9VY/2pp7kr00mF34=; b=jWtnNgFIhMALkWQWS2TQ6Li6D5A08upb/zA6uNPPzE0LdO+8Onpyxngu +voDegBTk9VTZ+yM+zl12icuHzvQDtXMW3wplNRvPhIhRsv70VYOkueiJ uhwKmxq+JxLThLSs3mObz5LMFTkz/L14NiyKLSv/Vp/jsqTpaQ1PrXcyb VmcaGY+SEYRLXSHG9kyT2xV8JiQpe1Ny+h4EdqH8pkYj+WhBAtLzEvTPK LBt9e2jfn5gbb3PgZapmYqmRNxo/KqXddfGvTSOWWyGhr/YMhioUtlkox N8Vic0QkeNWwRFJrIW5NxeKmXTvrODlHFauaCmfOB82ms5E1rUWJr5ZRT w==; X-IronPort-AV: E=McAfee;i="6400,9594,10392"; a="280595981" X-IronPort-AV: E=Sophos;i="5.92,229,1650956400"; d="scan'208";a="280595981" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2022 12:49:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,229,1650956400"; d="scan'208";a="587988569" Received: from irvmail001.ir.intel.com ([10.43.11.63]) by orsmga007.jf.intel.com with ESMTP; 28 Jun 2022 12:49:46 -0700 Received: from newjersey.igk.intel.com (newjersey.igk.intel.com [10.102.20.203]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id 25SJmr9c022013; Tue, 28 Jun 2022 20:49:44 +0100 From: Alexander Lobakin To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: Alexander Lobakin , Larysa Zaremba , Michal Swiatkowski , Jesper Dangaard Brouer , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , Magnus Karlsson , Maciej Fijalkowski , Jonathan Lemon , Toke Hoiland-Jorgensen , Lorenzo Bianconi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jesse Brandeburg , John Fastabend , Yajun Deng , Willem de Bruijn , bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, xdp-hints@xdp-project.net Subject: [PATCH RFC bpf-next 38/52] net, xdp: remove unused xdp_attachment_info::flags Date: Tue, 28 Jun 2022 21:47:58 +0200 Message-Id: <20220628194812.1453059-39-alexandr.lobakin@intel.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220628194812.1453059-1-alexandr.lobakin@intel.com> References: <20220628194812.1453059-1-alexandr.lobakin@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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 Since %XDP_QUERY_PROG was removed, the ::flags field is not used anymore. It's being written by xdp_attachment_setup(), but never read. Remove it. Signed-off-by: Alexander Lobakin --- include/net/xdp.h | 1 - net/bpf/core.c | 1 - 2 files changed, 2 deletions(-) diff --git a/include/net/xdp.h b/include/net/xdp.h index 1663d0b3a05a..d1fd809655be 100644 --- a/include/net/xdp.h +++ b/include/net/xdp.h @@ -382,7 +382,6 @@ struct xdp_attachment_info { struct bpf_prog *prog; u64 btf_id; u32 meta_thresh; - u32 flags; }; struct netdev_bpf; diff --git a/net/bpf/core.c b/net/bpf/core.c index d2d01b8e6441..65f25019493d 100644 --- a/net/bpf/core.c +++ b/net/bpf/core.c @@ -554,7 +554,6 @@ void xdp_attachment_setup(struct xdp_attachment_info *info, info->prog = bpf->prog; info->btf_id = bpf->btf_id; info->meta_thresh = bpf->meta_thresh; - info->flags = bpf->flags; } EXPORT_SYMBOL_GPL(xdp_attachment_setup); -- 2.36.1