Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp904339yba; Thu, 18 Apr 2019 11:31:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAxela8IYDM3hkN5RZRzUDhs6LFNSNnLeEl7brWlxq9rccpz5q0Fp++QWnStz80r3ND7LN X-Received: by 2002:a17:902:2be8:: with SMTP id l95mr7863285plb.330.1555612315090; Thu, 18 Apr 2019 11:31:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555612315; cv=none; d=google.com; s=arc-20160816; b=JmBAnxgDoNBrUeGuDvYMh2H+IomaGmQliqakLjudniifTzuhZnk/C130lAhJGZWbxp E+nyunGo31nuzWdrDhrpHGzVkl9Y3fncAwJ2HaXXsprLpfwlSMy9EUBR8xnU0vyIniZm UIvsWqxR8aXZOZ8vs8I5V6m54BOoyZzTVWH+DWMKJTum+2UYNP3trxtNCulYYLAl/wQy gVU4y3RtwDUMBKZMmBfdtgMagmv2j5aDcX4S0BafmDHTTGTwiLNAZSIBy8nRhGJC2p+u Wg+E3ugs0c53agw9bSyaFB3FjuiTyj9rgLvb7On9lj7Y3/mCDn81KqEXEA2WskZ52ClG USbg== 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-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=BDrH2xghiWsDzu64JGgq5KXMa51VeOg5C+1Bge4S8qU=; b=I70Yd7X7UX3tx0mrjzk6DIlrjQ4K0fkUu3/ZE/xh0Jf52IZQptk7wekAf88HCcFEYq 3owUEc1nMjGm7rAN42xfG96mDLnnSkh5zaUZxyROxFY9/ChKgK4QubkpHqiUorfFhoda 36mDbLVfPx0PFSWUescn1zF5El6pJ+Ofd2+oTrXk+XF4pXkNMyHf1n1iIhfcJD8Q0WRM icu/g7xUYgnaJWL5nEepVkcPcII7WmaJZ+y6FEu3Nz47GyXfhKSeons+gGJjgcUAg3Il Ex+4mjt7jK8x207pcRSDArabrK1pfPaKSHt3wfc5bjg91j0VtzhsKSBfI8fOLgWdTqHm ADsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I91MKNLL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13si2371703pgs.33.2019.04.18.11.31.39; Thu, 18 Apr 2019 11:31:55 -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=@linaro.org header.s=google header.b=I91MKNLL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390815AbfDRSau (ORCPT + 99 others); Thu, 18 Apr 2019 14:30:50 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:36508 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390149AbfDRSat (ORCPT ); Thu, 18 Apr 2019 14:30:49 -0400 Received: by mail-lf1-f67.google.com with SMTP id u17so2360714lfi.3 for ; Thu, 18 Apr 2019 11:30:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=BDrH2xghiWsDzu64JGgq5KXMa51VeOg5C+1Bge4S8qU=; b=I91MKNLLyTOdb9kCQ6nrk/7QWGjWrF/5oH3P8fLqYdS4dRUjU17U5ZhPv6yrlinCeE up4eQrrfAgh/gXlQaKcgLFhMjbnAJ8SNJ+tfCQ4pQwwF3vd1MmNKVizotb/GUtVGuZ89 yUFErUEIBKFwWRqhG+9U0rK+GYtzkyBJY0FHrayTeHmdXgX+PcMHZOD/xKNKzjpB/kwQ XZSNIuuAL7XM5w7LVjfGHevB3YrZoHkzYCK0WYX0TSqsoGHSTi0G1NHMnpps9lUvGto9 6ZlGzRjsu80nPeCrdqVFxiKdGlsM2N/XAAtSrev4tvifctc47cC3z8vwT615isud8PNj hGew== 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 :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=BDrH2xghiWsDzu64JGgq5KXMa51VeOg5C+1Bge4S8qU=; b=BO4oWdE/0KfL/QSejQEd1fqkMfH1tAIEIRyNEFedluJl6vZJ+p/+EEErDBUr7Yf/N7 tfRZerO+47uG0VN/96t5wvsCDY15a2b2DpXhFYw70DEgS73lmqyohI3Fr+riPaWWzKOO wUaiudvK7cgHiH6V/+LpQPk4WD+xhG4WyMcxe0BZGrElvqx8NRFjGIXfwAdZEClSQdub zSK3Fbw1BV4moJj7qV4PG76r3lqUTL2dIyUOhbHzLsaRjR9KhQVIK8oEaoxMf8C3srPc wlNHEpwct6p6KjKTciWFA3qNMuY4DE7vX872fKrI6dsEEP+opHllo96KlC+Igazj2uXD Lz9g== X-Gm-Message-State: APjAAAWOjpgySXWgCgJ+co5+m8Vq/h7V3vFqyXJ8G3du0TW3o3D77gRF UEll1VhFWcJn8aaoO7yZV+SX5Q== X-Received: by 2002:a19:3845:: with SMTP id d5mr18719428lfj.77.1555612247557; Thu, 18 Apr 2019 11:30:47 -0700 (PDT) Received: from khorivan (59-201-94-178.pool.ukrtel.net. [178.94.201.59]) by smtp.gmail.com with ESMTPSA id n23sm603574lfh.86.2019.04.18.11.30.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Apr 2019 11:30:46 -0700 (PDT) Date: Thu, 18 Apr 2019 21:30:44 +0300 From: Ivan Khoronzhuk To: Jakub Kicinski 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: <20190418183043.GD27879@khorivan> Mail-Followup-To: Jakub Kicinski , 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 References: <20190417174942.11811-1-ivan.khoronzhuk@linaro.org> <20190417174942.11811-4-ivan.khoronzhuk@linaro.org> <20190418094008.GB27879@khorivan> <20190418104111.559a0e74@cakuba.netronome.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190418104111.559a0e74@cakuba.netronome.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 18, 2019 at 10:41:11AM -0700, Jakub Kicinski wrote: >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 :) I mean, is there a capability to choose tx queue while XDP_REDIRECT or XDP_TX. From what I've seen it's taken by: qidx = smp_processor_id(); What if I need to send classified traffic to hw queue 4 for instance... -- Regards, Ivan Khoronzhuk