From mboxrd@z Thu Jan 1 00:00:00 1970 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 C2F9A1F17B; Wed, 1 May 2024 14:44:22 +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=1714574662; cv=none; b=Y38WZoSIhNZHtVD/k+MgdeLSCB4LfrWkb0uHHOD2qQ1VQvPZXUELMq2Ap6nD7lJTcypchg5bDeXbwgQ+wuKAVJCPSFVXoTZs+YTABKkUc0sT0+u8qaWyQSMwKFBqKi4h1glChAOHgqzxPmvYL8tTN5zOsloCNTrpvqNnh8Zk/zY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714574662; c=relaxed/simple; bh=KpgBLuvahv1swO9jxxfBhJtTgwYOnlVXsVrM2js3DXs=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=H1MySYRFBG1Wyh6UIDdQ/HeKGIOSakgzzgYi+Z/58c8eabGIZ/lfD6KbbiTgYn9ltRxHuGrhsWrReLW+98tAWzbS4gVoxwaqe4dHfHXyRWrMyGxOGwCbY3SnFpX9uoSCE9UlxE87ZZ+UQPpBx20RCeXzHSIJeTYoQGkE9Tw10Ro= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HyPxZrny; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HyPxZrny" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55A6BC072AA; Wed, 1 May 2024 14:44:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714574662; bh=KpgBLuvahv1swO9jxxfBhJtTgwYOnlVXsVrM2js3DXs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HyPxZrnyG8QiQZ3dSCCTUMtYvN31EH4iIsP9AzhzFcgjwl9R5eT94CmJIDKdTad/9 jzzXqkJ6kPVoX+6Q7uHdLFZAmsqclsa5IZMoZiZFXmkx6+LUxPuUtMUSO0LIaf/oOK MhBy1xW1Mt33PQtYJMjWKkYcP/mbY9od+FFm03Twg+kuP/DXIJdEMKFuJ0u0tPHfLH gR23dl1y7ZC3u1SwB3L2uXOzJNsN7Aub1YovFl2BmzAqGC2S+R0APlhhE2r8Msd7Zi NZa/BYfRxzkekTWDUQyvP2TG1TpU7oN9SreBtuRHuMAmiP2W+F7o409wzCChYZKVOm dGKVJPybTYKMQ== Date: Wed, 1 May 2024 07:44:20 -0700 From: Jakub Kicinski To: Heng Qi Cc: kernel test robot , oe-kbuild-all@lists.linux.dev, "David S . Miller" , Paolo Abeni , Eric Dumazet , Jason Wang , "Michael S . Tsirkin" , Brett Creeley , Ratheesh Kannoth , Alexander Lobakin , Xuan Zhuo , Tal Gilboa , Jonathan Corbet , linux-doc@vger.kernel.org, Maxime Chevallier , Jiri Pirko , Paul Greenwalt , Ahmed Zaki , Vladimir Oltean , Kory Maincent , Andrew Lunn , justinstitt@google.com, netdev@vger.kernel.org, virtualization@lists.linux.dev Subject: Re: [PATCH net-next v11 2/4] ethtool: provide customized dim profile management Message-ID: <20240501074420.1b5e5e69@kernel.org> In-Reply-To: <1714538736.2472136-1-hengqi@linux.alibaba.com> References: <20240430173136.15807-1-hengqi@linux.alibaba.com> <20240430173136.15807-3-hengqi@linux.alibaba.com> <202405011004.Rkw6IrSl-lkp@intel.com> <1714538736.2472136-1-hengqi@linux.alibaba.com> Precedence: bulk X-Mailing-List: netdev@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 Wed, 1 May 2024 12:45:36 +0800 Heng Qi wrote: > > net/ethtool/coalesce.c: At top level: > [...] > > 446 | static int ethnl_update_profile(struct net_device *dev, > > | ^~~~~~~~~~~~~~~~~~~~ > [...] > > 151 | static int coalesce_put_profile(struct sk_buff *skb, u16 attr_type, > > | ^~~~~~~~~~~~~~~~~~~~ > > > > This is a known minor issue, to reduce the use of 'IS_ENABLED(CONFIG_DIMLIB)' > mentioned in v10. Since the calls of ethnl_update_profile() and > coalesce_put_profile() will only occur when IS_ENABLED(CONFIG_DIMLIB) returns > true, the robot's warning can be ignored the code is safe. > > All NIPA test cases running on my local pass successfully on V11. > > Alternatively, I remake the series to have IS_ENABLED(CONFIG_DIMLIB) back, > up to Kuba (and others). :) You should remove the ifdef around the member in struct net_device. It's too much code complication to save one pointer in the struct.