Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp354716ybt; Fri, 26 Jun 2020 00:48:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnugo//hl0qeOfirDg17hR+7MYzVMhc19MPcfadsOo+Iigs85wQRaOb7DkoDVxF4F7xt+p X-Received: by 2002:a05:6402:2064:: with SMTP id bd4mr2042440edb.180.1593157701472; Fri, 26 Jun 2020 00:48:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593157701; cv=none; d=google.com; s=arc-20160816; b=KnAabQi8tDHOrXs9vEOdluUqLa+1zW3ggT3DijWgb1m8qzKONnRTqcWv9Om5+v45bi kJnm6sQavnWpTQiKl+3nqzsqGq8rTcdFDWMJr726C5wcvVniVypq3nH+ZVfUvvkHMJ6y 7fBBp/k9I+nVG9ErMygHE5yqThp6EiWcdi8dQMYCV9mBi/TkqZiB+puhB5TfckbOAkL0 G8k3CfQaZKGdEp39eJHjgRrEyXCVSnPPs5i4uk4p54TaVEjT0noC8leM1FDCenGaJi5r KLp64eDIwSAqK84A3DBbvc/curkoNDoZT4APc0fQ/qNIEgNSyCDIWA7X4zw7pdk0dHdr 6csA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:to:from:date; bh=hzxjSr7ckSlQ+t1vMl8R6H0hPhykta+UziFe/SSqN0o=; b=YevSb20ZioNpARkw7X08afy+JmbvJsrThUBfGAes+u0QvDQP4aKax5fzIO9e8zyIPA S+SezHjIBEaZGphDDsEc/ILBFvGUN7ekceTXy/+CUT3ijF0l5n9UFfTwtmCfQ/I1NzpX cbYUmXgYfj75j97xM2FzN8j9RWT3wmWqaDdHosGoTmXkBUv4yHVPYrcyrPODuGQLa0VS U4jxPOg8m4MR3KV3G7gglDXSguFqMvbYrt0Nf0YnsQgGDNJEa3d3+cUIp3fZiusxDwCs FLmA5MU9mONu/BL2hOooMskYC0UzxFO8/CqSwlSp47qRl+J/yGyscMkTiMek9ryx9cov h6UA== 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 f5si653353edt.71.2020.06.26.00.47.58; Fri, 26 Jun 2020 00:48:21 -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 S1728818AbgFZHr3 (ORCPT + 99 others); Fri, 26 Jun 2020 03:47:29 -0400 Received: from verein.lst.de ([213.95.11.211]:50706 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728111AbgFZHr2 (ORCPT ); Fri, 26 Jun 2020 03:47:28 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 9C65868B02; Fri, 26 Jun 2020 09:47:25 +0200 (CEST) Date: Fri, 26 Jun 2020 09:47:25 +0200 From: Christoph Hellwig To: =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , "David S. Miller" , netdev@vger.kernel.org, Konrad Rzeszutek Wilk , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: the XSK buffer pool needs be to reverted Message-ID: <20200626074725.GA21790@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 Hi Bj?rn, you addition of the xsk_buff_pool.c APIs in commit 2b43470add8c ("xsk: Introduce AF_XDP buffer allocation API") is unfortunately rather broken by making lots of assumptions and poking into dma-direct and swiotlb internals that are of no business to outside users and clearly marked as such. I'd be glad to work with your doing something proper for pools, but that needs proper APIs and probably live in the dma mapping core, but for that you'd actually need to contact the relevant maintainers before poking into internals. 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? 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.