Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1BDDCC433DB for ; Fri, 26 Mar 2021 12:18:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BE07661A2A for ; Fri, 26 Mar 2021 12:18:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbhCZMRh (ORCPT ); Fri, 26 Mar 2021 08:17:37 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:49034 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229758AbhCZMRY (ORCPT ); Fri, 26 Mar 2021 08:17:24 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lPlOt-00D7tn-IE; Fri, 26 Mar 2021 13:17:15 +0100 Date: Fri, 26 Mar 2021 13:17:15 +0100 From: Andrew Lunn To: Jakub Kicinski Cc: davem@davemloft.net, netdev@vger.kernel.org, ecree.xilinx@gmail.com, michael.chan@broadcom.com, paul.greenwalt@intel.com, rajur@chelsio.com, jaroslawx.gawin@intel.com, vkochan@marvell.com, alobakin@pm.me, snelson@pensando.io, shayagr@amazon.com, ayal@nvidia.com, shenjian15@huawei.com, saeedm@nvidia.com, mkubecek@suse.cz, roopa@nvidia.com Subject: Re: [PATCH net-next v2 3/6] ethtool: fec: sanitize ethtool_fecparam->reserved Message-ID: References: <20210326020727.246828-1-kuba@kernel.org> <20210326020727.246828-4-kuba@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210326020727.246828-4-kuba@kernel.org> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, Mar 25, 2021 at 07:07:24PM -0700, Jakub Kicinski wrote: > struct ethtool_fecparam::reserved is never looked at by the core. > Make sure it's actually 0. Unfortunately we can't return an error > because old ethtool doesn't zero-initialize the structure for SET. > On GET we can be more verbose, there are no in tree (ab)users. > > Fix up the kdoc on the structure. Remove the mention of FEC > bypass. Seems like a niche thing to configure in the first > place. > > v2: - also mention the zero-init-on-SET kerfuffle in kdoc > > Signed-off-by: Jakub Kicinski Reviewed-by: Andrew Lunn Andrew