Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1193728ybi; Fri, 31 May 2019 15:40:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxRGjMkjD1qDdBP0KgTkEWwUtdIKthKt3kS+kLbk74brPR+3Mw1f9mkiFQ62Oz4ZDUuT2/h X-Received: by 2002:a63:68c5:: with SMTP id d188mr12156023pgc.429.1559342412664; Fri, 31 May 2019 15:40:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559342412; cv=none; d=google.com; s=arc-20160816; b=1AM5VvYWhFN6OBeLjfQA3qojzcf3+SzCImwvTtcMBl7P8d3U0jb8ELLRrrLs01XrRn aA926be7qYdmYLr1GkUbXHztPBqU71uVfpbpqeqbcatpqHbXyHQaMvyGVkU7+nDDovft jJf4ut4vhwf0OSc475Ptg2y78jnZT2qFnYswJKjWSz/DmM7focbDn/foQRc3ndU86aTk qylNvfHQXOF0d2SZwkBzLPaVzIwQaufVOl8rGskypezttPhF1GYIySYDyEjPTMF2OgII ffctyt1abFe6FbaB5SwP9bK03GeEWCE+qEDUx+K3TfSb4jgtln1QxPvV9OZ/C6JQKsE1 fWRA== 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=lHCZdQHosLRGGaHpSWxIiZfkl1witZCN9WaUTxt04FQ=; b=O/0Y5ajJTI/+d7ptMXj5nHhYR6xfhysXtXDayCYRpeNPQlotir64ChN2k4p728RFUI 99d2HAAzUoSgpCry8gXmQyy5KeSIZGv9VHwWjlzvswZGCIvAwOLhfF2BZF9l6QeHxgWx biU1rgPl4CLbEKI8GuvrMdlzMDGQ+DheSNiGFHPDDBkdoFWfNbAn0uoQXfIAcpFhd9Q7 XMtIFJSbuiwcvtWBeOAUYBqmTSlK/bvVXF1eLEM3zjn/amLnl5AjbjBle3Xz4dhyAkNj KdTwCo8z/EEwQC0/ZvsniOnlI/HlVc1cUHhCAg18wQ1Oh7PH1JSfPRtTkRckXPC/68mH JNeg== 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 62si7524194pgb.562.2019.05.31.15.39.55; Fri, 31 May 2019 15:40:12 -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 S1726744AbfEaWhp (ORCPT + 99 others); Fri, 31 May 2019 18:37:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52866 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726446AbfEaWhp (ORCPT ); Fri, 31 May 2019 18:37:45 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 248383082E4D; Fri, 31 May 2019 22:37:45 +0000 (UTC) Received: from carbon (ovpn-200-32.brq.redhat.com [10.40.200.32]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5181119C69; Fri, 31 May 2019 22:37:38 +0000 (UTC) Date: Sat, 1 Jun 2019 00:37:36 +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: <20190601003736.65cb6a61@carbon> In-Reply-To: <20190531170332.GB3694@khorivan> References: <20190530182039.4945-1-ivan.khoronzhuk@linaro.org> <20190530182039.4945-8-ivan.khoronzhuk@linaro.org> <20190531174643.4be8b27f@carbon> <20190531162523.GA3694@khorivan> <20190531183241.255293bc@carbon> <20190531170332.GB3694@khorivan> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Fri, 31 May 2019 22:37:45 +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 20:03:33 +0300 Ivan Khoronzhuk wrote: > Probably it's not good example for others how it should be used, not > a big problem to move it to separate pools.., even don't remember why > I decided to use shared pool, there was some more reasons... need > search in history. Using a shared pool is makes it a lot harder to solve the issue I'm currently working on. That is handling/waiting for in-flight frames to complete, before removing the mem ID from the (r)hashtable lookup. I have working code, that basically remove page_pool_destroy() from public API, and instead lets xdp_rxq_info_unreg() call it when in-flight count reach zero (and delay fully removing the mem ID). -- Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer