From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 092B5A0548; Mon, 14 Jun 2021 06:22:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7254A4003F; Mon, 14 Jun 2021 06:22:39 +0200 (CEST) Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) by mails.dpdk.org (Postfix) with ESMTP id 0EC574003E for ; Mon, 14 Jun 2021 06:22:38 +0200 (CEST) Received: by mail-io1-f44.google.com with SMTP id d9so38189981ioo.2 for ; Sun, 13 Jun 2021 21:22:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nk624QGUlDoknkRq6H8vp6IkMMC56Ba+B069EZSJXas=; b=WOfsxZI0K4T8zJhSlrX221+TwrMH4y8Yst6ZfGQ53PBPK9CeCKaS7cpHlIEu0nOhqm 4JBC65H/gZdeZo5irlnOcOisgcQHGnR5j/meS9qCdniWkuBvRPVnB8WC2wVAWLKiMqL8 w6isNveashtOYHk+p8j6zTiiVN1QvZ8QYyMojZFptEGdTSkPWgfmQINMUZmK1WsfBz6g toBrlH4iCqMJJpn17hbsvaSsVH5PqDd0X0LwiOjuV4KJNfJM1lvtYnB5I4wM4z3jkhyq 84nKUfBXudTrJ0o3y03I0Fpim/cU/XatSLJBa7ZVHxKwHH0o5z6bdtWvxsGviKBm5Qe7 fxGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nk624QGUlDoknkRq6H8vp6IkMMC56Ba+B069EZSJXas=; b=AEAfXP0ECtnSqPxXVFKU3WOzHVhkjQhC8W3/dikd/d+gNEzMAnjB3VnfPYNs+Jw6UD t6P2k0YaT5jIGbubzA0BGXuufWoS2hQF0GRvY7BvPZ3kRhQKSnzVtHuhhVfAuyB71Gc4 sRKoXeQ0ICvDxtl+roHcxoiQcax7C4jwXk/yaEgQjJwc5cR9L2oHJHQEo1zRvh+ahhzl ESD2HjlkCaLFx8ejaMxrMcCJ0QTqp2Tuq8SUclah+tLL6tQVxPG7fQQ5H43AQP4bm9lZ D0TaW4H10fgLXPL3qDnW0FDNfCyrgThejqhSN6jwVF2UmMbNHDDwM4H2KnXnvdgYnCCX x4FQ== X-Gm-Message-State: AOAM532ozhz80Df1xDlm4bwCz8IXciIkBlF48svSxuxiOi25TIsGcxhK NS4g5iy3g+Wsd+ZlfXRSRmD5lQ+o6NptKyQQNLo= X-Google-Smtp-Source: ABdhPJwA8sTigNxJMcMM3+xYdXe/HEmabrKuMLaeJMymp9huaMzUwPnkwdkSr5wQd0Sdnj17xSAt892/W8sCK5CqwqY= X-Received: by 2002:a6b:3e88:: with SMTP id l130mr12669804ioa.59.1623644557318; Sun, 13 Jun 2021 21:22:37 -0700 (PDT) MIME-Version: 1.0 References: <20210306153404.10781-1-ndabilpuram@marvell.com> <20210607175943.31690-1-ndabilpuram@marvell.com> <20210607175943.31690-12-ndabilpuram@marvell.com> In-Reply-To: <20210607175943.31690-12-ndabilpuram@marvell.com> From: Jerin Jacob Date: Mon, 14 Jun 2021 09:52:21 +0530 Message-ID: To: Nithin Dabilpuram Cc: dpdk-dev , Jerin Jacob , Sunil Kumar Kori , Satha Koteswara Rao Kottidi , Pavan Nikhilesh , Kiran Kumar K , Satheesh Paul , Ashwin Sekhar Thalakalath Kottilveetil Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v2 11/62] net/cnxk: add common devargs parsing function X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, Jun 7, 2021 at 11:34 PM Nithin Dabilpuram wrote: > > Add various devargs parsing command line arguments > parsing functions supported by CN9K and CN10K. > > Signed-off-by: Nithin Dabilpuram > --- > doc/guides/nics/cnxk.rst | 94 +++++++++++++++++++ > drivers/net/cnxk/cnxk_ethdev.c | 7 ++ > drivers/net/cnxk/cnxk_ethdev.h | 9 ++ > drivers/net/cnxk/cnxk_ethdev_devargs.c | 166 +++++++++++++++++++++++++++++++++ > drivers/net/cnxk/meson.build | 3 +- > 5 files changed, 278 insertions(+), 1 deletion(-) > create mode 100644 drivers/net/cnxk/cnxk_ethdev_devargs.c > > diff --git a/doc/guides/nics/cnxk.rst b/doc/guides/nics/cnxk.rst > index ca21842..611ffb4 100644 > --- a/doc/guides/nics/cnxk.rst > +++ b/doc/guides/nics/cnxk.rst > @@ -27,3 +27,97 @@ Driver compilation and testing > > Refer to the document :ref:`compiling and testing a PMD for a NIC ` > for details. > + > +Runtime Config Options > +---------------------- > + > +- ``Rx&Tx scalar mode enable`` (default ``0``) > + > + Ethdev supports both scalar and vector mode, it may be selected at runtime Ethdev->PMD > + using ``scalar_enable`` ``devargs`` parameter. > + > +- ``RSS reta size`` (default ``64``) > + > + RSS redirection table size may be configured during runtime using ``reta_size`` > + ``devargs`` parameter. > + > + For example:: > + > + -a 0002:02:00.0,reta_size=256 > + > + With the above configuration, reta table of size 256 is populated. > + > +- ``Flow priority levels`` (default ``3``) > + > + RTE Flow priority levels can be configured during runtime using > + ``flow_max_priority`` ``devargs`` parameter. > + > + For example:: > + > + -a 0002:02:00.0,flow_max_priority=10 > + > + With the above configuration, priority level was set to 10 (0-9). Max > + priority level supported is 32. > + > +- ``Reserve Flow entries`` (default ``8``) > + > + RTE flow entries can be pre allocated and the size of pre allocation can be > + selected runtime using ``flow_prealloc_size`` ``devargs`` parameter. > + > + For example:: > + > + -a 0002:02:00.0,flow_prealloc_size=4 > + > + With the above configuration, pre alloc size was set to 4. Max pre alloc > + size supported is 32. > + > +- ``Max SQB buffer count`` (default ``512``) > + > + Send queue descriptor buffer count may be limited during runtime using > + ``max_sqb_count`` ``devargs`` parameter. > + > + For example:: > + > + -a 0002:02:00.0,max_sqb_count=64 > + > + With the above configuration, each send queue's decscriptor buffer count is Typo > + limited to a maximum of 64 buffers. > + > +- ``Switch header enable`` (default ``none``) > + > + A port can be configured to a specific switch header type by using > + ``switch_header`` ``devargs`` parameter. > + > + For example:: > + > + -a 0002:02:00.0,switch_header="higig2" > + > + With the above configuration, higig2 will be enabled on that port and the > + traffic on this port should be higig2 traffic only. Supported switch header > + types are "higig2", "dsa", "chlen90b" and "chlen24b". > + > +- ``RSS tag as XOR`` (default ``0``) > + > + The HW gives two options to configure the RSS adder i.e > + > + * ``rss_adder<7:0> = flow_tag<7:0> ^ flow_tag<15:8> ^ flow_tag<23:16> ^ flow_tag<31:24>`` > + > + * ``rss_adder<7:0> = flow_tag<7:0>`` > +