Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15686564rwb; Mon, 28 Nov 2022 14:59:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf5StysIh9W87ABuLnpPL/hpTxgQRTG+vkBkhiEV6KX4itslFXrxvnxNq2W4Ml6ol7HuJNBL X-Received: by 2002:a62:38cb:0:b0:575:1d5a:bf05 with SMTP id f194-20020a6238cb000000b005751d5abf05mr8873748pfa.62.1669676377917; Mon, 28 Nov 2022 14:59:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669676377; cv=none; d=google.com; s=arc-20160816; b=hoPhWYFydyycbi2Rlch0pFyWWnPJGRPreOmpSOEBfZsUdFVcDuvNe1Rt4b2OBlbsFR JnNf6NI2yLAUlUN0BaSijKpatN9rUdm/BFW0AbwA1Sx/0wN65coliiiA9HRudq6y+jMx IHKqetq0L92A4kl1bTbfg+mKGaTdaW4DZz4BHxZ64kjRd3+aKhPWaBXqkM4YLR92aM1Z U1xeZ/ODMB2ic1e0uBih6moqV1Jdfbb0SzaqdxAGIcEWSc8/6xlrSadvSaUHyOZC3nDt v6ee33eRtQMtC0BbcGBZs2KQ/YRCl8pvWJ5ynRhm3ra63l97CTXZo0B0L1wKmwgnt6CA EO7g== 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:dkim-signature; bh=T9rYwEbRiQBED+qpRhzaD06PSzyyE+bp9qase0iwt68=; b=GaLF2wlmLIG9kHE/n1oPTWgBe6EV/se4GjkiaPtmcw82xmJzPkD4Z9pC8tqEpqv+0Q oe5scHOvOmsdtYGAYh0z7EzLnZP43nEtAB9pDxGFQyMnv8yP803nK35UkjUonJdvDhGb 9rL2y37VklnNoTbqiYlxd9prn6Wf5B2rLHSuXehjT+gbARQSyVh1FIQ4rdBBZ6yDozRs jxu3ncoTI/qH5kfQCvsFXTqA8zSCfqiiLzsramHbqHfRLv8IrJAcD7PxGHK51UdHMb9m RJoiMq1Ew/JM7GrfJj79gyLi+OOZOnoTHDhWP7mg5whVskYre1KIaYZmyKF1qV3a5yHf nG3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=0talWK4K; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kb11-20020a17090ae7cb00b0020a755f2b83si18414946pjb.100.2022.11.28.14.59.27; Mon, 28 Nov 2022 14:59:37 -0800 (PST) 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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=0talWK4K; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234573AbiK1Wu1 (ORCPT + 83 others); Mon, 28 Nov 2022 17:50:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234535AbiK1WuZ (ORCPT ); Mon, 28 Nov 2022 17:50:25 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A105A2A713; Mon, 28 Nov 2022 14:50:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=T9rYwEbRiQBED+qpRhzaD06PSzyyE+bp9qase0iwt68=; b=0talWK4KaQCdH5rTWh68JNXh5E FvGJmHuEORZ7f0M1LHuoHTeISlWVoRfrrwhKmJ1WJDZR8ifUE4CoqwY7ueglSZmvD7NgZ2MRtdgCn vekVek73CuvjTGvK2JQKLnE7SY6KWvSPqmIi7Ipzrl6DE3ZDvT5CsOv6cFWRxpRNYD4c=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1ozmuq-003nlP-MO; Mon, 28 Nov 2022 23:47:56 +0100 Date: Mon, 28 Nov 2022 23:47:56 +0100 From: Andrew Lunn To: Christoph Fritz Cc: Ryan Edwards , Oliver Hartkopp , Pavel Pisa , Andreas Lauser , Richard Weinberger , Wolfgang Grandegger , Marc Kleine-Budde , "David S . Miller" , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Jonathan Corbet , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC][PATCH 0/2] LIN support for Linux Message-ID: References: <20221127190244.888414-1-christoph.fritz@hexdev.de> <202211281549.47092.pisa@cmp.felk.cvut.cz> <202211281852.30067.pisa@cmp.felk.cvut.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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 > - LIN devices with off loading capabilities are a bit special. For networking in general, we try very hard to make offload to hardware not special at all. It should just transparently work. One example of this is Ethernet switches which Linux controls. The ports of the switch are just normal Linux interfaces. You can put an IP address onto the ports in the normal way, you can add a port to a linux bridge in the normal way. If the switch can perform bridging in hardware, the linux bridge will offload it to the hardware. But for the user, its just a port added to a bridge, nothing special. And there are a lot more examples like this. I don't know CAN at all, but please try to avoid doing anything special for hardware offload. We don't want one way for software, and then 42 different ways for 42 different offload engines. Just one uAPI which works for everything. Andrew