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 6E4D241C5F; Fri, 10 Feb 2023 10:27:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0221140EE6; Fri, 10 Feb 2023 10:27:49 +0100 (CET) Received: from mail-vs1-f43.google.com (mail-vs1-f43.google.com [209.85.217.43]) by mails.dpdk.org (Postfix) with ESMTP id C5C3140687 for ; Fri, 10 Feb 2023 10:27:47 +0100 (CET) Received: by mail-vs1-f43.google.com with SMTP id x8so5038695vso.2 for ; Fri, 10 Feb 2023 01:27:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=vT3/p2KJOxCzzUiIOlCvNf6dBYOJJZro6glPvCIbvAQ=; b=GTY5r4mLAg2acjsskpFUCPt8hqe6dDH9jN9rNXRam+tEIAe1HSbjTVIfMuG5Aoyrqz UFdcmqLO5JdzxnwFYL+Xmr2loi2pH0tXfa+9MDD6r9p4AIMuhcbB4mx5Ymfe6c8mnMJT 3ykr0tZKGibtSq2Qytt4rjAfXEH51YUQbwisCHghQcsLmG+GgFFNikMXNKwH2NLm5zsG Y+qgL3I/gIetCjEDm0H0yEfiVpS294khleiksigJP4D08A3tOJ4f5lafCkGMoZd2Z1cP ALgzB+ibkxmc4bk81nHpvh16fChNP1FEYSfJL0npPhk7gnvnt27WTf2obvfOMZBOM5Kb b8Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vT3/p2KJOxCzzUiIOlCvNf6dBYOJJZro6glPvCIbvAQ=; b=Ab+Lv11JMzk7GZp65leDg18tSFGzCLuLjrdk1xl1pvVfEUGMzsJLQVyYScjdBCcORO fNeP5QHFIJKXDBNhUyCz0ZLKMGi0Y7JiQB25XK/EGscLcc9R4PzqJZJFx3Ba1NUneWIG 4Tv/lW3MquuEJL9P4i3LZpl6h4W70eERL/TjWvx3L6Zu85WGxoBlx/CEht05sOV/rDLO XZZx4ZO3nXcVRLcc0NfTRLLWszREysQsxByxkCXZGlLfc7LNEKAA4zEt9GC51e4RUxNW XENW6t2TzxekzlSxLA6HEdTVr0eT8GJZkKf32Hmmpuypj5SBZQ0h9Nss9ZyXudsrnXKi Y/Jg== X-Gm-Message-State: AO0yUKVkyByWaxCUZzP6xvxVQe7tw8q1EkTpIefv3V5RX3XBWEOuaT4d 6wqdkCALayAXqiu8SzMBVIKb+tgfnTFUbil/IZE= X-Google-Smtp-Source: AK7set9wDtnhs983WHCaGCzjCOZd2jHDdtq9cKD0pN7jnyFQ/SxPtuD8vwXkPx9xGZNmSnvJRXZ5iblh3HmgtAuOp5I= X-Received: by 2002:a05:6102:10da:b0:411:d4ed:ebee with SMTP id t26-20020a05610210da00b00411d4edebeemr670574vsr.31.1676021267079; Fri, 10 Feb 2023 01:27:47 -0800 (PST) MIME-Version: 1.0 References: <20230210081422.1004901-1-rkudurumalla@marvell.com> <20230210082623.1005496-1-rkudurumalla@marvell.com> In-Reply-To: <20230210082623.1005496-1-rkudurumalla@marvell.com> From: Jerin Jacob Date: Fri, 10 Feb 2023 14:57:20 +0530 Message-ID: Subject: Re: [PATCH v6 1/3] ethdev: skip congestion management configuration To: Rakesh Kudurumalla Cc: Ferruh Yigit , Ori Kam , Thomas Monjalon , Andrew Rybchenko , jerinj@marvell.com, ndabilpuram@marvell.com, dev@dpdk.org Content-Type: text/plain; charset="UTF-8" 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 On Fri, Feb 10, 2023 at 1:56 PM Rakesh Kudurumalla wrote: > > Introduce new flow action to skip congestion management configuration > This feature helps to skip the congestion management processing > based on per flow or the packet color identified by > rte_flow meter object. For example, If one Rx queue configured as > RED congestion and application wants tobypass the RED congestion > processing for all GREEN color packet can be expressed though > RTE_FLOW_ACTION_TYPE_SKIP_CMAN flow action > > Signed-off-by: Rakesh Kudurumalla > Acked-by: Ori Kam Acked-by: Jerin Jacob > --- > v6: Moved cnxk.ini and cnxk_vf.ini to cnxk specific patch > doc/guides/nics/features/default.ini | 1 + > doc/guides/prog_guide/rte_flow.rst | 22 ++++++++++++++++++++++ > lib/ethdev/rte_flow.h | 11 +++++++++++ > 3 files changed, 34 insertions(+) > > diff --git a/doc/guides/nics/features/default.ini b/doc/guides/nics/features/default.ini > index 510cc6679d..b93f053a2b 100644 > --- a/doc/guides/nics/features/default.ini > +++ b/doc/guides/nics/features/default.ini > @@ -198,6 +198,7 @@ set_tag = > set_tp_dst = > set_tp_src = > set_ttl = > +skip_cman = > vf = > vxlan_decap = > vxlan_encap = > diff --git a/doc/guides/prog_guide/rte_flow.rst b/doc/guides/prog_guide/rte_flow.rst > index 3e6242803d..4efadcc87b 100644 > --- a/doc/guides/prog_guide/rte_flow.rst > +++ b/doc/guides/prog_guide/rte_flow.rst > @@ -1840,6 +1840,28 @@ Drop packets. > | no properties | > +---------------+ > > + > +Action: ``SKIP_CMAN`` > +^^^^^^^^^^^^^^^^^^^^^ > + > +Skip congestion management on received packets > + > +- Using ``rte_eth_cman_config_set()``, application can configure ethdev Rx > + queue's congestion mechanism.Once applied packets congestion configuration > + is bypassed on that particular ethdev Rx queue for all packets directed > + to that receive queue > + > +.. _table_rte_flow_action_skip_cman: > + > +.. table:: SKIP_CMAN > + > + +---------------+ > + | Field | > + +===============+ > + | no properties | > + +---------------+ > + > + > Action: ``COUNT`` > ^^^^^^^^^^^^^^^^^ > > diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h > index b60987db4b..f4eb4232d4 100644 > --- a/lib/ethdev/rte_flow.h > +++ b/lib/ethdev/rte_flow.h > @@ -2203,6 +2203,17 @@ enum rte_flow_action_type { > */ > RTE_FLOW_ACTION_TYPE_DROP, > > + /** > + * Skip congestion management configuration > + * > + * Using rte_eth_cman_config_set() API the application > + * can configure ethdev Rx queue's congestion mechanism. > + * Introducing RTE_FLOW_ACTION_TYPE_SKIP_CMAN flow action to skip the > + * congestion configuration applied to the given ethdev Rx queue. > + * > + */ > + RTE_FLOW_ACTION_TYPE_SKIP_CMAN, > + > /** > * Enables counters for this flow rule. > * > -- > 2.25.1 >