Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2176872iof; Tue, 7 Jun 2022 22:16:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgtbisZf5zKU1U6KyPCrO9oUdBMgjze2minK5VL9lybQ8usJXIBA6pXd3HdsveDxCHZ6Qv X-Received: by 2002:a17:902:8492:b0:167:6cbf:145b with SMTP id c18-20020a170902849200b001676cbf145bmr18176126plo.26.1654665354315; Tue, 07 Jun 2022 22:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654665354; cv=none; d=google.com; s=arc-20160816; b=PnPCqDryegAc4zsvE/hJvw0wTfMjGkYK/Or0lQ5Z/niXefyiTaIl3KD9lXZVYRjYSt mJmUha7jLBwvywqUyfJKfbM3ExPLGwhfrpH6ywHqq1bYUYrALBsJ6a/QN7ethYQgeqVf 1/L2ODKntWF4MRHdWnQXk95W5vmBIvgZSScx4S+E2X2xl+ZbJapVb6DA9LEjiyP9R5w0 Ed/DkOZOtnuiXXXFD6eyhy1/BiJ+HevJfplN6TSysAA5A7RaC8EvPxNes5xsJSr/hEsj 0o4HtXVs1ba5Mrtzj06OtUaYaSu00cYX7ZjEpHab+k8Pzh4+NYrZRltM1xA9+ge8gj1y I8/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=trIBU79MD2ZqYXz6AJVM4tpcbmd/BhR2QCKmFEHT7ZI=; b=qw/xWTWhxqWelSrhFf0occ89JiJNFGWkT/Tf4n4GZYu302us1Pf0Yl/WLjBb2WxOt8 mHXX/uw/RzGqEhYYf5LZDN6Bpa+OAbEiE3vjWDfmeGXZqnYomUqOPbwCPJhU99i8ghzh B4AiWYNTht+DrI91YlWC1IJ6/XDKQ6y3YPjSblTAIfePUDZmEAJQ5Gvzv7fQn0aayz9X /k2lxHpowp1C35cllc7aNV8RlL+CQuQqNK/T3NWQxHMeXzYRCwLUfBbxVnZI+/+OuNkR 7VFGSiy9HhCeHCNPu54b/M/5WZWEV69AGYsW9afzjbTcaEmCWQiJ8yrSpJxXElIQQGGd qCiA== 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 g124-20020a636b82000000b003fd917016f9si12908783pgc.164.2022.06.07.22.15.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:15:54 -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 69099468502; Tue, 7 Jun 2022 21:45:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238368AbiFGInb (ORCPT + 99 others); Tue, 7 Jun 2022 04:43:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229842AbiFGInX (ORCPT ); Tue, 7 Jun 2022 04:43:23 -0400 Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3A685F8DF; Tue, 7 Jun 2022 01:43:21 -0700 (PDT) Received: by mail-qt1-f179.google.com with SMTP id hf10so12123902qtb.7; Tue, 07 Jun 2022 01:43:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=trIBU79MD2ZqYXz6AJVM4tpcbmd/BhR2QCKmFEHT7ZI=; b=vVnrsf+qmaxh1j0aAZbPCPAnMyFPkwXtNkrwo2u0qV06wpdcWrK09/aruC+01Y32yw Lbb9BdfUsmRVlQ8VhZVVcvoMA8GmLmvA6XiavHvgwCa019mDKxbcgR5fdyktTuNApHy4 KnOJS0gOZAmfXxOaf/gw9Lpb2L+jLIbevFQqIDnrN4R2R3/rlWaqF1C4Lqt0MD49AEi9 v27vYSgQTZrjkyr/r92Pcm9qESTXtaxhscy2G3gAKYbkJYgav/r/jiDR4x0RRrU8AKbv vK2JI0dz4ksmxosvDcmws6dLYZjOyj0pCNuz+1bQFsHh+Xo4E6yEVzq98rFRaLA+L5X7 FEkQ== X-Gm-Message-State: AOAM531cEWpfTbJDFLmPhSQBeyU2oU8rNmXWWJ0SV1amcpyxIEIQMT+K /J9PZtFxcib/0VhL29ufCLRt45c392spsw== X-Received: by 2002:ac8:5d8b:0:b0:2fb:1a6:61f5 with SMTP id d11-20020ac85d8b000000b002fb01a661f5mr21692276qtx.603.1654591400852; Tue, 07 Jun 2022 01:43:20 -0700 (PDT) Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com. [209.85.128.181]) by smtp.gmail.com with ESMTPSA id v128-20020a37dc86000000b0069fc13ce244sm13496872qki.117.2022.06.07.01.43.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Jun 2022 01:43:20 -0700 (PDT) Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-30c1c9b9b6cso167429027b3.13; Tue, 07 Jun 2022 01:43:20 -0700 (PDT) X-Received: by 2002:a0d:d481:0:b0:30c:44f1:2721 with SMTP id w123-20020a0dd481000000b0030c44f12721mr30757906ywd.283.1654591400102; Tue, 07 Jun 2022 01:43:20 -0700 (PDT) MIME-Version: 1.0 References: <20220513142355.250389-1-mailhol.vincent@wanadoo.fr> <20220604163000.211077-1-mailhol.vincent@wanadoo.fr> <20220604163000.211077-5-mailhol.vincent@wanadoo.fr> In-Reply-To: <20220604163000.211077-5-mailhol.vincent@wanadoo.fr> From: Geert Uytterhoeven Date: Tue, 7 Jun 2022 10:43:08 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 4/7] can: Kconfig: add CONFIG_CAN_RX_OFFLOAD To: Vincent Mailhol Cc: Marc Kleine-Budde , linux-can@vger.kernel.org, Linux Kernel Mailing List , Max Staudt , Oliver Hartkopp , netdev Content-Type: text/plain; charset="UTF-8" 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 Hi Vincent, On Sun, Jun 5, 2022 at 12:25 AM Vincent Mailhol wrote: > Only a few drivers rely on the CAN rx offload framework (as of the > writing of this patch, only four: flexcan, m_can, mcp251xfd and > ti_hecc). Give the option to the user to deselect this features during > compilation. Thanks for your patch! > The drivers relying on CAN rx offload are in different sub > folders. All of these drivers get tagged with "select CAN_RX_OFFLOAD" > so that the option is automatically enabled whenever one of those > driver is chosen. Great! But... > > Signed-off-by: Vincent Mailhol > --- a/drivers/net/can/Kconfig > +++ b/drivers/net/can/Kconfig > @@ -102,6 +102,20 @@ config CAN_CALC_BITTIMING > > If unsure, say Y. > > +config CAN_RX_OFFLOAD > + bool "CAN RX offload" > + default y ... then why does this default to "y"? > + help > + Framework to offload the controller's RX FIFO during one > + interrupt. The CAN frames of the FIFO are read and put into a skb > + queue during that interrupt and transmitted afterwards in a NAPI > + context. > + > + The additional features selected by this option will be added to the > + can-dev module. > + > + If unsure, say Y. ... and do you suggest to enable this? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds