Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3743551iob; Tue, 17 May 2022 06:30:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwj03CSyrkiLmC22PPwvVhG/D4FnGh5dC338RI2ys55Y2Vr6fwfg7mIgLT6QaZeYNeChn2j X-Received: by 2002:a17:906:2294:b0:6f3:bd02:95a3 with SMTP id p20-20020a170906229400b006f3bd0295a3mr19304977eja.201.1652794201943; Tue, 17 May 2022 06:30:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652794201; cv=none; d=google.com; s=arc-20160816; b=PnDSLHBXwz7lxE/cDVkgw4SGnRwodGz5fXdhYYT/BmtxkGs6SWwwu1fjUzuC56CtlL NkquEOJ3cmTVBldAA8LVNQU6H8mwC+y+3thgcjLxKwGY93s/4s0N2vQYCrYa2lHN7rv4 5FpE4Dydgta1eCT/DQaIHkMAZLVaN49V//AM1K7Hv7JcEz5/a9o6h+xkXbV0zflhalfl KFBp+Jt5bkdigxuxqOgvqBZu0zVDAZr7GyWZvfj3+It504WdrplAnfxFQU3XKLEM5GYm qpSDp79vsKPtbjXWAi8TwE7qxzjEBESkOZ0jIzII95T697XZvq7+dDPwF4wr18gqDfZf w5tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=+P39WHfUjc99UkcFAY1ULIPB4g+WLxGFl16epejwOFE=; b=MhJQ91MWb34Ultvo7OEKHjKSfu6UdOsrvFdnXu02bawV+/vUYZsAgFTpH2oor5keCO RDZonKHN5gCK9vNj43xd4Gq6B2FqPXlWi0Q59N9udrfRNzRO7RmGapn+3pVESXXBuDVU 9zc53mTgIeK2B2aDwW04GFEiVZ/5P7PsPeChnk5kBXURSmXP5BMzn/NIuFD3KROwoflr 0jiMDa9EmXAGJMjJ2HKySVvh8C9ETlVpfEZ9+rFyyCfWAhy3gxbfe7Uu/xFiKvC46PiY QymxSthZTuZTZrqtY9aKSXE10prZ4oBKbd5/BPjTUMuwPyOV21jhR0kZr6yVkR5ZcYXF K2cg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e18-20020a056402191200b0041d7658c96esi16967356edz.386.2022.05.17.06.29.35; Tue, 17 May 2022 06:30:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233847AbiEQEMd (ORCPT + 99 others); Tue, 17 May 2022 00:12:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229797AbiEQEM1 (ORCPT ); Tue, 17 May 2022 00:12:27 -0400 Received: from mail.enpas.org (zhong.enpas.org [46.38.239.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8CF243FD96; Mon, 16 May 2022 21:12:25 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.enpas.org (Postfix) with ESMTPSA id 53714FF9C4; Tue, 17 May 2022 04:12:24 +0000 (UTC) Date: Tue, 17 May 2022 06:12:21 +0200 From: Max Staudt To: Vincent MAILHOL Cc: Oliver Hartkopp , Marc Kleine-Budde , linux-can@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v3 3/4] can: skb:: move can_dropped_invalid_skb and can_skb_headroom_valid to skb.c Message-ID: <20220517061221.012e36d1.max@enpas.org> In-Reply-To: References: <20220513142355.250389-1-mailhol.vincent@wanadoo.fr> <20220514141650.1109542-1-mailhol.vincent@wanadoo.fr> <20220514141650.1109542-4-mailhol.vincent@wanadoo.fr> <7b1644ad-c117-881e-a64f-35b8d8b40ef7@hartkopp.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 May 2022 10:50:16 +0900 Vincent MAILHOL wrote: > My concern is: what would be the merrit? If we do not split, the users > of slcan and v(x)can would have to load the can-dev module which will > be slightly bloated for their use, but is this really an issue? I do > not see how this can become a performance bottleneck, so what is the > problem? > I could also argue that most of the devices do not depend on > rx-offload.o. So should we also split this one out of can-dev on the > same basis and add another module dependency? > The benefit (not having to load a bloated module for three drivers) > does not outweigh the added complexity: all hardware modules will have > one additional modprobe dependency on the tiny can-skb module. > > But as said above, I am not fully opposed to the split, I am just > strongly divided. If we go for the split, creating a can-skb module is > the natural and only option I see. > If the above argument does not convince you, I will send a v3 with > that split. I originally replied to PATCHv2 in agreement with what Vincent said in the first part - I agree that simply moving this code into can-dev and making v(x)can/slcan depend on it is the straightforward thing to do. Having yet another kernel module for a tiny bit of code adds more unnecessary complexity IMHO. And from a user perspective, it seems fairly natural to have can-dev loaded any time some can0, slcan0, vcan0, etc. pops up. Finally, embedded applications that are truly short on memory are likely using a "real" CAN adapter, and hence already have can-dev loaded anyway. I think it's okay to just move it to can-dev and call it a day :) Max