Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp67902iob; Tue, 17 May 2022 19:00:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz05S4Nf8JSnVOGRE070RKz9nt0CoLLwgR9ZmiQ3Ji2z0Da4VkoFbqJvtUvK7J/iLBJ/iBH X-Received: by 2002:a05:6402:2692:b0:427:ddba:d811 with SMTP id w18-20020a056402269200b00427ddbad811mr21915520edd.343.1652839249395; Tue, 17 May 2022 19:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652839249; cv=none; d=google.com; s=arc-20160816; b=FhrnhSgjQiBSnhUuWN0YWRirSitwsO3r9SBYfr1rumKkJO0miIREIvtteiMM+JDRKM 6pFb8UaC/p1dhJ6JlApDV+Ym+6tkPXA4mrcYSxyuHTO9hFVLXfQznvM+5ao8w0z08Abg XQm7TpmyUwfILq4zCRnWef7aAFqKhnBCK9oT1PfrfmKLLvK1aipVHHLEKPXtWEm+NqqB Y+BHwauAE8uE40PZIAX95QOZaatH9MpFS6PI98xooW2owMcHwMBMpW0za5j93p8tbxCB kcl15AWGg8SCTACAAWpCmrkakEY3LRkh8Y3TOp7EcHaFTIYsvNgco/GcU3P3T5IdUq+l O/FQ== 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=8PXASuVjmDvLcRw4eU06G4VEy5/wN18zGYoqDyUZHXA=; b=CpdsEVGTT4RTdC5sMu6Y5T8igJpZelcSvAYLgi3eeg1O0NPF/c5NRQLs+IFhZE8PnQ uj+4M3HZ2u200nsEJertDH9Rk6R0PxQ7o2sG8g7r0ULwFcAUNfcnq8pfUnPmmR9RbBm+ 7L9Ev52qyXORHHEnxeJhQ3jsrQxRIMRAR1du1PcrPBimyhMssziIGNbksxbPz9aPzd8e b7zbvVjBJbvEQf2DVgRrOH2kBc8jNbXciQii79pzjc690JbQEpcH8FiRNdp1Q21fU2nl vxHAMUaIfo409NhTMJfdxb5zhblTJypMEA/pFiyf9cWtxZEVw/pTdkMLiVwrAsGBQ7uc YUig== 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 a9-20020aa7d749000000b00425b4f69f0asi809401eds.101.2022.05.17.19.00.22; Tue, 17 May 2022 19:00:49 -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 S1350218AbiEQPis (ORCPT + 99 others); Tue, 17 May 2022 11:38:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350563AbiEQPif (ORCPT ); Tue, 17 May 2022 11:38:35 -0400 Received: from mail.enpas.org (zhong.enpas.org [46.38.239.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C171D50468; Tue, 17 May 2022 08:38:30 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.enpas.org (Postfix) with ESMTPSA id C621FFF88D; Tue, 17 May 2022 15:38:29 +0000 (UTC) Date: Tue, 17 May 2022 17:38:26 +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: <20220517173821.445c5e90.max@enpas.org> In-Reply-To: <22590a57-c7c6-39c6-06d5-11c6e4e1534b@hartkopp.net> 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> <20220517122153.4r6n6kkbdslsa2hv@pengutronix.de> <20220517143921.08458f2c.max@enpas.org> <0b505b1f-1ee4-5a2c-3bbf-6e9822f78817@hartkopp.net> <20220517154301.5bf99ba9.max@enpas.org> <22590a57-c7c6-39c6-06d5-11c6e4e1534b@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 16:35:05 +0200 Oliver Hartkopp wrote: > I think it should be even more simple. > > When you enter the current Kconfig page of "CAN Device Drivers" every > selection of vcan/vxcan/slcan should directly select CAN_DEV_SW. I'm a bit lost - what would CAN_DEV_SW do? If it enables can_dropped_invalid_skb(), then the HW drivers would also need to depend on CAN_DEV_SW directly or indirectly, or am I missing something? Max