Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp537321ybt; Fri, 26 Jun 2020 05:44:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiOWnRLMjar2AYrksh2HbwIziope3Hfci/5cvhcilPVQ5viP6ubn+ZSm1CghrjM8nQxL/E X-Received: by 2002:aa7:c15a:: with SMTP id r26mr3019141edp.21.1593175488357; Fri, 26 Jun 2020 05:44:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593175488; cv=none; d=google.com; s=arc-20160816; b=V1vI/YE8Du5A2uQLsROZ26i/zwypFGnGuR/Y/n5hbPAkBgt6Ecud380A2QUpooxbRm Rz3z/FJVuDI+pXAAHB/h3TE87inz0JXzXM3iOmQMNsQ9TM4hUYo5qyPR51cv9SerjkBB GcXADtRHDkK8qQOnwHu3ZMobQzXfXlxk0wfnPc+ko4EN5I2VepVjApTM6ikRzk7k5a8J 36cG4diTdhIjdugOwg6Lrynq86kd5QpDba2SWQQkZeyQx2ohQJFHCq7px4voqUvDv5L4 9MrPtKeSD3NwcNLrVjdZqXwv5oEP/WgvFVcExGJ+8ZnpDXlmPbl4/fYUspzMJmcAsh7R zJYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=TUkc83BAlilrjPvcN+6sqNBZkbaunsQje+v45fDS+SI=; b=oNUB6DNblFSaP+DdGB9JuvNPEp6prPlXmNoo0edqE4fPpdeBJQQXq8t1F89E11eGl7 pNVxE61ATeH3puOrfxvOaERePeIteqRQ1pd9Obkl52L43IHyZgzH+s8cyiKirU+ZZa+2 PRpYgWUYrPQWIJ8ruNxfVphMHtX1Sr+bHeTiETdymR8/VuCE9q4VqN7zGFtz02wPVFDe hTk7WLhMHDVFu1Rk5ihh2OPAgUmTO72jXMsVxiV8TdWIyHfN8lIyj0ZPkrFHDvo5UOhB tdMcz/69lhhkQNjBk0Incxtqzk2opiE9fpAs2BiWz49dZByzfFlkQ7C2Jyh5+2J6D8hS KmrQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lv19si5176467ejb.241.2020.06.26.05.44.25; Fri, 26 Jun 2020 05:44:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727012AbgFZMlI (ORCPT + 99 others); Fri, 26 Jun 2020 08:41:08 -0400 Received: from verein.lst.de ([213.95.11.211]:51619 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725283AbgFZMlH (ORCPT ); Fri, 26 Jun 2020 08:41:07 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id E4C1A68B02; Fri, 26 Jun 2020 14:41:04 +0200 (CEST) Date: Fri, 26 Jun 2020 14:41:04 +0200 From: Christoph Hellwig To: =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= Cc: Christoph Hellwig , "David S. Miller" , netdev@vger.kernel.org, Konrad Rzeszutek Wilk , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, bpf , Maxim Mikityanskiy , "Karlsson, Magnus" , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= Subject: Re: the XSK buffer pool needs be to reverted Message-ID: <20200626124104.GA8835@lst.de> References: <20200626074725.GA21790@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 26, 2020 at 02:22:41PM +0200, Bj?rn T?pel wrote: > Thanks for clarifying that. Let's work on a solution that can reside in > the dma mapping core. > >> The commit seems to have a long dove tail of commits depending on it >> despite only being a month old, so maybe you can do the revert for now? >> > > Reverting the whole series sounds a bit too much. Let's focus on the > part that breaks the dma api abstraction. I'm assuming that you're > referring to the > > static bool xp_check_cheap_dma(struct xsk_buff_pool *pool) > > function (and related functions called from that)? Yes. > >> Note that this is somewhat urgent, as various of the APIs that the code >> is abusing are slated to go away for Linux 5.9, so this addition comes >> at a really bad time. >> > > Understood. Wdyt about something in the lines of the diff below? It's > build tested only, but removes all non-dma API usage ("poking > internals"). Would that be a way forward, and then as a next step work > on a solution that would give similar benefits, but something that would > live in the dma mapping core? Yes, that would solve the immediate issues.