Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7460674rwp; Tue, 18 Jul 2023 16:06:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlEkLBpkn1zJtdo+ADzNL3w7fHztT01HW1rBmrsH4aqrkSDzstlk4LFPb+Jkf4IV5NiVeqtD X-Received: by 2002:a17:907:9620:b0:982:a022:a540 with SMTP id gb32-20020a170907962000b00982a022a540mr616779ejc.11.1689721583346; Tue, 18 Jul 2023 16:06:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689721583; cv=none; d=google.com; s=arc-20160816; b=vulliQ9BRgxuf4d1BLNS/kzPglSZs3ZsnqIIAFFDp4400tm5yKbBP478V6ocHU/Zel j/Sa39tL2hv4n+i4r1I2EJ+qDEyxL7WF+3Eacd1xWEdWAjdh9ytAM5b+n8FmU7eC3yMQ Ubsl/Q5qUsSioglMAJUn1LiNQbQWRUUP77Tw1HVmZt51LnBmerueBcDbxntlKYOwnKiy IJDPzv/w+P7GkWAcerXjmNdo1zW0vGiP/XWZLyfgFcFoF14z5i4sDLi0+kpuKkQc9qD4 6IWUTaO+cjtzS6MfYiSWy+xUDWinb20kDWJrIdSSgdq2FnFyD4ociWQsSOXseFw3uDdz fkfQ== 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=QPRDZN417wjG3/qI9dDTrKSyuqoeFrA3S2sudllzHvw=; fh=yJbcxwrJiGcFNLjm/+SJC9lb+3d/aie/Y/Bb8D4CkzA=; b=bH1boqtlX4G7wWXqNqEmUU0j1BOlwlOkH4F9aWtJX9bM/leob3NKzIV9em1An0vLPh yCwPAm045Oy7/DpNIcfdZ2+cD1CgFBknRU16HnGhdlJ127Kv0r+Xzdg77Ry/PeP97WJF ms0t4bYYlt7hbN4jzvwMHMFemkNFzO8ln8b6ExUPzLriPfCUJ2Y5OzAYxCHvrFsJfNvt fE45GhnvJARiae6fU3g++YFHBcWtu1o7EE+fWOy4jSE1LidsSJ3sJQVgrveNdkMxcGbb ehPxlyeIrERxt/OpgPUN4lfZtnXxd6P9Nx0SN0rmajMUBSVlL0gKkfNof7Lfk1PY7A1B Y/fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I7ocP0MT; 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 q11-20020a170906a08b00b0099845f657a8si574189ejy.616.2023.07.18.16.05.59; Tue, 18 Jul 2023 16:06:23 -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=I7ocP0MT; 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 S231262AbjGRWpK (ORCPT + 99 others); Tue, 18 Jul 2023 18:45:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229822AbjGRWpH (ORCPT ); Tue, 18 Jul 2023 18:45:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 528D91993; Tue, 18 Jul 2023 15:45:06 -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 ACBC8612D2; Tue, 18 Jul 2023 22:45:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73956C433C9; Tue, 18 Jul 2023 22:45:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689720305; bh=QPRDZN417wjG3/qI9dDTrKSyuqoeFrA3S2sudllzHvw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=I7ocP0MTAirrwG4O3BO3sgJtAZf1AJsUW77twR7BAnv8XpKWfEiykdbxMVfJitMQz wsO9R5ARS30sZ610w8glfUqSp2ATk8XKuYDTOzbCrBdafDcnsXZAs1mURzqD6ROGQS oC/bzDXWaeXLzVz14Pz2NEZwox6r1Jq4t4LrfLeMLvi2XoFw7Fyi4DlO0VaF4qdICI BzPyOlM+XEviMn/WFmV6C00aKMV99Sqm/uyXjIqhbqAEJ8BLdzqi0fVaFTXzBJshI6 Zs4+zXH8p0XWCVCAu77Oj41p/FZCoid5iSNxgf4LxA128Zmt79ALiEDRVuAms9Zzam lCnJHtFJp0Rqg== Date: Tue, 18 Jul 2023 15:45:03 -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: <20230718154503.0421b4cd@kernel.org> In-Reply-To: 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> 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 On Tue, 18 Jul 2023 16:35:17 -0600 David Ahern wrote: > 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. Agreed, one process, one control path socket. FWIW the rtnetlink use of netlink is very basic. genetlink already has some infra which allows associate state with a user socket and cleaning it up when the socket gets closed. This needs some improvements. A bit of a chicken and egg problem, I can't make the improvements until there are families making use of it, and nobody will make use of it until it's in tree... But the basics are already in place and I can help with building it out. > I guess the devil is in the details; I look forward to the evolution of > the patches. +1