Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp125578iob; Tue, 17 May 2022 21:04:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8RkDdYhVoHjNLFJnm8fxDZK0PI3J97CWjXJ9TUkjW+qvcOftcg19VsVBeXe05TzYedbXV X-Received: by 2002:a63:1d6:0:b0:3c1:732a:3855 with SMTP id 205-20020a6301d6000000b003c1732a3855mr21793200pgb.571.1652846665732; Tue, 17 May 2022 21:04:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652846665; cv=none; d=google.com; s=arc-20160816; b=FRg6yUgs+pMMWvXiqN8Fb3LAep3rGVqqoqlkXCIhm7fGD6bi99y94t5RQqG003OQHk 9DIlPGnLcAFsHpuijaFdYozqEWWp8o5gF2DSr68OIP8H1HR0SjWWxd81PzldqbV+BdKx ixhmc69Lqccgbbdcjbncn6uW1dGCu8IvsSe6B37yUh9S2TbOffF5F4Eg/fp7ExRBmOGp MctF5vgb324+PICzM+E7ha++arbJNfowqk+VadGt974/Aog/lA3H8kMuwjd12/vT0XlY x5X30E3tufxs7GPlQMeso/aNxs5ShXdZbFnAfXjdJh9e0cdOKk3FotPPEiqydU0arWwt keAg== 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=rJb5NlonchyarcZPLoTxe5ctc9TX62v7tUi/0v5ZWRI=; b=Jbr2nHTCLTg+6DKcz5ka6cvSNaf5FvgeKpQPBR1sY4kOwj6jB0ukL8O/2HZDHhpl1m sVtyNzpe7zkoCq1oxVdAeQoGw51fs45BYybKEMruhsoW4Q6k0JparxsCFx1XJQ3D6MDp NVXoMhE7E+7NGhWUoUlRwUC6qgbRvpCyAE/O+K3wK2QMaPoFIxQubjumSFqngVrFaoGB 3lRdUloR7sOEGY4EMZpZxb2WNkKciwTEUj1nO6hyflG9E87Y++jfWIoRwbpzbWaQIsbD LX6ahKVkCkZdyLoM7Ym55+10RmTUASb4JVihw7AcpvOprTn1W0mzQgMQULTszn9Owjz1 G/ag== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 2-20020a630702000000b003c26048ca0bsi1014288pgh.860.2022.05.17.21.04.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 21:04:25 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C377673570; Tue, 17 May 2022 20:39:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345888AbiEQMWN (ORCPT + 99 others); Tue, 17 May 2022 08:22:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231894AbiEQMV6 (ORCPT ); Tue, 17 May 2022 08:21:58 -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 CBF7645ADC for ; Tue, 17 May 2022 05:21:57 -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 1nqwD5-0004h1-Nl; Tue, 17 May 2022 14:21:55 +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 959A78055C; Tue, 17 May 2022 12:21:54 +0000 (UTC) Date: Tue, 17 May 2022 14:21:53 +0200 From: Marc Kleine-Budde To: Max Staudt Cc: Oliver Hartkopp , Vincent MAILHOL , 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: <20220517122153.4r6n6kkbdslsa2hv@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> <20220517060821.akuqbqxro34tj7x6@pengutronix.de> <20220517104545.eslountqjppvcnz2@pengutronix.de> <20220517141404.578d188a.max@enpas.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6yob3xezug2i52qe" Content-Disposition: inline In-Reply-To: <20220517141404.578d188a.max@enpas.org> 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=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 --6yob3xezug2i52qe Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 17.05.2022 14:14:04, Max Staudt wrote: > > After looking through drivers/net/can/Kconfig I would probably phrase > > it like this: > >=20 > > Select CAN devices (hw/sw) -> we compile a can_dev module. E.g. to=20 > > handle the skb stuff for vcan's. > >=20 > > Select hardware CAN devices -> we compile the netlink stuff into > > can_dev and offer CAN_CALC_BITTIMING and CAN_LEDS to be compiled into > > can_dev too. > >=20 > > In the latter case: The selection of flexcan, ti_hecc and mcp251xfd=20 > > automatically selects CAN_RX_OFFLOAD which is then also compiled into= =20 > > can_dev. > >=20 > > Would that fit in terms of complexity? >=20 > IMHO these should always be compiled into can-dev. Out of tree drivers > are fairly common here, and having to determine which kind of can-dev > (stripped or not) the user has on their system is a nightmare waiting to > happen. I personally don't care about out-of-tree drivers. 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 | --6yob3xezug2i52qe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEBsvAIBsPu6mG7thcrX5LkNig010FAmKDk14ACgkQrX5LkNig 013nswf/crAeAo5zG26rSgyiO4+0Drl9nH1Ptc+d3qXd6HIClrOU2nT5hFOvM/K6 Woz8yqddAltpBRIccYjfYuDD02sR9U+PnhJOFohObcDr1nJiwUR1hKkZdoeKfc6B BoMaKtUxX+a54BT3AyzK2hrTm+2SwGEcmzWDkYp6e2HDLlrE66/bP55WleFIGzru hbkX387AAnKvUcEPLAb06eoYwOSyXD5I8qouMtHPVkxfRRxgN3Bl4dtvOAPs4m/M PK4cTOV+p0mPDWJn9IK1rSr+/oySE+Ashr0YisONu14ayjLaCJ70ZnAPviTpf/p5 wa5dG4B4FxGhfz8GU7dnfruvfUg30w== =gM/F -----END PGP SIGNATURE----- --6yob3xezug2i52qe--