From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mail.toke.dk; spf=pass (mailfrom) smtp.mailfrom=intel.com (client-ip=134.134.136.126; helo=mga18.intel.com; envelope-from=alexandr.lobakin@intel.com; receiver=) Authentication-Results: mail.toke.dk; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=fpbAStav Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mail.toke.dk (Postfix) with ESMTPS id 383F1982E96 for ; Tue, 28 Jun 2022 21:49:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656445793; x=1687981793; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=42auUlJ9mEBV1h64OGRghrHR1EB9VY/2pp7kr00mF34=; b=fpbAStav7WvjHQcyE2UBTurCJA5VGEuzz50G2PIo/zRiS5IkvntDxBtH XDQANsDiWR8mSJRQXpUzDXPdpduaqoCyLC7A30TuupbLgQ7z/RksopEoZ bhxo9u/gBprm/OMVoxs3ncpKx7KdedaGHokELVnL4E6CYZFZzI0JeZSPT /5H8plZz8vYmjnH7mDcy1R6Xm5SvzbSsqW5TJ4Z6GzCJq+N1aisso1e0g EAkzTpDYy4li6mhJV3segChZ0xcERaiX/krv9Joy2sfucLe5irMx0LUPu 7SIdTzrkk4/zDjLyr8OfEIIdxP9dnQWF0aO+7yP75ft2y5afbmeCzJVTK A==; X-IronPort-AV: E=McAfee;i="6400,9594,10392"; a="264874219" X-IronPort-AV: E=Sophos;i="5.92,229,1650956400"; d="scan'208";a="264874219" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.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 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 Message-ID-Hash: 4LESCYKPHCIZUBOEF3Z4SS2ADUFHPMFO X-Message-ID-Hash: 4LESCYKPHCIZUBOEF3Z4SS2ADUFHPMFO X-MailFrom: alexandr.lobakin@intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header 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 X-Mailman-Version: 3.3.5 Precedence: list Subject: [xdp-hints] [PATCH RFC bpf-next 38/52] net, xdp: remove unused xdp_attachment_info::flags List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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