Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp857282yba; Thu, 18 Apr 2019 10:42:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwDZCD+oNnJD/2lb8mJVVdepm3349y7o0ECdnKnbbVwUxbi+0LJ04XmXG6GjX01elhnCVq X-Received: by 2002:a65:648c:: with SMTP id e12mr90643113pgv.346.1555609358084; Thu, 18 Apr 2019 10:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555609358; cv=none; d=google.com; s=arc-20160816; b=arSj8ydw1JTdwNVr/NetVkWoFYtej4EaNbG6ANzjqH7+zKynRQM9E8qtIWCog89efy t+Yi7c+lemRi3GpEz/ph7T8M6C82KAwjK+ML4qBMSWSGec6gI4Db0muc0AsHpPhIkdZE 2DZF6EcmGK9IpsdFPA6CJwiLSI4Zo6sjRHHEVEeX4N8OM6WdNWKJb6H76c3UBUAILvBO ILZMtXTy/vIH//t4MIs9aUjyYkQU0CMAleOS4M3f8f+Uy0T1CkEMymKuNRbe1BMu7dSF RIaDNaz9oBmU4hrrNdlLdpzkK5ElTSeVQd6Y8c0VQzBQbX8rDxW2d/99oFvB9SeB8ZtI /6Ew== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=+u8xx0kfwjOANYusi1JuAEu1J7GummvUrW8wAjhnujs=; b=PCc0umuLPQvEgiH3KhavtXEY0VvxmZIOvvPkkKHhSKj/y2xvk/VV0BfaIYoOCrj3Wx 5yzXLogPS/98M40Zp/xjmSDAWiHHLZwr5MkT2s3d769/op16A+GppaVevFcEXUR4om0P aA8kvcdiYlst2kPoSx7TOA3TONfBWVizqVs0ybNBI+fPku1efYxhHNCTzPpcb7qe3bAH qljiqrvp72prtMDelarkP5dEo31/j2aPwBllUyfGUArC1o1PMBJr93xeURmc0MErfcxm EWkULGJF0J/1GDdK/Y9kGC2xMFn3mngT5Gbt6Z4KLp0c5xuKg2KHCoX1mlgptiU/mN/f i+hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=MqahV2l7; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a7si2266515pgt.496.2019.04.18.10.42.21; Thu, 18 Apr 2019 10:42:38 -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; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=MqahV2l7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389806AbfDRRlT (ORCPT + 99 others); Thu, 18 Apr 2019 13:41:19 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:41486 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388579AbfDRRlS (ORCPT ); Thu, 18 Apr 2019 13:41:18 -0400 Received: by mail-qt1-f193.google.com with SMTP id x10so2506954qto.8 for ; Thu, 18 Apr 2019 10:41:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=+u8xx0kfwjOANYusi1JuAEu1J7GummvUrW8wAjhnujs=; b=MqahV2l7ci7bo46SESx4QtqLji3f5DTGg0MNPOWCixmmoZmrJMG05tpCmsxG/kNQbJ RYrYcdbAIVPnzpfTYhYBvWEAa54IC2QoYH6vzoTD9B/4WgldcGe/1mz5pCkjbnG75cS3 l3DDome+PC0KGqhP2BXLZYXTmMP1BkJqIn2LwxR3PCrHHNE8CQ2BObpBC4IaDr8jlBhT PPk3k9h4usd0NSnZNAuyhgb0N0kQ/pZZo229ahgHboLN8+SFFwUK2ge4siYGnxYDXDyz /YZ6F7S7Qvd3/A/D5QL0D4nBhqF52es+eGo7PuAgofWt37RDSQAXCys3OWg7T4Z0EoaM jiAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=+u8xx0kfwjOANYusi1JuAEu1J7GummvUrW8wAjhnujs=; b=biMDXhfRQDtzCU2JgdF9uaX4vixPmOnNp1UFb4Ry8cS5Kx0nB5LLg4cK4lNsZ3eAJG s1EB6fo5HM0NO1Qt2pSW9TgEK0n9uw3UBRlVmcYBc/lIvAWXtkWoMwcMjj3vVQVQhluI PyeF+zUHBuef9s9axVRr4xsFYIMz7RTByq3EgZZTEphrz/RS8yW2an29m+WrwQLi/xyC dXVWAFmejslmpvZE2E1oYtv2n6MKOnPVijrX4l63xnN9BKnMOLbawt2O3ebRZ/uPlAqK 9ytlPCLC9CQOSi2f51le7wrZJoel+YcohXj3wEWFi4PuzXH1Pob2js1YYOYqKGVm5iVZ jNeg== X-Gm-Message-State: APjAAAWzmI9pOH/fruGtJicCifdWkF50krWnsqwK9xKqSMIf/XfjNidP 5+PD2/2xwFS4jCEq0bjuaIDX7fuYWUk= X-Received: by 2002:a0c:9599:: with SMTP id s25mr76423623qvs.119.1555609277722; Thu, 18 Apr 2019 10:41:17 -0700 (PDT) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id z38sm1323439qtz.13.2019.04.18.10.41.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Apr 2019 10:41:17 -0700 (PDT) Date: Thu, 18 Apr 2019 10:41:11 -0700 From: Jakub Kicinski To: Ivan Khoronzhuk Cc: grygorii.strashko@ti.com, linux-omap@vger.kernel.org, LKML , Linux Netdev List , ilias.apalodimas@linaro.org, hawk@kernel.org, xdp-newbies@vger.kernel.org, Alexei Starovoitov , aniel@iogearbox.net, John Fastabend Subject: Re: [RFC PATCH 3/3] net: ethernet: ti: cpsw: add XDP support Message-ID: <20190418104111.559a0e74@cakuba.netronome.com> In-Reply-To: <20190418094008.GB27879@khorivan> References: <20190417174942.11811-1-ivan.khoronzhuk@linaro.org> <20190417174942.11811-4-ivan.khoronzhuk@linaro.org> <20190418094008.GB27879@khorivan> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 18 Apr 2019 12:40:10 +0300, Ivan Khoronzhuk wrote: > >work? The stack's TX ring has a lock, and can be used from any CPU, > >while XDP TX rings are per-PCU, no? > Yes and no. > am572 has more queues then CPU num, How I can choose tx queue not based on CPU > num? It's always shared and has to have lock, and cpdma is done in this way. Oh, I see, you already have another lock. > Here another thing bothering me, I send it to queue 0 always, instead of > taking cpu num. Not sure about this, but I expect to have some tx queue > not bind to cpu and didn't find a way it can be changed dynamically in > redirect. Not sure I understand :)