Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp917273yba; Thu, 18 Apr 2019 11:45:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5mynwrkulPCCldHIrDmezVowwLUaDu8aFm4TM2GjHV4xjlcTEqAupMyDH4loZDCr9zV/u X-Received: by 2002:aa7:820c:: with SMTP id k12mr96967794pfi.177.1555613155981; Thu, 18 Apr 2019 11:45:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555613155; cv=none; d=google.com; s=arc-20160816; b=OXruwyiDbs6CAPItPxbfHr5wWft2JGGPgYAzp/msygbz9tNjPNLZu9aEqvsiGGW3VQ f7F44q8R1EwfHeQ0qKlkCOKwcyHtlvmxDNqPfjCjXuD4JSdYp1aWgvtQh3oYRZQNckTa BVU8NQhSi257hmZ5FJTn7g0B1gdAIazPbglUDZi1lxeCyY3VbMm57E30eQzCbg/W3NSS 50naO++vr9J5gqW6ZtLJy39KdC+mLOASzlrEq3wtGrHwtlJf24T+ePl2r/oozOHbYuFr b3EcrErayPOAi7XE94TIDYb7pEqsOVWhZTLJccEr5fJ36/3fvF/wDRoX0ncJfdncz/Rj NYRQ== 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=bB0iaIZk82+RTVqAjY3+9LVUW5C7BuZN2sORFJHBfmk=; b=sMCM83JYyUvTvi1dKIfcONkqldsW6IlFZBX33XAKkXN0xSHWsPDdSn9m0VpIMtrZGb rjZkTKGUMdOlGBfOPyeWJUEdXEyYxM5ZUh0OAJIr2R5ZPe4EP8XiYiZkdMdvWDkrpT06 9Vt5xccOkPg+4chKC0onYC5VYApCwVjeeTjWMsoyEuDPckYfprplw749CXJ+JY57DYbw AQ91jBaoZcZUDgvyb1ZQ4vAN1Thbgv47GNpKCYulb/b304xYaGmwt+qjRyCS5xsdfCxi 0ghnqZxe3kZxabSkNo/u4t4CAqKgavWlSjQcMa+YXTWIi/tSrcmvxcyre0EROFp+trqi YoCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=Pyk1xJYX; 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 q4si2830390pls.76.2019.04.18.11.45.40; Thu, 18 Apr 2019 11:45: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=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=Pyk1xJYX; 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 S2390053AbfDRSod (ORCPT + 99 others); Thu, 18 Apr 2019 14:44:33 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:36537 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389836AbfDRSod (ORCPT ); Thu, 18 Apr 2019 14:44:33 -0400 Received: by mail-qt1-f194.google.com with SMTP id s15so3283074qtn.3 for ; Thu, 18 Apr 2019 11:44:32 -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=bB0iaIZk82+RTVqAjY3+9LVUW5C7BuZN2sORFJHBfmk=; b=Pyk1xJYXOnbQyWMfox+I9zm7S+yFE/nCPtpFspUrktj48yGIg6FVjuq+bxJUPIpkmU wSXnuq9kDJ4iRtIzCRM9+T/21+GYjI0H9F9lFeUO40uge0NKR9FHsvWbtIP4MHIRJEdb Zx4nuGjZzs/ChtH9j0Rn2iiH3OTjgHtwWd+4svgdNZ4ozdbRv/LxJI2qiHEOBT8yLxV6 pQS7A8wxgPeFzS/XlM4/RRqroBqqk/lcwfPOWkUaMWcGRUu9VJZVMCk7ovHtlW4j0kn+ kliUTLKUbfP8NSNbosTKgBBFJ2ATmGXG1fTE5RqNEslvi+u5gg72ibkxVkXpKou6D4/y RQdw== 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=bB0iaIZk82+RTVqAjY3+9LVUW5C7BuZN2sORFJHBfmk=; b=quDzQTi8p1s3iqTr6zLt8p8o26ZYkT+GH6WqLSghc6UUmm4kkHh9lRpeQ9b1ZPaItL dWoJZLDrPeesJ4ZidomWeHR4le+orrqkF1pCfNuKcwOukkCspSiUHTBTqd3C/fYzEdjn GLDbchD38vq9eDLazl/wVqpoUqDNXAKT1B4c2tWKT4GGZvq19j6X7CtIY/EzE9VKhojU JYlZ90r4RSNltESlDNAS4UEt7LDMBLHkm32wffKDiOPBW/hZUoCGfeE9x0WWjwKb82km m93ufgz6jGlWSMRTkYewyc/OJWhkdhHhbg52VaLpgWSWs3fS2a1bSgHW5nB6s+LVqhLX 3NBg== X-Gm-Message-State: APjAAAUGsY8I/GKOmhGabMAicrTf8UpoDpJleXamIoWP3d+1EfBSfJKp PHzUAMiq/ePocCrjJissaJHkpw== X-Received: by 2002:a0c:b012:: with SMTP id k18mr5675619qvc.243.1555613072357; Thu, 18 Apr 2019 11:44:32 -0700 (PDT) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id x15sm1183441qkh.13.2019.04.18.11.44.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Apr 2019 11:44:32 -0700 (PDT) Date: Thu, 18 Apr 2019 11:44:26 -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: <20190418114426.0a0b26f9@cakuba.netronome.com> In-Reply-To: <20190418183043.GD27879@khorivan> References: <20190417174942.11811-1-ivan.khoronzhuk@linaro.org> <20190417174942.11811-4-ivan.khoronzhuk@linaro.org> <20190418094008.GB27879@khorivan> <20190418104111.559a0e74@cakuba.netronome.com> <20190418183043.GD27879@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 21:30:44 +0300, Ivan Khoronzhuk wrote: > >> 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... I see, no we don't have any API for that, yet. I think all NICs which implement XDP REDIRECT today will allocate a single normal prio queue per CPU..