Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1945780rdf; Sun, 5 Nov 2023 22:54:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IGIBAFxOOjEhnsBW2ngBTn2uEnhZ4e6eJ8Y+sYVNoG9zM2jWiN+rerYeoaXK4t0aU8imCM1 X-Received: by 2002:a05:6300:8086:b0:180:ebec:da1e with SMTP id ap6-20020a056300808600b00180ebecda1emr16929461pzc.21.1699253687483; Sun, 05 Nov 2023 22:54:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699253687; cv=none; d=google.com; s=arc-20160816; b=j6eqXaR4oFt4yghEmu4RIUOUObxyyysWo4hkhAVM9HQJTDS2WQm8A6e/xJSLFM+MDf 3V5MUm8Z5GHONHmxfbObgdCeRiu4CydIAqcN2WrKaDhw3hydzotEFknmWlpqIULMv+dC PVS6HlRJT873kTi0vnNSBoshWVtvhC9bdreh9A9MUvFTsiUJ9WXd7aANDctoAlOHZQtJ mm772um0Xu+4YMnFe/PX1WetaN1AZHDTHbsZiwUu1+bEcFpZ3kAEDdS0B9yaExhFh0L7 byQ/pRaa2TnRyRbDb81R0CB83E8sJgFA9WamNs6lcJSlE1nrrUjQJjB6FJV6ckKSbmEt 7eCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=82OF1pZ2F1Zi82nG9gN8/zC1mNaKAuu704sBAxgQqDY=; fh=Kc5oGsH9HeXwTrWMQfQu0cmgAKzaXsEXAFP9MfnNi6M=; b=U0Fw0eUZWiEAlYMn7TfuQ4BxtLK/9fXFbitdUCgs2CjtwZcGtIMR9RC0yNRmwK86Eq cmG54GhFj3wn8lohK2qL6SSwp/XJBRjS76i8RpYdEgqIO+f4/s992a6uFI6Sa2xSy7iJ xC0dFI8kjSOHfscdZH23RLRziKUVG3Wqw7X+tmN31TLcDW6t+AbTluAtnKzdLbnA5eHZ RV3N/KdW5Khm/YDsCWRbbrdyJrF+n46uWIf4sValJDnUPMNiBmLY7UiHH4PO3oHUg2Id J6f6wFwXsmXxXUfKDCynphfx9hBbzo18TcXGtFpjr80+cjrbeLQFusJGOVM8zj60QTxb KWyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j26w1Ye4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id x7-20020aa79187000000b006be31836ce4si7026232pfa.309.2023.11.05.22.54.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 22:54:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j26w1Ye4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 296DC80A2340; Sun, 5 Nov 2023 22:54:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230487AbjKFGyb (ORCPT + 99 others); Mon, 6 Nov 2023 01:54:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230312AbjKFGy3 (ORCPT ); Mon, 6 Nov 2023 01:54:29 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4FE29C; Sun, 5 Nov 2023 22:54:25 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADB6CC433C7; Mon, 6 Nov 2023 06:54:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1699253665; bh=EntPlRifOGbbk3ujSL4xtP86KIkN/FnEjRD6b7R3YTY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j26w1Ye4CDavLpD27dhAnMUk+A6+ndEv2dZYrG0Nabf1DRbw4XUOOFZm4kiuRkvor /Szn0pfh+ax9Om0u7x5WysEPZTqCWB+GkjlH4zc2hHqq9ctdeGocZhOUfLtkfeYcbr UCeqefaiBaRvD94JT2AfBaLK0WjUaNfK1Sz3V8Is= Date: Mon, 6 Nov 2023 07:54:22 +0100 From: Greg Kroah-Hartman To: Benjamin Poirier Cc: Kira , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Manish Chopra , GR-Linux-NIC-Dev@marvell.com, Coiby Xu , "James E.J. Bottomley" , Helge Deller , Sven Joachim , Ian Kent , netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, linux-staging@lists.linux.dev Subject: Re: [PATCH] staging: Revert "staging: qlge: Retire the driver" Message-ID: <2023110655-swarm-parka-177d@gregkh> References: <20231030150400.74178-1-benjamin.poirier@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231030150400.74178-1-benjamin.poirier@gmail.com> X-Spam-Status: No, score=-1.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sun, 05 Nov 2023 22:54:44 -0800 (PST) On Tue, Oct 31, 2023 at 02:04:00AM +1100, Benjamin Poirier wrote: > This reverts commit 875be090928d19ff4ae7cbaadb54707abb3befdf. > > On All Hallows' Eve, fear and cower for it is the return of the undead > driver. > > There was a report [1] from a user of a QLE8142 device. They would like for > the driver to remain in the kernel. Therefore, revert the removal of the > qlge driver. > > [1] https://lore.kernel.org/netdev/566c0155-4f80-43ec-be2c-2d1ad631bf25@gmail.com/ > --- /dev/null > +++ b/drivers/staging/qlge/TODO > @@ -0,0 +1,28 @@ > +* commit 7c734359d350 ("qlge: Size RX buffers based on MTU.", v2.6.33-rc1) > + introduced dead code in the receive routines, which should be rewritten > + anyways by the admission of the author himself, see the comment above > + qlge_build_rx_skb(). That function is now used exclusively to handle packets > + that underwent header splitting but it still contains code to handle non > + split cases. > +* truesize accounting is incorrect (ex: a 9000B frame has skb->truesize 10280 > + while containing two frags of order-1 allocations, ie. >16K) > +* while in that area, using two 8k buffers to store one 9k frame is a poor > + choice of buffer size. > +* in the "chain of large buffers" case, the driver uses an skb allocated with > + head room but only puts data in the frags. > +* rename "rx" queues to "completion" queues. Calling tx completion queues "rx > + queues" is confusing. > +* struct rx_ring is used for rx and tx completions, with some members relevant > + to one case only > +* the flow control implementation in firmware is buggy (sends a flood of pause > + frames, resets the link, device and driver buffer queues become > + desynchronized), disable it by default > +* the driver has a habit of using runtime checks where compile time checks are > + possible (ex. qlge_free_rx_buffers()) > +* reorder struct members to avoid holes if it doesn't impact performance > +* use better-suited apis (ex. use pci_iomap() instead of ioremap()) > +* remove duplicate and useless comments > +* fix weird line wrapping (all over, ex. the qlge_set_routing_reg() calls in > + qlge_set_multicast_list()). > +* remove useless casts (ex. memset((void *)mac_iocb_ptr, ...)) > +* fix checkpatch issues In looking at this again, are you sure you all want this in the tree? I'm glad to take the revert but ONLY if you are willing to then take a "move this to drivers/net/" patch for the code as well, WITH an actual maintainer and developer who is willing to do the work for this code. In all the years that this has been in the staging tree, the listed maintainers have not been active at all from what I can remember, and obviously the above list of "things to fix" have not really been worked on at all. So why should it be added back? I understand there is at least one reported user, but for drivers in the staging tree, that's not a good reason to keep them around if there is not an actual maintainer that is willing to do the work. Which reminds me, we should probably sweep the drivers/staging/ tree again to see what we can remove given a lack of real development. Normally we do that every other year or so, and this driver would fall into the "no one is doing anything with it" category and should be dropped. thanks, greg k-h