Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7491536rwp; Tue, 18 Jul 2023 16:41:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlHX865styLFwmlTndvR5OLScc5dnmT6clFpoGgwe4TBPjLiMaLcR7FXkZAFBRZDfE2I6NTU X-Received: by 2002:a17:906:209d:b0:993:f349:c98d with SMTP id 29-20020a170906209d00b00993f349c98dmr1142588ejq.1.1689723718627; Tue, 18 Jul 2023 16:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689723718; cv=none; d=google.com; s=arc-20160816; b=hFjtTVK2Q7I5cy4bW94QyMmiqwnwLRzt7Jy65fAPwV7Q020q+2XTFsL1gPQk6uXfZI QH38+66deUopuPlkUT0iJz4Wg8Uw6OUp1Sf4TMPw9M+oCtFDR6BPqFomKTIYFT1Wm1Oh 71UbebJ+XC8N17YBG/F9nBVY80z1+DYqVXgLCZ8eLZ4fJm2/OxLVdUHJWN1ljhSc/JR5 fJW2xekldKpltopwuZ8LfjPip82CAeCr5yJ8ZqLBo0hXz38q3PHwVe/vhHMzjHLML5tv bL1Qeab5UNWnGcql5psb3lSHi18MH85lKKyBN1M4h05uG6jl4lUl4bxGpHaKBS/ZDq4o QdRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=1tkvhS3p7H6QILthqvVJKj1HuWo0MBKXSIaFicybPZI=; fh=N3JmpdtDnPyXxLiBl+UUkRQ2baOVG3+hCBUJyK2qzKs=; b=cQZez0cXKi7Rt24+9kjRo3byn7wlriNGCxvL+5e79s3yEoDoNeZNkjRyMpE9zUc4r4 vMFVTaFxFaYVWhxSRk8znw1CZ/YPqoRGu12Cyx1q2/min3rjpYYSz6Hg8/Mj/90d4LQO zxCgQMyN6ZcxK7F7yqDso57YuUlRLGqdoACWwNcXf82HPPkyPO+SWO6XluzIcZtJ1bAs O1mmfi4VJn/KFt6EI2oZVtqXKgZsYOF4JslzTMLm/9xH4/YIeN5n+Vi+55L12YDx55uG QG0goWGbIOrFPLaX9dqw1+UiKquw26RRFVnI/IMGq7UvOHmXmX7q0CZ2hJ5PRTXL435I d0aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="uq7+j/NO"; 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 p9-20020a170906604900b009889cad765dsi1841811ejj.352.2023.07.18.16.41.34; Tue, 18 Jul 2023 16:41:58 -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="uq7+j/NO"; 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 S231621AbjGRWf0 (ORCPT + 99 others); Tue, 18 Jul 2023 18:35:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229614AbjGRWfZ (ORCPT ); Tue, 18 Jul 2023 18:35:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FE241993; Tue, 18 Jul 2023 15:35:20 -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 24B616126C; Tue, 18 Jul 2023 22:35:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA35BC433C7; Tue, 18 Jul 2023 22:35:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689719719; bh=ODQozvnR8L9ZZhidmLsCxqJiGSeoc3vXIawk6TBMUFA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=uq7+j/NOkFLavVsQ/USh6P3IpWSqxBDgXwQYcbV5CX8S7AB8zn2pWNxFlTbLtIMXQ DdjVmmRGkd0tbEukWEbDc3rHWuKnTfw8u+AgnTtKtScYI5G3o/p2xdL88Ey1qR2uei ak6CnY7JRbICwClHNZE+AtRSlN7IsfHuill1aC52pO7zXH5HhNt7+UG3AghWPMbalw Qe/JwxHOZtC2CIY5yFXp0L66uV4wfmbctY3O93+4j/Xl+CApRlllSvFtaw7TKjux9n eboU3TVfT4FBGDKvgh7P7vfQVFOAKYfjBLL/9bOwPmA10iQBRR32d0rVTCd9kwdEIQ yB3+v9Vio5DRw== Message-ID: Date: Tue, 18 Jul 2023 16:35:17 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [RFC PATCH 00/10] Device Memory TCP Content-Language: en-US To: Jakub Kicinski 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 , =?UTF-8?Q?Christian_K=c3=b6nig?= , "David S. Miller" , Eric Dumazet , Paolo Abeni , Jesper Dangaard Brouer , Ilias Apalodimas , Arnd Bergmann , Willem de Bruijn , Shuah Khan 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> <20230718112940.2c126677@kernel.org> From: David Ahern In-Reply-To: <20230718112940.2c126677@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 7/18/23 12:29 PM, Jakub Kicinski wrote: > 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. I do not see how 1 RSS context (or more specifically a h/w Rx queue) can be used properly with memory from different processes (or dma-buf references). When the process dies, that memory needs to be flushed from the H/W queues. Queues with interlaced submissions make that more complicated. I guess the devil is in the details; I look forward to the evolution of the patches.