From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ACABCC4332F for ; Thu, 15 Dec 2022 19:13:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229850AbiLOTNU (ORCPT ); Thu, 15 Dec 2022 14:13:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbiLOTNS (ORCPT ); Thu, 15 Dec 2022 14:13:18 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 174692C65F for ; Thu, 15 Dec 2022 11:13:18 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A56E561EEC for ; Thu, 15 Dec 2022 19:13:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7B4BC433EF; Thu, 15 Dec 2022 19:13:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671131597; bh=45HAReFuOBgMx5WoUPkDjtpIIb1GIz7gAZkttrJPFuA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hs1Ga/xVyE3NVc78rL/yCoizCMrbiFe6ZW+bpGIe+EvswAsVozZ14Tf/74OQBiFJX qNtMgDCjG1E4X5oi/7WwQSC0Lgi41HqIdie3p8zhmT98ic5P+Oq54EJ7L0lNsbY5Xc EZXHaACVKAKxXjt4XK5YOaXUPVtoaNYyKqIwBfBlp6xvsgc41ABNJlCMwwiomPslsE MsjWz2uEziQueDoB+BYv3GREKQQGmjbh2Ope5RV0nBYS8ir94bBucaQaK0BUHR3DO4 i/sEIxq6SuM+XHmq0yrnQlWuQ0P5y+hdoQ9kzdE1i7gS4wF0wAjhi14Epu6fg3zOVZ LNsIb6rsNwm+g== Date: Thu, 15 Dec 2022 11:13:15 -0800 From: Jakub Kicinski To: Jacob Keller Cc: Jiri Pirko , , , , , Subject: Re: [RFC net-next 01/15] devlink: move code to a dedicated directory Message-ID: <20221215111315.3637cdcc@kernel.org> In-Reply-To: References: <20221215020155.1619839-1-kuba@kernel.org> <20221215020155.1619839-2-kuba@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, 15 Dec 2022 10:44:14 -0800 Jacob Keller wrote: > On 12/15/2022 1:51 AM, Jiri Pirko wrote: > > Thu, Dec 15, 2022 at 03:01:41AM CET, kuba@kernel.org wrote: > >> The devlink code is hard to navigate with 13kLoC in one file. > >> I really like the way Michal split the ethtool into per-command > >> files and core. It'd probably be too much to split it all up, > > > > Why not? While you are at it, I think that we should split it right > > away. > > From the cover letter it sounds like "not enough time". I like > splitting things up but would be fine with just one file per sub object > type like one for ports, one for regions, etc. Indeed, I had to draw the line somewhere. Always plenty of opportunities to reshuffle and improve code which has grown organically over the years. But the sun goes down obsitnately...