Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4139121rdh; Tue, 28 Nov 2023 12:59:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IFK7oqXw2h8u9ybBCoH3V3d/py9uMbLATOnSgxyZGq6J5foLXd1+uZsm8AfIF0OxOdvr6lv X-Received: by 2002:a05:6a20:c189:b0:187:ce5a:2a87 with SMTP id bg9-20020a056a20c18900b00187ce5a2a87mr17031177pzb.12.1701205185435; Tue, 28 Nov 2023 12:59:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701205185; cv=none; d=google.com; s=arc-20160816; b=j1QN/Zivs4DRhRSzQlJG0iT2zKUxQcxNN6mewP0GUI6/9IQ9YswfT7pWVe7zlGHyYo xMpKQX+36vmBi7a2V1ByxsLXCxO4O0LFaA75LaaKoIw14SyqW3DvcBCQ4CfDGElfy0nJ eIuyEBRR0j9qR9YeOK8N8yVnOqquQdznuyahp1A7LAzDt0tupKl6LFFblRfMeFk04dIN UP93N9z526mqB5H/aqUBAz28p/GH1yPR/M7DZszI7U0OqSvsQYJzzfRYITnbBBN3fnul AL1p/db2jMRysg4dxwXT0XBOw3AkIS4I+7B7g37MYwsIkw1UYS/+wBFkv/BkRyOWj3wU V44A== 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 :dkim-signature; bh=AbNUhuczcwR6A8GXT2sKAyrU9go3IVKOQzug3SqJ4jI=; fh=m+PkutuU/xck1DwdOJNUpyu1atl5nvANrSmxFGuesWk=; b=TIDI4uzmf+NYFMetQJeUwyaiaq6SsM02Qv2JO89YKav1QHUI/D1mtH58R5t+U7zXsF LhY+vW4HGRkeWYro8JKcwvXe5YxZjdHP450XGpp7wMpnGSjhn890FZzJje4jXHc+p//J Re50e8yBGcnf3RGmy/T3diPuXSJM8LTBpdGOH+1qxWIewQF58WCXlVZUtDrOCPQCyNi+ x5OUV4luUcon1o89WWiP2t2P3ZTLc2XE9nounnw/MymblLit2D5gBsNbAlCgkNMzNtL/ gL3SE2qPt2TrW/wQvuZ9DZHYLvLIrznlLthAs4BiMJ7LOXMh1RLsWhS6qNc+a2jSp9si ob+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oV48eUKn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id cl14-20020a17090af68e00b00284cad3afaasi13274777pjb.34.2023.11.28.12.59.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 12:59:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oV48eUKn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 292FA80B8E5B; Tue, 28 Nov 2023 12:58:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346692AbjK1U6U (ORCPT + 99 others); Tue, 28 Nov 2023 15:58:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346617AbjK1U6J (ORCPT ); Tue, 28 Nov 2023 15:58:09 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C00B1735 for ; Tue, 28 Nov 2023 12:58:10 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 592C3C433C7; Tue, 28 Nov 2023 20:58:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701205089; bh=UX5C2qgBjiUo8YBuIWLh8l0BZcz0KqX1PVlM2d6g/Hs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=oV48eUKntnEzVvcv9ghdk4dk2660mtkgGC0Rq09ovnIQzNbwC5LzvTjX/pzHoS/w3 lLE7UZJsygtUY9+gFwrkTl/tIUufnO5J+XaoPSeACsp5uhGSjr3NZlsIcqT6IMqBMt mUdIRT8gLBx/KVa/AsVZ5XPeuU4n/mlHj24sCUS3EfVqaO+1fYX0ZHIekyUhVvl1rw yJSvsUyC6LHCwm9kfTJPE/ezpij/gexK4CA3CSIK2r4EyQMTDlPD7Ff11jVcLUm388 Kf/Ejt8CDzUL0EfvfRoTI7fZgHwjeouX3YFeY+AbNe63iOFcohuGQRLioe/DbznTix OpVa7ZM6cd+3Q== Date: Tue, 28 Nov 2023 12:58:08 -0800 From: Jakub Kicinski To: Dmitry Baryshkov Cc: Manivannan Sadhasivam , davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, loic.poulain@linaro.org Subject: Re: [PATCH v2 0/2] Add MHI Endpoint network driver Message-ID: <20231128125808.7a5f0028@kernel.org> In-Reply-To: References: <20230607152427.108607-1-manivannan.sadhasivam@linaro.org> <20230607094922.43106896@kernel.org> <20230607171153.GA109456@thinkpad> <20230607104350.03a51711@kernel.org> <20230608123720.GC5672@thinkpad> <20231117070602.GA10361@thinkpad> <20231117162638.7cdb3e7d@kernel.org> <20231127060439.GA2505@thinkpad> <20231127084639.6be47207@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 28 Nov 2023 12:58:39 -0800 (PST) On Tue, 28 Nov 2023 22:35:50 +0200 Dmitry Baryshkov wrote: > Also, please excuse me if this was already answered, just for my understanding: > - If we limit functionality to just networking channels which are used > to pass IP data between host and EP, will that be accepted? That's too hard to enforce. We have 200+ drivers, we can't carefully review every single line of code to make sure you stick to the "just networking" promise you make us. Plus the next guy will come and tell us "but you let the company X do it". > - If we were to implement the PCIe networking card running Linux (e.g. > using Freescale PowerQUICC or Cavium Octeon chips), would you also be > opposed to implementing the EP side of the link as the netdev? Yes. It's very tempting to reuse existing code, written for traffic to build a control channel. This becomes painful because: - the lifetime rules for interfaces to configure vs to pass traffic are different, which inevitably leads to bugs in common code, - the use cases are different, which leads to hacks / abuse, and then it's a lot harder for us to refactor and optimize core code / data structures, - IDK how "channel to talk to FW" fits with the normal IP stack... The "FW channel netdevs" exist for decades now, and are very popular with middle box SDKs, I know. Your choices are: - keep the code out of tree, - use a generic interface with a strong standard definition, like virtio, and expect that no customizations will be allowed.