Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3785442iob; Tue, 17 May 2022 07:13:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeLGwcNcOWckSj/KDEMG+Qfq2SiMIsM/E8+kkzyvf0GqMYnEVGL1ybWzvrnLH3pAUzyB2Z X-Received: by 2002:a17:90a:468d:b0:1df:39da:322b with SMTP id z13-20020a17090a468d00b001df39da322bmr14168738pjf.137.1652796826774; Tue, 17 May 2022 07:13:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652796826; cv=none; d=google.com; s=arc-20160816; b=DvjwzIZC48uop9DT4GihzAIrNGucciUXruksyADxdsFCUT7AtPryBQbbslTIYmRXT4 uiCsNQV2AzBw/Gx5qde9SaxzU5tfQ9I1+ulcnzbbAHU2a2TDE1sVvkxYuYzFJ6cOnhEE +BHEbLPXf329Rxg5Zg5dQ9gH9wAyKRQOyB2+yq4L0Gya+xD/F0p+t3f4eakuPZoA6Hq6 fP1B56DFqj4LmGb7o0KC1vFKxroWGLEJym36dhTeN1PY0AGPnWPhf1yCAqGwGbID0I1g MuFXg1wNTUUK7ufTsb/9bAdShFaJma8Q+v/Pd4zBtXYBFzCigGk/cy0Ov/mZND8NGm2z YxGg== 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; bh=YU547F/lAoWTASZCCxhj44TKz0i6assXCfLvHul/Bs8=; b=MqVQ0Kfnz+TnKRSwLwwxzsHpLJpdYa1DPYCSFadEI+ILmF9O33q3g5/t2T8HsbALqt 8JLrrccY119gdTOvcK8+rOz2IPHB3zSSuYmiWpJhe4YtJ591H1E3xTzmAgCPFHagmHNT bjBcNyyvBEy7lKaovbTE8PF8RSKT5k5lPRPeYyDO+D/qyzFALhT30EO7q8N4wNHPxEjH eCEwyP8sXHSuxU4E7427j9pkmomBxLvDCLb7sh6Yy3sxvqyEIx6gDBPIdrOLfFoERrTk cWGstf7LlOCsEs8NKIJbxDmN19a9xldWu9VXwHHhrnh9l7PHogurudaX2U9ENKMSyiXr y5hA== 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 be10-20020a656e4a000000b003aa91d7703esi17172523pgb.812.2022.05.17.07.13.34; Tue, 17 May 2022 07:13:46 -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 S237287AbiEQGIb (ORCPT + 99 others); Tue, 17 May 2022 02:08:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233340AbiEQGI1 (ORCPT ); Tue, 17 May 2022 02:08:27 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EA9437A37 for ; Mon, 16 May 2022 23:08:27 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nqqNc-0006wY-Km; Tue, 17 May 2022 08:08:24 +0200 Received: from pengutronix.de (unknown [IPv6:2a01:4f8:1c1c:29e9:22:41ff:fe00:1400]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 80C417FF92; Tue, 17 May 2022 06:08:22 +0000 (UTC) Date: Tue, 17 May 2022 08:08:21 +0200 From: Marc Kleine-Budde To: Vincent MAILHOL Cc: Oliver Hartkopp , linux-can@vger.kernel.org, linux-kernel@vger.kernel.org, Max Staudt , 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: <20220517060821.akuqbqxro34tj7x6@pengutronix.de> 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: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3brhaeolxdtxpqfu" Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --3brhaeolxdtxpqfu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 17.05.2022 10:50:16, Vincent MAILHOL wrote: > > would it probably make sense to > > introduce a new can-skb module that could be used by all CAN > > virtual/software interfaces? > > > > Or some other split-up ... any idea? >=20 > 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? If you use modprobe all required modules are loaded automatically. > 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? We can add a non user visible Kconfig symbol for rx-offload and let the drivers that need it do a "select" on it. If selected the rx-offload would be compiled into to can-dev module. > 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 s= plit. regards, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --3brhaeolxdtxpqfu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEBsvAIBsPu6mG7thcrX5LkNig010FAmKDO9MACgkQrX5LkNig 013nNQgAs6sXnBTJ3oYKGxGuF0zVVmtQc7oenY5YfI2tsw0mDOYsyaPSrvt5hSwV MYGVyp3pFx5D6wQJlmZnjK3ZLStPm6nw9wuHcrZDcSazZVOGwTm6+DNI0neUfjI1 kjEXywoc5taDm47he6CnHSc0dvXzgXQLuCrJRsi7P2zUcPdmhgQL1L+0QmuC6dJD biLKlIt5LxE2iiGB87k1r5qak8x3qO9EpomYM68Od0wfIKEQo+ivpFYFClBROxbT HdQcAKxpH8D8oYR967690GN9lbpJgzrOfTy+sgeSfb/MnirmJOUFppTd+TJat1tW LWPcfpQ6aXMwU5eD6+W7iMLMOpN9HA== =ZwuT -----END PGP SIGNATURE----- --3brhaeolxdtxpqfu--