Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp112366iob; Tue, 17 May 2022 20:37:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWpfbKN6gHZxO9krA7i/fuQpcagZ7dsz2LexToaGZhsmMw8kXf1tWMhucdOmS1y7BDTB19 X-Received: by 2002:a05:6a00:16d2:b0:512:c652:a2f7 with SMTP id l18-20020a056a0016d200b00512c652a2f7mr25870087pfc.9.1652845046962; Tue, 17 May 2022 20:37:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652845046; cv=none; d=google.com; s=arc-20160816; b=h+2f9S6FHQEmxrU5LPNOv1jR+p8nKk4xAs4FgdThYcIwV0sI0ky1l62hvSlrlYpYZE dmQj9ywytskLZwmweDj13xk+uMDtappuh4hEgGsuW+a/Vy5zuFH6qzkD4ggomRnMueVe Wtmm4E4vndWvZGSpHU9AZvBB4hGGb8s29NEaVvg4oaib1dE8woZwjFhRWrUSMULO5h7O ZUztl4SC3JrK5Yv0x/MBi8jTtGaBoGHarl+znAtxwp2a/7s6yj1TSoQj4CCDq/fOKTXa yf6Ssg4OIcWNEBdMpxphcDRow26ZZgkwOr3MC0PKh6Mv0CcfO2EBhZZ7z+ircY858YXT UQFQ== 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=bp3uiUFxAwcsOdhim87JzUuPeroKEUJe8Yg7vCuLIak=; b=H5A6e/jAkMIgKXIWxU2YqC3bZxNyaBE5DvbRNWyMqPKKS3+PsWO4MAFB1Zi6cWf+bJ fpw5BtOan2cS6JDzT/T7uSf+uUoYq7QFX5rjpXx03BMnaDCANU/D5Q1O2He+20IXY3Cm bFQP+bFVGnf+CQpra4Zlpy/hlGZuCqGO/yGZurbEbLarLtQTBoWNQ5qdYlxFcV6L+rBw UIqqZJQ9so8x1l0uiVAKXOa0CwBAYmKjYDMFj311WIRBj/qwVuk33k6n0emxbOsXoohH Yd8U1iAf9+jXxvMazLKHKECjoHDPN1i3dqOIXGSmZJrvhVJaqzYcBx6mMyVsI1vM99fX nrpg== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y7-20020a62f247000000b0050cf519ee15si1196623pfl.220.2022.05.17.20.37.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 20:37:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 A012260DA7; Tue, 17 May 2022 20:26:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345825AbiEQMOL (ORCPT + 99 others); Tue, 17 May 2022 08:14:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345396AbiEQMOK (ORCPT ); Tue, 17 May 2022 08:14:10 -0400 Received: from mail.enpas.org (zhong.enpas.org [46.38.239.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DF7F74578A; Tue, 17 May 2022 05:14:08 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.enpas.org (Postfix) with ESMTPSA id 26B48FF9D7; Tue, 17 May 2022 12:14:07 +0000 (UTC) Date: Tue, 17 May 2022 14:14:04 +0200 From: Max Staudt To: Oliver Hartkopp Cc: Marc Kleine-Budde , 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: <20220517141404.578d188a.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> <20220517060821.akuqbqxro34tj7x6@pengutronix.de> <20220517104545.eslountqjppvcnz2@pengutronix.de> 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, 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 On Tue, 17 May 2022 13:51:57 +0200 Oliver Hartkopp wrote: > After looking through drivers/net/can/Kconfig I would probably phrase > it like this: > > Select CAN devices (hw/sw) -> we compile a can_dev module. E.g. to > handle the skb stuff for vcan's. > > 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. > > In the latter case: The selection of flexcan, ti_hecc and mcp251xfd > automatically selects CAN_RX_OFFLOAD which is then also compiled into > can_dev. > > Would that fit in terms of complexity? 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. Max