Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2556425rdb; Fri, 8 Dec 2023 11:31:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVZkvE/mjianjwUNGTUhrnf2x16ivoUuboi1pKAyG97619CWw1+lTyE9IB/Ya+/jCVmf94 X-Received: by 2002:a05:6a00:4b49:b0:6ce:49a7:16a3 with SMTP id kr9-20020a056a004b4900b006ce49a716a3mr515324pfb.58.1702063894088; Fri, 08 Dec 2023 11:31:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702063894; cv=none; d=google.com; s=arc-20160816; b=nQO+U7l7WVk6BqDe3uXNn5/q0uSaRkHUDIzm5RAls0AwgYfCUSmoz8Fzxrs6WJtnHf LcqrLyGk2uIthjQdt+tC2A/ikPpIl6+KkdFM2Uk0Pus1oO/cw2M9eHWh1MaDHzJoIvSb DhGyuvhxSI+TFkFavsC2nS1T2L4cEa31hDo68IeRNs+jfBmpKpYlMDeiDAB0VtcXkjQb MI4JsICLFHD0sQiSwGFJJSZIC8xdvG5E8+urpBbFl13PLOskX5pt0yeHIJRFD7Qyk4hF hFq7/E8Mhmvn3ACXP+vwuANNBE/h47YLn4vcX96czLoytlJEuED+S/M/peUGhHaDgwfe AVaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=kWu+J+wzMOcih150vf6YNmhjcZNaZMBMCrHoJTVq0Uw=; fh=T9MjwQWwassDuCs5FnaOqEJ9lSxg85jDBSy8Ht2HMx0=; b=abM246kNNPs2zXtKHdgvWZtEdC5UioSiP1S2UzM//AIjHZ9lzkGgaB0ViqlGe+ooga gtl6IcOODkbMv5QSz1eAD0KOKJ9LaA+m/vg+B9CNP/PzNOjzHIotdAM4rgjxMysgjzWW Odz7g4fRVvxn5mdkGTHCR6hfv2uZ3BIAO82F1o7i+3FM8wkhugGHQHXXN7Py1ANrqmep CgRGCwEqcSOmunj1Itdqs9dlhaTAB4Zlcc0mjqImD+ZSQgSnN/BcErf0+LXEfFBFOGWE kv09NlUh5nUAQ0MOL7jyLZG2p22Y6LXdWnmD4icmIc3ACH/Q7p0FbGpTf6nqkPdyNbeg Wozw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=AA19aOJz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id fd3-20020a056a002e8300b006cddc634540si1974824pfb.25.2023.12.08.11.31.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 11:31:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=AA19aOJz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 1599D80755BE; Fri, 8 Dec 2023 11:31:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233856AbjLHTbN (ORCPT + 99 others); Fri, 8 Dec 2023 14:31:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjLHTbK (ORCPT ); Fri, 8 Dec 2023 14:31:10 -0500 Received: from mail-ua1-x92c.google.com (mail-ua1-x92c.google.com [IPv6:2607:f8b0:4864:20::92c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B01B1712 for ; Fri, 8 Dec 2023 11:31:16 -0800 (PST) Received: by mail-ua1-x92c.google.com with SMTP id a1e0cc1a2514c-7c82eb9e95aso480583241.3 for ; Fri, 08 Dec 2023 11:31:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702063875; x=1702668675; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=kWu+J+wzMOcih150vf6YNmhjcZNaZMBMCrHoJTVq0Uw=; b=AA19aOJzqgtW3RV80AFQwVMChqnhyx3dotQVTb0hrBmAlbNUmsuBTJtMrljDDTaPE4 UT2XZXwwEhyL6RvaC5iWygV0PrrojOamdQDwSsldkfSAMM7VJCtSIzBuUePJhJzEMdpX CPGh4gECrlJoIIISE5H4oez9KZbbP2rZerJwxtlHukbw8x1DHD6xfCD40QWJNSF2TTZv jyd/PaV6H4EEWDsI8Bemrygg75E84QrYgetKO+iTPy9VQtZwScDXn3sfczLGri9aGHpp 7vil7CrYcYmsqEFV7IMvKlG6rg+3CTnia8RBmcwiGoSy+xuGXcA38kRCZHFSMQWuS23S tl7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702063875; x=1702668675; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kWu+J+wzMOcih150vf6YNmhjcZNaZMBMCrHoJTVq0Uw=; b=KQY81VobONsz7tv0nkIHXplEemcueDS5es1vQenLE+BBhFeB1icHyeBbV5i70mN+a3 ReZR0g55B1x2AOq05LDFtag2jQskfNtV/oI8N+QR5y83qHlyll1eIGnxUvn+B04zrNyy F0Bo2sszhBJk9pvCQSG5u0WCVW+JiNMPuqyI/GuNqDWiCNZCckAob+vymZZ4s9gw19H8 8NcoVLck9CLxRaqd/e3tFNAhScMvnGrqk+wxF7fLOgYmMK3/AdfUY7Nhs8V/wd95eh3N U8Czff3ADQnO7giaqcEIMJzpi9vi/vVPk0bZAHuTVLUmI+u0onZ3PUJ2iPstrrzmnksP yduA== X-Gm-Message-State: AOJu0Yz3GZpwI4ClV1Llly/rc6xL8MS3BUOqzcq1lWJ3Dla/vPw+3TN1 urFnH/wqpf4wNkJmElVzbnQRlQjmlMsRIjaHtLQnoA== X-Received: by 2002:a05:6102:3ec4:b0:464:40b2:e59f with SMTP id n4-20020a0561023ec400b0046440b2e59fmr628329vsv.32.1702063875124; Fri, 08 Dec 2023 11:31:15 -0800 (PST) MIME-Version: 1.0 References: <20231208005250.2910004-1-almasrymina@google.com> <3fea9ae9-e9e6-4ba5-812b-2775a6ed9e6a@kernel.org> In-Reply-To: <3fea9ae9-e9e6-4ba5-812b-2775a6ed9e6a@kernel.org> From: Mina Almasry Date: Fri, 8 Dec 2023 11:31:01 -0800 Message-ID: Subject: Re: [net-next v1 00/16] Device Memory TCP To: David Ahern Cc: Shailend Chand , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arch@vger.kernel.org, linux-kselftest@vger.kernel.org, bpf@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Jeroen de Borst , Praveen Kaligineedi , Jesper Dangaard Brouer , Ilias Apalodimas , Arnd Bergmann , Willem de Bruijn , Shuah Khan , Sumit Semwal , =?UTF-8?Q?Christian_K=C3=B6nig?= , Yunsheng Lin , Harshitha Ramamurthy , Shakeel Butt Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Fri, 08 Dec 2023 11:31:31 -0800 (PST) On Fri, Dec 8, 2023 at 9:57=E2=80=AFAM David Ahern wro= te: > > On 12/7/23 5:52 PM, Mina Almasry wrote: > > Major changes in v1: > > -------------- > > > > 1. Implemented MVP queue API ndos to remove the userspace-visible > > driver reset. > > > > 2. Fixed issues in the napi_pp_put_page() devmem frag unref path. > > > > 3. Removed RFC tag. > > > > Many smaller addressed comments across all the patches (patches have > > individual change log). > > > > Full tree including the rest of the GVE driver changes: > > https://github.com/mina/linux/commits/tcpdevmem-v1 > > > > Still a lot of DEVMEM references (e.g., socket API). Any reason not to > move those to DMABUF? > In my mind the naming (maybe too silly/complicated, feel free to correct) i= s: The feature is devmem TCP because we really care about TCPing into device memory. So the uapi/feature name retains devmem. dmabuf is the abstraction for devmem that we use. In theory someone can come up with a driver that doesn't like dmabuf and uses something else instead, and the devmem TCP support can be extended to support that something else. Functions that handle specifically dmabuf and are not generic to support general devmem are named accordingly (netdev_alloc_dmabuf/netdev_free_dmabuf) page_pool_iov is a generic type to support generic non-paged memory, functions that are supposed to handle any generic non-paged memory and named accordingly (page_pool_iov_get_many). --=20 Thanks, Mina