Received: by 2002:ab2:5182:0:b0:1f4:61d5:3ad4 with SMTP id x2csp27152lqi; Fri, 5 Apr 2024 08:54:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUm301aMFtFmnsH3i+pKFFM9fM2VxgW6ZP7VFBFcXmd+Llyhhdg21r2qraJ3Th61PNA15Dq9hhnefdIWfygETaRTWKAJAztZSoIlav54Q== X-Google-Smtp-Source: AGHT+IFj2e+baZLzbjR4hzq1/J05NFyHeOat1QnnSyx7zbpg/nMIvR0ttxXj9WLwkthGSzT5ifd9 X-Received: by 2002:a17:90a:eacf:b0:2a0:39e8:91b5 with SMTP id ev15-20020a17090aeacf00b002a039e891b5mr1799832pjb.33.1712332441792; Fri, 05 Apr 2024 08:54:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712332441; cv=pass; d=google.com; s=arc-20160816; b=tz/BRSqFlfR+bsmdbF0AlfSn3I+UUCRyWBv3WPa8UEP8QfgrZW9SY6w4hDMgWtMkhe sGxD4Jg/6XI6/0PPTN4yVl9rmhYFGIkeqZNkMrvRvawu1XFSy8ZyuvAn7ayiFUa6Yp8E xE83pPLrxgx7ICTSHmbVAd3Cgr4RHj6mgAPHWDb3/o20wqBePedTS6tENSSVGBgnI+I0 9Vmuaq+3yK87gohFD2VmBeLiVJ2tGMN1NxHV71dQDJy/p/gNiNMaIacQbtKxUfYdt06c tAgDHZ5J/Qm1y/zBAwUDmPXSWLkGyrSf2ytawWJcA5WV3Zxh4J6Eg1147tKEbVCGcaVi Kv9A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=S57qMLoX/N03NSRqT8ItgFLssRfNbaxDJ602DHQX86Q=; fh=y1T/ZIPOKr4S3B5S6tpIl6yHUmYxr3t5+gq77JU+H0w=; b=Jj6+KI4XT4rJGNcoWChue8BwK65Q+jR+L8hCStMaDDpyk89Ai13CU7lT/nty7OBcKL LISyMbu7fQXHVhegkuQgAe3OhRz2nUR7yGgXM7ByGgPsYjOdGSxv9BtgDV/IDVKqO9Na knuXYQtVF6inGuG01g4ehD4hJMGOcMJNGBF0Xu7UaIynniqsRjoeQXg65AERK8QjfGDj CjSxBH1F0NR9BU2Ozf9QB+ipylnkUfQKQ4r9CBNIX+b00NnGd52jpAX4qptnNnf1aFWO D1q3zlXVTqlFuXRtcZ6MeO6oPFltd9IUrpy/4zmgX7W1Gt/EjhgxaWwF9qk2bXQ9FfJN +aFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=kgerwkWI; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-133276-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133276-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id gp11-20020a17090adf0b00b002a0409736a1si3736677pjb.183.2024.04.05.08.54.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 08:54:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133276-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=kgerwkWI; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-133276-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133276-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2B00CB26C6C for ; Fri, 5 Apr 2024 15:42:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D711E16FF38; Fri, 5 Apr 2024 15:42:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="kgerwkWI" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 728C516F909; Fri, 5 Apr 2024 15:42:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712331727; cv=none; b=nGcK5LKZOEHJRFgZ1xaPaynmZYA0SFQP445vhyf1CJFjs0HQIbP7sVzgEAYT65XBa6moNPQXYl2MadjLg5b4Br5NXw/gSdhpGOKtfVBzmbtqixtTqJZz2bSXnAwdzMUmtWR6wJxqGvyW4XvDMz0eFRSMCfRlVTadC0KxEcncAzs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712331727; c=relaxed/simple; bh=akVLxZ0gpLRY8TlRqVNs9BhyJy3GXMw2rIkL1JXP3Hg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Z6RNVKxbhiVhQbNJfulnIw+IiNY/95PU/5z6ujsMe6CR0Bzj9Sk7BkChJtS4SShyh2z1QbeixynCnGFZwoJgGis17IIjhbp0rXpS5KAcORvdx6bawguVUYevcnMqT90h+oJSQEXQwcw4lRITUOAeXRpK26mSqLgxoTjK4oJVYn0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=kgerwkWI; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=S57qMLoX/N03NSRqT8ItgFLssRfNbaxDJ602DHQX86Q=; b=kgerwkWIGchJgjxLMSKV8H6iVL gi7daibq/FhGvRLZuOJf2aspraCNzLS6tI6gpqI2VD2AzNz1XzHmM827BBenkUgJSUzEuB53d3s5a DVbT4O0eFc3ZMMh5IM+6SH5qVNBw9J9r1+y3rH2JEQqQBwljyShFWuqGH+0LeQ8XY9dE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rslhL-00CJiq-KA; Fri, 05 Apr 2024 17:41:47 +0200 Date: Fri, 5 Apr 2024 17:41:47 +0200 From: Andrew Lunn To: Alexander Lobakin Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , David Ahern , Xuan Zhuo , nex.sw.ncis.osdt.itp.upstreaming@intel.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC net-next 1/7] netdev_features: remove unused __UNUSED_NETIF_F_1 Message-ID: <10a14ce9-1cbb-4906-8363-99c8fc3c7fb6@lunn.ch> References: <20240405133731.1010128-1-aleksander.lobakin@intel.com> <20240405133731.1010128-2-aleksander.lobakin@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Apr 05, 2024 at 05:15:58PM +0200, Alexander Lobakin wrote: > From: Andrew Lunn > Date: Fri, 5 Apr 2024 16:12:50 +0200 > > > On Fri, Apr 05, 2024 at 03:37:25PM +0200, Alexander Lobakin wrote: > >> NETIF_F_NO_CSUM was removed in 3.2-rc2 by commit 34324dc2bf27 > >> ("net: remove NETIF_F_NO_CSUM feature bit") and became > >> __UNUSED_NETIF_F_1. It's not used anywhere in the code. > >> Remove this bit waste. > >> > >> Signed-off-by: Alexander Lobakin > >> --- > >> include/linux/netdev_features.h | 1 - > >> 1 file changed, 1 deletion(-) > >> > >> diff --git a/include/linux/netdev_features.h b/include/linux/netdev_features.h > >> index 7c2d77d75a88..44c428d62db4 100644 > >> --- a/include/linux/netdev_features.h > >> +++ b/include/linux/netdev_features.h > >> @@ -14,7 +14,6 @@ typedef u64 netdev_features_t; > >> enum { > >> NETIF_F_SG_BIT, /* Scatter/gather IO. */ > >> NETIF_F_IP_CSUM_BIT, /* Can checksum TCP/UDP over IPv4. */ > >> - __UNUSED_NETIF_F_1, > >> NETIF_F_HW_CSUM_BIT, /* Can checksum all the packets. */ > >> NETIF_F_IPV6_CSUM_BIT, /* Can checksum TCP/UDP over IPV6 */ > >> NETIF_F_HIGHDMA_BIT, /* Can DMA to high memory. */ > > > > Are you sure this enum is not ABI? > > Why should this be ABI? It's not a part of UAPI and Ethtool receives > these bits together with string names. As a reviewer, i think about ABI. When looking at a change like this, it is the first thing i think of. Our code is not always clean, there could well be things outside of include/uapi which influence the ABI. For some reason ("net: remove NETIF_F_NO_CSUM feature bit") renamed rather than removed it? Why? I assume you have looked into the code in this respect, you have tested both and ioctl and netlink code, and concluded it does not cause an ABI change. It could of been removed in 3.2-rc2. But i don't see anything in the cover letter or commit message which indicates you have done that. That is partially what the cover letter and the commit message is about. Explaining things you have done, but cannot be seen in the code change. Andrew