Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1606089lqz; Mon, 1 Apr 2024 11:10:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXIHzLZ0LZbDeFVEaLBzsEnydm42oRJtpC/skQXREtxbOwuM5RdubBW2hxI2dUZH6kgQWxZ2JcbxDYikv+l4+u6oMNnfYXeM7eZkDJO4Q== X-Google-Smtp-Source: AGHT+IH2OlPQvJ2KTkX9aJVHGS7+ufsVfSYuOh9/Jr1G8gcnGTmrfDKxwpR2QJe5mS/dP0SQ/PVZ X-Received: by 2002:a50:99d5:0:b0:568:c621:c496 with SMTP id n21-20020a5099d5000000b00568c621c496mr6608113edb.42.1711995047597; Mon, 01 Apr 2024 11:10:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711995047; cv=pass; d=google.com; s=arc-20160816; b=nFCRZ25lLv4y9PqhdnknP39MYVBoIt2ooWIf09MGxrs+4H2LBdU6xOsHw/Tf1tf8d5 4QpzvGrQPCj+v+Ck//idDqjsUI/teKcHvvJWdhJYKdavyNT455FOWwKrX1FZJzQxWShj f3xEWDr2sXN1NHXWYRSsVQ+HtFvguUdgRcTsgbPgA/N4YHayfG901jczjPDNDqBBtjGE suk3Oi6X2OyTlmkP5Rh9aBzL4llGpFpJZHjw+tBGYsQC3ZCNgZEihu7Y+Cv6hg/JFCVs dua5j93RmnBz2BQFQZICX5OueffASNdrLEW9bNM2RkZjVOk5tTt/DlIzuVUvMK1Ploh9 1W9g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DxYPeAKjL0TrvTjkTQEtdnaO3meXLLuDiSn7UU45b6U=; fh=DppK+88jEiOIX4kHFbd1FO2NpKWO29MZFImqTIXChJs=; b=QLnA3vMCfDjV0mdvNxRob/kgi7sXTx3PCdPnuAjs8u6Zkuak7dRrBnjE/E5qaIaBur Mrkm6r0sSuCVHOp6s/U9L7jVPg4qFIVARsTqXO/l9tUIuWVZw2lBO28AB0yHbmVZbHi7 Tr2QnNpFZbWuZym0z6hxN0MihuW7rxlsBaAFPOJTXR4Te8DEZWc0ggWEZmW2qpW423as Bmqb8LZGRDv0iO0CzSMBbRUDkinWQQM/3kUG0qp5q/wqI/K8yiJ8snpLvakY/aZUs9bl fITBTr7o63YCnCl/nd7ElWzpvQroDEbAkFFXzg9838hm0yeqyasHgim6prXabY4Behqj iiMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QSldP6+v; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-126934-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126934-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v17-20020a50a451000000b0056bdc9bb274si4953362edb.217.2024.04.01.11.10.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 11:10:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126934-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QSldP6+v; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-126934-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126934-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 546C61F22717 for ; Mon, 1 Apr 2024 18:10:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B95B64F207; Mon, 1 Apr 2024 18:10:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QSldP6+v" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC0C24CB4A; Mon, 1 Apr 2024 18:10:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711995038; cv=none; b=dcztpc9mPi0osRQ4/ExdpTOcNf++x0H3Pch6K2lfIjsLKpXlmZPuYhRvjqfNhNgi786XjE11yWiRm57Pc4mQm+WBEoEUw6QG6JvSXwZIYhDUdoOzo15sFOkPp992OyYMHkaYGOqTyuWnwdqYq5JCk1rPbG0pITgXJwN/jMpYLiM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711995038; c=relaxed/simple; bh=78DLdqeSgM1RtaWGO2k/xw8JMdBQKvp0dSS14sJVHyk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=G1tcPCwrJXNtdV1hvc7yQeG1SV4Hn5e6ZnZxivj37V7pn/R+yWQdbk/hso0IuGZ3W03BVT9M990BmE1lvJ1o6+IjP61ZnMprBruwVpK6lWNlyk/uY1/tJXYYdpHpWL9WUWOUerKQbPjAnC+XPNbOzrfZORy6cwafhkmBktyfH34= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QSldP6+v; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE8D3C433F1; Mon, 1 Apr 2024 18:10:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711995037; bh=78DLdqeSgM1RtaWGO2k/xw8JMdBQKvp0dSS14sJVHyk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QSldP6+vCnxMNePaiRrsF/zkYBTD1yw288UTedsSLs2BFyJNzcRCJDbb9uaksUULu ydGHfWTxEqT7gkeT0DI1OkR3DZhSApqnnD/sJP8ieYF1JkrNmHvzbfMXpSB5jYKVzD beCR0p7YIStpOBXHEwZ3bcJFqHIBW4Tp7CRAeUpl0Zhdaq0QE4zrdKloDh9vKUv7AP DUsLro/gBcz3IQvy8pyj7ozf7xfxmn2p9C8HoprVmD8xl5biBsiP+6LWdtxvNZ9ryh PpRoupUtrrnuI1q967+gK6VPMHAUvc6rqj6VsNLOgn8u+4iuArLuaxVZkyhOxFFH+u RT+tgNc4fYODA== Date: Mon, 1 Apr 2024 21:10:33 +0300 From: Leon Romanovsky To: Jakub Kicinski Cc: David Ahern , Greg Kroah-Hartman , Jason Gunthorpe , Christoph Hellwig , Saeed Mahameed , Arnd Bergmann , Jiri Pirko , Leonid Bloch , Itay Avraham , Saeed Mahameed , Aron Silverton , linux-kernel@vger.kernel.org, "netdev@vger.kernel.org" , Andy Gospodarek , Junxian Huang Subject: Re: [PATCH V4 0/5] mlx5 ConnectX control misc driver Message-ID: <20240401181033.GB11187@unreal> References: <9cc7127f-8674-43bc-b4d7-b1c4c2d96fed@kernel.org> <2024032248-ardently-ribcage-a495@gregkh> <510c1b6b-1738-4baa-bdba-54d478633598@kernel.org> <20240322135826.1c4655e2@kernel.org> <20240322154027.5555780a@kernel.org> <1cd2a70c-17b8-4421-b70b-3c0199a84a6a@kernel.org> <20240401123003.GC73174@unreal> <20240401075003.70f5cb4b@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240401075003.70f5cb4b@kernel.org> On Mon, Apr 01, 2024 at 07:50:03AM -0700, Jakub Kicinski wrote: > On Mon, 1 Apr 2024 15:30:03 +0300 Leon Romanovsky wrote: > > > The proposal is an attempt at a common interface and common tooling to a > > > degree but independent of any specific subsystem of which many are > > > supported by the device. > > > > > > Your responses continue to align with the notion that because the device > > > can spit out ethernet frames, all diagnostics, debugging, configuration, > > > etc. MUST go through networking APIs. > > > > > > You seem unwilling to acknowledge that devices can work for various use > > > cases without a netdev driver, and thus aspects of managing that device > > > should be done outside of a netdev driver. > > > > HNS driver is a good example of such device. It has nothing to do with > > netdev and needs common and reliable way to configure FW. > > Sorry, I have a completely different reading of that thread. > Thanks for bringing it up, tho. Different people have different opinions, and it is fine. > > As I said multiple times I agree that configuring custom parameters > in RDMA is a necessity. Junxian's approach of putting such code in > the RDMA driver / subsystem is more than reasonable. Even better, > it looks like the API is fairly narrowly defined. It was a tiny example, which emphasizes the need for a common way. If we were listen to average RDMA driver author, we would find ourselves with gazillion different sysfs knobs which do nothing except sending raw data to FW. As a subsystem, we don't want to waste our time in not-beneficial to the subsystem code. Thanks