Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp469588lqg; Thu, 11 Apr 2024 08:12:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVBwWaeG79hxrswtZRE3a2EAeRdPZvd1Vfcfyf2sGNQ/2GWsPjVhv86haSMEJTl+V+wCQJqmB1hg02J09JV3f/Yt3zgK7JJObS1kNrfAQ== X-Google-Smtp-Source: AGHT+IFGcc5jKB9eeJffPtx55+JmPrD/Sa/fbB9SY3INdic1/QDJekYoxtMsmJQUe/6WrUflX62g X-Received: by 2002:a17:90b:387:b0:2a5:24dd:bd34 with SMTP id ga7-20020a17090b038700b002a524ddbd34mr5252459pjb.27.1712848354443; Thu, 11 Apr 2024 08:12:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712848354; cv=pass; d=google.com; s=arc-20160816; b=gbgHWi9EqIl668LxdQe1ja6AZr4i9jpDpahv11SPdRY7av09FFk7W8YxvRYVHAef0q OGI79O3Fwz6+kHAKaAcvDrYI4VIOTmCnQvAytyKbvScr1NwJ16KGyb/UUUJ8KbEcw2iz 1hFCgsVZsN+tRfMd8cqZWErKcEohE1640Y/RKWnNdxGYVkH8Nx1l09p8O0SfewnzY+sd 3visjtUlsAEqid4+SVGoXH8hkoCObuUsPL1SmEtJZHLnmyz1jW/TgUywEFaz92meMofk HIFHi0thg3jn6VZ/f8hyJY2ozg45VzRdWsqM60irCYtMOKyd9Vho18g22PdMsR88Uz8t On3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=BwQ+s7pFMYyWkxkTn+pt+eAS+IanKe0sYfDQ2YZCi4o=; fh=nGNmjMRnYFB6C2eKn0vIhX0mKJKrXKh5WzqaNi2TNqQ=; b=E7cMNc9/1Lw/2qniiNSDWo6hthgbq+DFuXO8AgEE4Nnhl6G7RFf2Zi2kErf37jg5bn Jyoa8YORYfRiovZi0/MKhzoEqvwoKPy8JM9jqU9wL/r1ZwoNiG7nTKj/xLMXcV6qh4ba w+7hXfVpv5mIiElJlNFNFnv+9aJwrO3ZlRrfTqtZpoGg7sFgKVxv/sDaPlc0HxH7Yzzm kOHCM8ZyA0kfrt9ram7N8Cntec+idPyXG8BSQa1lR55ogBmvXeO1+3QNycHqROPXFWPd Mw/YLLbQJcAvPzIlbvD3+P/DgMNKDh9/USjavlVuHNSTXNuqo2rapDNRxIOuBEddyAIg Xhjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VwecqAAY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-140691-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140691-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id cq15-20020a17090af98f00b002a25ece235asi3544625pjb.95.2024.04.11.08.12.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:12:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140691-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VwecqAAY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-140691-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140691-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 2DF73B28C0D for ; Thu, 11 Apr 2024 14:47:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 21C3ADF71; Thu, 11 Apr 2024 14:47:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VwecqAAY" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 46A40F9DA; Thu, 11 Apr 2024 14:47:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712846831; cv=none; b=nXFcNrIxfXQql1eINyjTbux5H75/mfscpHfmMK2++udwoU69VouiF25IsSs3Y8TQh1Wueo92jOxtSo1dmxdeop3GlPLe1FengiMD79x0xFPbNoSqw/Pmy9Dd+JD77IwxIqQ2TXsN+IPBYf3XJrnSBE7NglEUjgLogeYooKoGvb4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712846831; c=relaxed/simple; bh=Zb0JBOe6YIm233S2t28Imn/lwnjsEqRahBqWBCo/pFM=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=M5KVV4OkOiokw7w0LPoSExmu8w//ykUYzGPrAiD7WEW9OQoYSfJk00Q4AUpOyoJ9rK55kRBPd3c1ryU9ZMEMwohG7hiXpv4QqSq87i/LOEOxWy62oYYPSu9F0mkfy3PCxuVB9bsGYu4x7XF2hIrH1EYARlw6xQhHhQw6o2cLXDo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VwecqAAY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53991C2BBFC; Thu, 11 Apr 2024 14:47:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712846830; bh=Zb0JBOe6YIm233S2t28Imn/lwnjsEqRahBqWBCo/pFM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VwecqAAYJQb2m3omWvRV1wxYx9OmhDT/0SZSWCtForipxHiXD8ZBAkwXyJLZLZGg6 LpW3kiObBAWoyx0jWpB4WoPFn6KyuORQEAGBxVGMD0E4gbU+4/SpJiqMjuXIwWlTln 6WKY/FmlEJPuEwWATY/pazEv76+TtGuod9N0YauU5w2Jy1sZkxR5XMKRaaZVckDV+z 4z849AXjgfersS2/RsoYoQGS8X0mcUR0cncW2Iva2AhZlxQWxN/5zs2mL9gq/J7pWJ xW1sT+ZXlX4VARq8mdopAzgAXi5pxbgSrwo0gJ0gtur2ihrM+pP2E2ZX/p+vywpqt3 a2ASJzpF9/YSA== Date: Thu, 11 Apr 2024 07:47:09 -0700 From: Jakub Kicinski To: Alexander Lobakin Cc: "David S. Miller" , Eric Dumazet , Paolo Abeni , David Ahern , Xuan Zhuo , Andrew Lunn , , , Subject: Re: [PATCH RFC net-next 7/7] netdev_features: convert NETIF_F_FCOE_MTU to IFF_FCOE_MTU Message-ID: <20240411074709.249b3482@kernel.org> In-Reply-To: <1f14cb75-ee6b-4a7d-9041-23a8cfcd8476@intel.com> References: <20240405133731.1010128-1-aleksander.lobakin@intel.com> <20240405133731.1010128-8-aleksander.lobakin@intel.com> <20240408193806.18e227c8@kernel.org> <1f14cb75-ee6b-4a7d-9041-23a8cfcd8476@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-Transfer-Encoding: 7bit On Thu, 11 Apr 2024 12:28:08 +0200 Alexander Lobakin wrote: > > Any reason not to make it a bitfield? I haven't looked at the longer > > patches but this one seems to be used like a basic bool. > > This whole enum could be made as bitfields, should we convert it? Would > be a big patch tho ._. As always, I haven't investigated closely :) But my thinking was - we are at 34 bits in priv. We just need to convert 2 of them to a bitfield, pick two with fewest uses. Then we can downgrade the field to u32 from ulonglong, and we can carry on adding bitfields? > > But this definitely _is_ a uAPI change, right? > > Why? It will be user visible, ethtool -k is losing a field. Whether that's actually going to break anything depends on how silly user space is. As Andrew pointed out, definitely something that should be called out in the commit message.