Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp838091ybi; Fri, 31 May 2019 09:34:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlJNOH9hovwcq22HtHRwnTp9XUCXL4Qot5Y7FW1q+m2stBBH0A8nyuzmgho1ninBtdjIyg X-Received: by 2002:a63:1c54:: with SMTP id c20mr9984728pgm.283.1559320490055; Fri, 31 May 2019 09:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559320490; cv=none; d=google.com; s=arc-20160816; b=g94KW0a1ahmN3h2JlC93tKtYndqCeaLjBaq9rcZYXUPtgUAig+++ld8L1YBfBdusIs S8HaTpZv9lMBtldOCobvt0tNBYSgiylwJs4tUAGa3Lkk8zxBItbSAW6KIWRFHxxA3+Ts 01Wc/i2l03cZ3oEIs6TWJn50+R+uznn2Cv0Mf4iKq1VlBQjUAOGEGDAUBZKE5O/tuwIj gKiKHVYkQHrz5mZUql96KOUwc2Yw1H1/UNVXBMyOUMCxMVztZGG5DwiHJpH1QZGofvWd KJeYmh52lEz231ts1TaLu/BPiM2DX6gdJgg7O1oNFWg+g59FUE6zLae6n0Y6acrnH8u/ Hjaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=28dbNJwWxc4Vntl7Di9AXuZOjrkmyaQz+6LDJCIGZY4=; b=GGT36LPivmCTirP1H8+CKVenma/TA0kTvNV8uyEOkohExWJYWv8WJI3LK1DXVp6Oys qH97bp9Nan7pNCGEsjPDxjQsQo/fbqIp2VWyVm0lszUndriEdcUPH2PZHzTDPYK6nXYE H5AGZln9VAEuHrHM6Gm3zHljafFeHHOysMjdfrqqGem2062JGyIgDOrm60BGnGY3qStq 3up01Hw6sqwWVcJ/n6GEemwSW5/eP+yhoNv7hsekEIwWYxbJPFNoWVGZi4+unvffMkXm A1c6mC2cjIId2Ny/+WmIg4SLe59TphLLpdn9lHXq+oTAifkrW/+EnQwWLrNgsAcp1KhA 8IYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c184si4266819pga.99.2019.05.31.09.34.30; Fri, 31 May 2019 09:34:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726902AbfEaQcv (ORCPT + 99 others); Fri, 31 May 2019 12:32:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47978 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726924AbfEaQcv (ORCPT ); Fri, 31 May 2019 12:32:51 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CB9F2308FF30; Fri, 31 May 2019 16:32:50 +0000 (UTC) Received: from carbon (ovpn-200-32.brq.redhat.com [10.40.200.32]) by smtp.corp.redhat.com (Postfix) with ESMTP id DF2BA5DE89; Fri, 31 May 2019 16:32:42 +0000 (UTC) Date: Fri, 31 May 2019 18:32:41 +0200 From: Jesper Dangaard Brouer To: Ivan Khoronzhuk Cc: grygorii.strashko@ti.com, hawk@kernel.org, davem@davemloft.net, ast@kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, xdp-newbies@vger.kernel.org, ilias.apalodimas@linaro.org, netdev@vger.kernel.org, daniel@iogearbox.net, jakub.kicinski@netronome.com, john.fastabend@gmail.com, brouer@redhat.com Subject: Re: [PATCH v2 net-next 7/7] net: ethernet: ti: cpsw: add XDP support Message-ID: <20190531183241.255293bc@carbon> In-Reply-To: <20190531162523.GA3694@khorivan> References: <20190530182039.4945-1-ivan.khoronzhuk@linaro.org> <20190530182039.4945-8-ivan.khoronzhuk@linaro.org> <20190531174643.4be8b27f@carbon> <20190531162523.GA3694@khorivan> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Fri, 31 May 2019 16:32:51 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 31 May 2019 19:25:24 +0300 Ivan Khoronzhuk wrote: > On Fri, May 31, 2019 at 05:46:43PM +0200, Jesper Dangaard Brouer wrote: > > > >From below code snippets, it looks like you only allocated 1 page_pool > >and sharing it with several RX-queues, as I don't have the full context > >and don't know this driver, I might be wrong? > > > >To be clear, a page_pool object is needed per RX-queue, as it is > >accessing a small RX page cache (which protected by NAPI/softirq). > > There is one RX interrupt and one RX NAPI for all rx channels. So, what are you saying? You _are_ sharing the page_pool between several RX-channels, but it is safe because this hardware only have one RX interrupt + NAPI instance?? -- Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer