From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3BD47C10F0E for ; Thu, 18 Apr 2019 17:41:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0AFF8214DA for ; Thu, 18 Apr 2019 17:41:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=netronome-com.20150623.gappssmtp.com header.i=@netronome-com.20150623.gappssmtp.com header.b="MqahV2l7" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389801AbfDRRlT (ORCPT ); Thu, 18 Apr 2019 13:41:19 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:38081 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733067AbfDRRlS (ORCPT ); Thu, 18 Apr 2019 13:41:18 -0400 Received: by mail-qt1-f195.google.com with SMTP id d13so3068376qth.5 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=hp9arbFp7iOpB4nBSBiepeiiiKrwpK7c6kj8Orb7N0Ap71s3UNeHs4eiJnbBJ4Q6G7 vg0aGFEEGNP4/BrKksBzPM+mQzcJz2is7dQ/ZTTgMm8tzRNTUtv+T+Zpctd8m1xoXaIl myxTQUoM3fURpFkOCLHUClPLu2J1b/1eRCIrRr2z7EJfYghFHxl6/jkz525u4ZZxK1XJ M6WMk2iyvBP1s5xZTBv1R1WiLj3gP+FOzkMZyCh7898vbHeVxpK+zy3Vse/XcqGdAaom sq0k3S4tj8U0DMK3O+JU7OzTD27aDnxUpjNnCekxe+8Y5uVj2FSgEL+jZQZslFgOib58 Sm8A== X-Gm-Message-State: APjAAAVpUq+gXrxOtprO2HvgslLKw+49kFiXVUN9+x4HSKU0vpRv+Vft AMNENOj+pTq4P03c3qEj/pBX+A== X-Google-Smtp-Source: APXvYqxPQnlrt2Krb2GlPvvw3pcbr1EU1/XdbztNCpijoFdp435Aw+mbRgqJ/YKlKF4Tbg4F8whnIg== 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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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 :)