From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D14A7C77B7A for ; Mon, 17 Apr 2023 18:56:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230228AbjDQS4P (ORCPT ); Mon, 17 Apr 2023 14:56:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229800AbjDQS4O (ORCPT ); Mon, 17 Apr 2023 14:56:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57E258F; Mon, 17 Apr 2023 11:56:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E1B356113D; Mon, 17 Apr 2023 18:56:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75D22C433EF; Mon, 17 Apr 2023 18:56:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681757772; bh=jK/p0ZuXyKC4zJpZyUhpAtnVllicifPNHJk3dWBHiRo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Ncv1WTUykCp7OUc3kuMzs42btKYArHvTXhRiP0npu2Ryl3izQnvXnTxd1B+8V7vPl rqqV6VYkxrEeZJUOG3QQrlpTY7CSt1dtwmMxuxLape8nkCLKSHCGEDAbfl0iH0ckVm /AqI69MhEM5KJBR1B6krOBg50zT5OxirQITJChOxNuQwHdZxzGxeKouYxlCyPUFiVi Ym9AmlM//JuEomZFsKzbC49549iRj0Y+ZznCPNH0z5cX8frznf27+SVfuadTSlRL/O D+e5yyfwK910bsQJ3yWcWK27X/qGO0RGGgUNnEen5uNZHFnB6iTwznCs5s6C4ly0ZU v1MyGsTuuqOww== Date: Mon, 17 Apr 2023 11:56:10 -0700 From: Jakub Kicinski To: Xuan Zhuo Cc: Christoph Hellwig , netdev@vger.kernel.org, =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Magnus Karlsson , Maciej Fijalkowski , Jonathan Lemon , "David S. Miller" , Eric Dumazet , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , bpf@vger.kernel.org, virtualization@lists.linux-foundation.org, Jason Wang , "Michael S. Tsirkin" , Guenter Roeck , Gerd Hoffmann Subject: Re: [PATCH net-next] xsk: introduce xsk_dma_ops Message-ID: <20230417115610.7763a87c@kernel.org> In-Reply-To: <1681711081.378984-2-xuanzhuo@linux.alibaba.com> References: <20230417032750.7086-1-xuanzhuo@linux.alibaba.com> <1681711081.378984-2-xuanzhuo@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, 17 Apr 2023 13:58:01 +0800 Xuan Zhuo wrote: > On Sun, 16 Apr 2023 21:24:32 -0700, Christoph Hellwig wrote: > > On Mon, Apr 17, 2023 at 11:27:50AM +0800, Xuan Zhuo wrote: > > > The purpose of this patch is to allow driver pass the own dma_ops to > > > xsk. > > > > Drivers have no business passing around dma_ops, or even knowing about > > them. > > May misunderstand, here the "dma_ops" is not the "dma_ops" of DMA API. > > I mean the callbacks for xsk to do dma. > > Maybe, I should rename it in the next version. Would you mind explaining this a bit more to folks like me who are not familiar with VirtIO? DMA API is supposed to hide the DMA mapping details from the stack, why is it not sufficient here.