Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7223059rwp; Tue, 18 Jul 2023 11:54:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlE0yyxhTu7VTHLzEYEvwx712IXKROzPLTqTVNx6mNngPpjG8UTP/1AdncRKjzZ4zYr5R5UC X-Received: by 2002:a17:902:ce8f:b0:1b1:9272:55e2 with SMTP id f15-20020a170902ce8f00b001b1927255e2mr656640plg.3.1689706478920; Tue, 18 Jul 2023 11:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689706478; cv=none; d=google.com; s=arc-20160816; b=o/Osw0oQWW+MFmoVEjNBsJ2xx58sDWhgAL2tCyG+CWZMvBhsXwXPpE6gheVfyHGxIr kjKibRLB8qAvmU+RX7wm9qHKF3zQuEWTQZzK1MkR9s8SnAef312Dro+++2Vd8Ywu6t4L I9fUcwpdSpds/0rKLhu3yBXZ4I09DdCTCiLkiJqc7PwuYrla99nTy9B1AAYmih3xjg/D JnQGd45hm16T0SJam2yc8FX/QLGzJNalPD0XrlFmMwO4jtju7nCAwY8sEbwr59Ehxh0T Wpi48p3I9pkDWLobDz8xwctNhtLfeRpF5WsAueiT++8uW8mUXSjIxS9bj5MndMfZJjIi CCRA== 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=o5ykCrFPjNDcVsrIwUYDDKDt7L3xFmn5Ahk/iR/h5WE=; fh=yJbcxwrJiGcFNLjm/+SJC9lb+3d/aie/Y/Bb8D4CkzA=; b=xi5eyiXl8DZZZr20C8lJ2YGMWNq/VVzwewj90RlGY7sU5KYaWFgWBkEfgMJ8tCZl3m NLygKXwTbT5OvLR0yj4MNcLxch6wlsBsEJzbBenwNiywVdLlY/2cC6+hZg7pJjSGNtIG JwhJMEF4U9SEjD3rj2R6myheT9F2VzNv4tohlBB7Z+0s2ewclmsZaWTkOwu4BS/L1cp/ /Kk/pwCwUIl2iqs21ABRYnMUJP0emmlTSvsPnJnx+OcSjQjVnO97kks8FSQrrx5Sd47h mdJvvE2t17BeMLLjQeRoxfIM3tj8QaS/knBflhEq8eHG94s2MHIZ7KUdnUg9Zo00GcAZ c9dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W+I2qLxn; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w24-20020a17090a8a1800b00263e1208868si2029542pjn.147.2023.07.18.11.54.26; Tue, 18 Jul 2023 11:54:38 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W+I2qLxn; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230071AbjGRS3p (ORCPT + 99 others); Tue, 18 Jul 2023 14:29:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229656AbjGRS3n (ORCPT ); Tue, 18 Jul 2023 14:29:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6D7DF0; Tue, 18 Jul 2023 11:29:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 41822616AD; Tue, 18 Jul 2023 18:29:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0789CC433C7; Tue, 18 Jul 2023 18:29:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689704981; bh=mZVev6Chb/FEkhGNNxmMJ4Z4XBKzCjBKm3JCVUTRO9w=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=W+I2qLxnV2nwCe87SLiOEw1Jweg0OeZD2j/yRxQDVNt+14Rkac1VIizQXx4i7k1N5 JJdwT1mpdkgkgjv+Ir/3tfmttDP0b6kit9SFW571v7DByXjGPkrXy8Ykc2SVE+anJm 3dswwmPZu1wb0OaUflN6gL8hAq2rntRM7gbj42WAHOUFfXQsunJ2AUzJr3XQJjpGZt DTC4uKP7RBUU6jrpn+QuQlkeRHQZ5oSsJ9PyggwH7aPORRAfp1blBskG12UY7BpibD RfIKKGf+dvfNZ5/X+eVvGF46ewYCWaMr/DK1htsGhNS0jcZe6MOxxl9FBOBiKVdvqK Kwj+Z7IDVEvXw== Date: Tue, 18 Jul 2023 11:29:40 -0700 From: Jakub Kicinski To: David Ahern Cc: Jason Gunthorpe , Mina Almasry , Andy Lutomirski , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, netdev@vger.kernel.org, linux-arch@vger.kernel.org, linux-kselftest@vger.kernel.org, Sumit Semwal , Christian =?UTF-8?B?S8O2bmln?= , "David S. Miller" , Eric Dumazet , Paolo Abeni , Jesper Dangaard Brouer , Ilias Apalodimas , Arnd Bergmann , Willem de Bruijn , Shuah Khan Subject: Re: [RFC PATCH 00/10] Device Memory TCP Message-ID: <20230718112940.2c126677@kernel.org> In-Reply-To: <35f3ec37-11fe-19c8-9d6f-ae5a789843cb@kernel.org> References: <20230710223304.1174642-1-almasrymina@google.com> <12393cd2-4b09-4956-fff0-93ef3929ee37@kernel.org> <20230718111508.6f0b9a83@kernel.org> <35f3ec37-11fe-19c8-9d6f-ae5a789843cb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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, 18 Jul 2023 12:20:59 -0600 David Ahern wrote: > On 7/18/23 12:15 PM, Jakub Kicinski wrote: > > On Tue, 18 Jul 2023 15:06:29 -0300 Jason Gunthorpe wrote: > >> netlink feels like a weird API choice for that, in particular it would > >> be really wrong to somehow bind the lifecycle of a netlink object to a > >> process. > > > > Netlink is the right API, life cycle of objects can be easily tied to > > a netlink socket. > > That is an untuitive connection -- memory references, h/w queues, flow > steering should be tied to the datapath socket, not a control plane socket. There's one RSS context for may datapath sockets. Plus a lot of the APIs already exist, and it's more of a question of packaging them up at the user space level. For things which do not have an API, however, netlink, please.