Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp773286lqs; Tue, 5 Mar 2024 16:45:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXTUrzrGmw1RLvqI5pYIgKs+UCvtZJ3bfrEtIqCfrWU73I68nsmdA3vnIcG5Bhgs0dqJHbSH0ceE8gsvdviGdJp5elGuLcu7ANjBrQsFg== X-Google-Smtp-Source: AGHT+IE8LXJqc1fuborks3P5NNC/n41z4WhVmBS1H4TDXmNPw+CnCfySacr0EWxnMFe732cejJAx X-Received: by 2002:a05:6a20:c223:b0:1a1:593c:841c with SMTP id bt35-20020a056a20c22300b001a1593c841cmr2773702pzb.54.1709685959409; Tue, 05 Mar 2024 16:45:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709685959; cv=pass; d=google.com; s=arc-20160816; b=x/wNthZgpZPv8925e8G6qvbIcaXjLSjM+dyNHRk/4TU25Zs/HRoTKONS9PtmrO9CIx uuBjphtSTXQVFs8xZ9W/z280FiWCT4LQzBs0CrbARAmS9AFI3wHKpNAPbnMnsZVN2371 kqkX1Au1vfOT213VsJA+WZ0hhJnsh6ehmcUgo1GiUWM9yqRAR/WSFsssy8Uvei5M6nqm m15WnFUMD9zNMOyMdN/iZNhIAYTClnFnDQ+eWFLzlpipuc1VuIgGub798GKgPYZM6Twz abJXUZ33v0R+w0MZp00DapmpJrYYmJVm/7j1PKLYGVRNMdOm7moFJ60d+JSMs7EAO8NW KvwA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:user-agent:feedback-id:dkim-signature :dkim-signature; bh=Hz9n4ApIEoOa8ewx4aHPiFWUsa7oc5PoCFR5tHWnstc=; fh=UZZHgiH8SWvMh1VtvORaanwkzf5KFOM61Ivc6eb4yxQ=; b=iIYaDJ22CeutASNQb45LmBDFTEkGCegzn2OZ/7AVXoqBicFmizcX9yo8/SDxhPN5oT oO5udb7PIM+leXKdlbWrWkTUmKaqaoDU5y8fVOWeEfp+7xx2vkhU8NEvXMhMEbGvv6Kv QoStsFHSgwrc3YkgY6o/wnXDNPIPF936kbptqMxDNVG7iDt8M3tlm1lSPtHedOXUTkP7 pNsRSZjU6/T6ZBzEsOW5EzoJI9Raylw/K+Kry1RGLhIegaBUGZZfMRlnccrV+d2Sg4vz gg0409Onx2OYsNUOEqF7MVcs7lRdIs5xuaA+jwZayNclAxWRhs3MjOA6mGyU/aznWB3c IMDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=Z2vvL2+R; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=LrbQnx0g; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-93022-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93022-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z18-20020a170903019200b001dbdfc34a20si11211662plg.211.2024.03.05.16.45.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 16:45:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93022-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=Z2vvL2+R; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=LrbQnx0g; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-93022-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93022-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id ACD1AB281C9 for ; Tue, 5 Mar 2024 21:42:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3340912D1E5; Tue, 5 Mar 2024 21:42:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="Z2vvL2+R"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="LrbQnx0g" Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (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 75D5F18AE0; Tue, 5 Mar 2024 21:42:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709674953; cv=none; b=Q749dxljae0NIK2GACMOmiWeT6sOIkxPmSbkSLwzGuCL6G2UiC4+9zxN3z4bytSSI4KitJIcFwzbC62UJ5g/ylPQBElVp4Hexyv8icbWXTx4yZ54LIKPw0EmSttGGSrYDxG94uooWJvQncq70x5t6G/XNPer4gyRi+eccnR6zcA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709674953; c=relaxed/simple; bh=wZkSkX9694x6IaB7S0oYpjmKV7DkKNY9dxbFCcaTTio=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=Z3Pvw4Do4DDv3xhA399z3eLzD/AUs5ZcmuJYr3Z/a2cfcVV7zF4Fq3vvys+gJNrH3jNPZFAUKG0CQgrhxsEr6jX1V43CKZDc8UE/hyZnqhHujb+VqaWVTDwismzi6iEVvnDereeLYZY4fCWowJQPDVEqGh1r6FlIJ9QWKIuxAwU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=Z2vvL2+R; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=LrbQnx0g; arc=none smtp.client-ip=64.147.123.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id BD3A732002E8; Tue, 5 Mar 2024 16:42:28 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Tue, 05 Mar 2024 16:42:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1709674948; x=1709761348; bh=Hz9n4ApIEoOa8ewx4aHPiFWUsa7oc5PoCFR5tHWnstc=; b= Z2vvL2+RHREKBnnShKno4/jb1cVWnYIk/pbKst0T9GSgO+GTD+lqnOzBt15TR/gF Ov/CnFYWmAdf2IiC3orlU2Pht/2QkoWd+aGToBLtJ5AfaXhx/HX9XmU6pWQyp/X+ AX8T8Irot7PqLSsirVN+Fh7InwWa1J5x7mNhMtcaX5fDZac08EXHvoHM2LZIBZWE LrqpFhY+rhTSVfmW7ug7d//DdSDdXHRtyxRSEkef94liSBPoxn1LSI1jugALqKP1 upSMHg/1B+GDecCwjhCiCzxyasjUnkQM5uqXW3kZmEcinluhig+8c4OhxN9mojCT +k+1KVpJarAAbgrXrH7jNg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1709674948; x= 1709761348; bh=Hz9n4ApIEoOa8ewx4aHPiFWUsa7oc5PoCFR5tHWnstc=; b=L rbQnx0gPIWfZS390XfNT6ZEqwXUw9civMU/UkkPBwkknC9mWgetd9fjEX4tI4MYb 1HJtZ/9H+AHdr5rAgDfC6agUd1WbWNzREy8a6wgtkj6IcPa/opvwMQ32XZ8Bzpcn wIe75VJIaLK+cZwjeXwta/r7SEoJ78IzGmAS8+kB3cObvRTslByL0hDQo2c/fNX/ kKfHtGqFSumbh44rUaUFyQajtHHTbyjEoF821OxX9Qf1YN1SKnezhh1p4xsbjuM+ 7AMju9IR0lhxNiPoiOCzS46k+Ep1m6s+HkMWNyIyl5cXiBkPfOlij12bqWS79vhO k2Lf3PG8L/HB/Ikm1Z9Ng== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrheelgddugeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeegfeejhedvledvffeijeeijeeivddvhfeliedvleevheejleetgedukedt gfejveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 02874B6008D; Tue, 5 Mar 2024 16:42:28 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-208-g3f1d79aedb-fm-20240301.002-g3f1d79ae Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <037496c9-f06a-4946-b903-95d87d577b89@app.fastmail.com> In-Reply-To: References: <20240305020153.2787423-1-almasrymina@google.com> <20240305020153.2787423-6-almasrymina@google.com> <5e2f9342-4ee9-4b30-9dcf-393e57e0f7c6@app.fastmail.com> Date: Tue, 05 Mar 2024 22:42:07 +0100 From: "Arnd Bergmann" To: "Mina Almasry" Cc: Netdev , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-alpha@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, sparclinux@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Linux-Arch , bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, "David S . Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Jonathan Corbet" , "Richard Henderson" , "Ivan Kokshaysky" , "Matt Turner" , "Thomas Bogendoerfer" , "James E . J . Bottomley" , "Helge Deller" , "Andreas Larsson" , "Jesper Dangaard Brouer" , "Ilias Apalodimas" , "Steven Rostedt" , "Masami Hiramatsu" , "Mathieu Desnoyers" , "Alexei Starovoitov" , "Daniel Borkmann" , "Andrii Nakryiko" , "Martin KaFai Lau" , "Eduard Zingerman" , "Song Liu" , "Yonghong Song" , "John Fastabend" , "KP Singh" , "Stanislav Fomichev" , "Hao Luo" , "Jiri Olsa" , "David Ahern" , "Willem de Bruijn" , shuah , "Sumit Semwal" , =?UTF-8?Q?Christian_K=C3=B6nig?= , "Pavel Begunkov" , "David Wei" , "Jason Gunthorpe" , "Yunsheng Lin" , "Shailend Chand" , "Harshitha Ramamurthy" , "Shakeel Butt" , "Jeroen de Borst" , "Praveen Kaligineedi" , "Willem de Bruijn" , "Kaiyuan Zhang" Subject: Re: [RFC PATCH net-next v6 05/15] netdev: support binding dma-buf to netdevice Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Mar 5, 2024, at 21:00, Mina Almasry wrote: > On Tue, Mar 5, 2024 at 1:05=E2=80=AFAM Arnd Bergmann w= rote: >> On Tue, Mar 5, 2024, at 03:01, Mina Almasry wrote: > > A key goal of this patch series is that the kernel does not try to > parse the skb frags that reside in the dma-buf for that precise > reason. This is achieved using patch "net: add support for skbs with > unreadable frags" which disables the kernel touching the payload in > these skbs, and "tcp: RX path for devmem TCP" which implements a uapi > where the kernel hands the data in the dmabuf to the userspace via a > cmsg that gives the user a pointer to the data in the dmabuf (offset + > size). > > So really AFACT the only restriction here is that the NIC should be > able to DMA into the dmabuf that we're attaching, and dma_buf_attach() > fails in this scenario so we're covered there. Ok, makes sense. Thanks for the clarification. Arnd