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 36C6641CA4; Wed, 15 Feb 2023 11:01:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1064D40EE3; Wed, 15 Feb 2023 11:01:23 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 9EF3040A8B for ; Wed, 15 Feb 2023 11:01:21 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31F9m7vZ013462 for ; Wed, 15 Feb 2023 02:01:20 -0800 Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2107.outbound.protection.outlook.com [104.47.58.107]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3nr7f5uvhy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 15 Feb 2023 02:01:11 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jKcr/0CxpqAHp+rQsawkWQzrxiAm4GXZJfUXykow7nOBzrykBnqqt3UFRxMNlWgtEL+XXyU/P3iV9eS+xNA2DZxvQZBOZVlDEO3vIZX5b2Lra22oydSn62cWryLWJ/GzNXmkJWDlwuIMfsOndbtmF/phbAqEB3eiUmQEKtiMsiHX/Gner1cWIYFI9Qwllr79Yv4Vo4ThqmGPiDVwdDGNg0Jy/LJ69Fx05oRbT+qDGFfgls54E4lwgqnKOLeVlPhPkyT5BzqdY0h7FCSUU06MtewX17sLR5jHvtxmYtgMRi4yH246KRt1DQyZEILJVACV2ukGVfDkG0LgTcil269DRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=22h1sucg51WPJzcO335Dj9Fv746mQmzskOcWxf2+y9Y=; b=JZx1v1H88xbog1nzcSBSfaDkdwWrGAtJWMPk/Qo98xSgrjciqLa44Q2FVxWJtPAW4lQ0isSKfjISPX19rkGgcc3kPHRgPxe4iI5Wg64/o/mi9ePf2GDRy8/8F324VISZmA6MtnA0iYe+iLigzd+RCD4aODBXtonIZBZShfTTsuQU1g4+LiG6Kh5V9Oa5hRvrEzbz/UbxlpoO+Lh0NUEHUB601gUWNjmsUriOob8jhMnRbiVQYXC9fUZx3wRFbIGGz+8XX8Pi3IqEGqzTJwkeh8wgMKYhUZXRSWJElfCQD/KlbO6ilPuOrOtoW9iJHSEvuXTcvfTSGg8ZlDMIjV/Xog== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=22h1sucg51WPJzcO335Dj9Fv746mQmzskOcWxf2+y9Y=; b=TOxdEC/9DfUzLoV33GDgpRX0oViVmFyiPx2OaSR8lwgIWjsTFW5taoFLd5fGaaFHTWOk73Cn85YAKOwRsf88YqI9qjyQ45yBslixFC0la7+Z5TCjIdKsFDYSxcnb9qttDLzH5EOG6baf/9N3umN12udEpIAqbyiG9PIe2WPchbU= Received: from MW2PR18MB2171.namprd18.prod.outlook.com (2603:10b6:907:7::17) by PH0PR18MB3960.namprd18.prod.outlook.com (2603:10b6:510:28::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.26; Wed, 15 Feb 2023 10:00:17 +0000 Received: from MW2PR18MB2171.namprd18.prod.outlook.com ([fe80::fd2b:d92c:23a6:e0ce]) by MW2PR18MB2171.namprd18.prod.outlook.com ([fe80::fd2b:d92c:23a6:e0ce%7]) with mapi id 15.20.6086.024; Wed, 15 Feb 2023 10:00:17 +0000 From: Nithin Kumar Dabilpuram To: Rakesh Kudurumalla , Kiran Kumar Kokkilagadda , Sunil Kumar Kori , Satha Koteswara Rao Kottidi CC: Jerin Jacob Kollanukkaran , "dev@dpdk.org" , Rakesh Kudurumalla Subject: RE: [PATCH v9 3/3] net/cnxk: skip red drop for ingress policer Thread-Topic: [PATCH v9 3/3] net/cnxk: skip red drop for ingress policer Thread-Index: AQHZQQZYvYlRw6Ac/0S1YELUHpK/aq7PxljQ Date: Wed, 15 Feb 2023 10:00:16 +0000 Message-ID: References: <20230214130458.1114765-1-rkudurumalla@marvell.com> <20230215062532.1169860-1-rkudurumalla@marvell.com> <20230215062532.1169860-3-rkudurumalla@marvell.com> In-Reply-To: <20230215062532.1169860-3-rkudurumalla@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-rorf: true x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcbmRhYmlscHVy?= =?us-ascii?Q?YW1cYXBwZGF0YVxyb2FtaW5nXDA5ZDg0OWI2LTMyZDMtNGE0MC04NWVlLTZi?= =?us-ascii?Q?ODRiYTI5ZTM1Ylxtc2dzXG1zZy04OWM1MWFmYS1hZDE3LTExZWQtYWYxOC04?= =?us-ascii?Q?YzE2NDU4ZGVjZTFcYW1lLXRlc3RcODljNTFhZmMtYWQxNy0xMWVkLWFmMTgt?= =?us-ascii?Q?OGMxNjQ1OGRlY2UxYm9keS50eHQiIHN6PSI2MjA4IiB0PSIxMzMyMDkyODgx?= =?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QUFBQUFBQUFRQUFBQUFBQUFBQ0FB?= =?us-ascii?Q?QUFBQUNlQUFBQWJRQmhBSElBZGdCbEFHd0FiQUJmQUhBQWNnQnZBR29BWlFC?= =?us-ascii?Q?akFIUUFYd0JqQUc4QVpBQmxBSE1BQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFCQUFBQUFBQUFBQUlBQUFBQUFKNEFBQUJ0QUdF?= =?us-ascii?Q?QWNnQjJBR1VBYkFCc0FGOEFkQUJsQUhJQWJRQnBBRzRBZFFCekFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBRUFBQUFBQUFBQUFnQUFBQUFBIi8+PC9tZXRhPg=3D=3D?= x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW2PR18MB2171:EE_|PH0PR18MB3960:EE_ x-ms-office365-filtering-correlation-id: 07d51cc3-de2b-4ce7-0964-08db0f3b708e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hNPhS1N3J5Z1gwMFKz0s2aweKw3zo1AWEsRnjWi0QJ+gXFTxIU7s4fpC+oM85cmbQnkYI0KGvA5r1muEqcBiFWrH7mhYjMOxLDfNHObMIye2Eordy24H4RFUUeMNAzp5iJV3nmpF7bqZhDrdn0Bie7ujxyZccmmolOGy75RZO/ErweITAf8NePHanVcMOFWMly9vmpZ4NalSzAQhGbIx4kVfpdl7YdC9gWUNx1J3+7R60169E/Gbaps27U1G69g/40hyBpfjV7YrWQ6hDWGZ/Se9yN8l3e9Np14NScErPBU7irrlHvprsCauLv7v9qe8z4LAbhnHj1IdBrnoMyKWN1d98qFIrJlecZT7gfXZvwGkzUewOEsTeaL5zXs1yK1xksQDv2kKouvWLsmKB9Z6ZIq2W4K23AYwembiS/8i71eDqo2Y2O/hf+bwKNsEpMNUamyigZlExOvXmTT5IgRs7g255yJVGBoCxB/U3hTgYX70U8R5mytmd/+KsFZRagNfuojLz8h/2CweTVMQq6f0NBjL5BbuQBi+QlMOTkZFJQiO16RQMz6Z7P+YRXgblIIQuL0FhNOOwZPFYdQDfKqON0ZC05i2GDY83K3NR6yWp/4F/ZAbOVxht2NKDI0dDXPCa2YnJEp5OVStgOOP8hUI2dW/gstVi5WTAEtYzDWoxHnOUbo3NyfBfS/oCP4xNZKVWfEi7HpvupIxrXV98tFBOw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW2PR18MB2171.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(396003)(136003)(376002)(346002)(366004)(39860400002)(451199018)(71200400001)(86362001)(33656002)(38070700005)(122000001)(38100700002)(83380400001)(9686003)(107886003)(6506007)(53546011)(478600001)(186003)(26005)(7696005)(76116006)(66446008)(64756008)(66556008)(66476007)(4326008)(66946007)(5660300002)(54906003)(316002)(6636002)(110136005)(2906002)(8676002)(41300700001)(55016003)(8936002)(52536014); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Stc4W5w6LkwUi1CT640y0mKGWgzqdzd5tLxtlw1AtB8FFPT5Zp1YSGu9m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5NYw54Iyo3i16Z011ohtfU4QBQ8CcdHKV7du2teIOKoSJ9?= =?us-ascii?Q?b/DWstF2KT9/yRbCM08ktS8hDGxXCtBn4oPTXlZw5dDzfcQk3vilKKVcdx6S?= =?us-ascii?Q?vWrjuwjYNSys1kPs84DPRY3woQ71FH5OEyawmHNg6zimhR3Tgzht2PQpOEzM?= =?us-ascii?Q?pRUsy8fPIao5fsatWkMyNznpNcEUulEoYXTMoXL9ZVw4pscdYEJWKEBMHw4d?= =?us-ascii?Q?pqCmGGxBXMRtdCb0h6JoDtSPZCl3YaSORPDHCMIlrZLzgjw465awoC8WY7Wg?= =?us-ascii?Q?EpChen54jvmHq7fbjS0X42iT3JT8eMtqm5ev8pkVAsFMBVVtCT1aRnQAcUD0?= =?us-ascii?Q?PZQD3co5MkCxSvHrhEkAW+NpD/VpGFXKVKxTjD4TMZl5l9sia/VF2sIGbtxj?= =?us-ascii?Q?WcKJNTkPVJ3hnMSxp3OSb4TjRhM2J3Ll73rFbuE/LYnwEk+z8Mct1LA7wfG1?= =?us-ascii?Q?fnpBjbqAAQptf+PstQYXQOUECQDD6IC8+7lEynFGrE6X9f+/LJmwi13mHf9b?= =?us-ascii?Q?ZKOiCmjvPMKtUk8N2Ia5m/U9nuRJRO5+llcn1Oma4EMzBNoLTa/XjPaIIdUj?= =?us-ascii?Q?G9ceQv7QBS2WXMSYo1dPQaXL14p8qGjsw3sQj7gyHMEqFOwbheNPs0IZO+G3?= =?us-ascii?Q?+YTIi75FXqrDTaZR78PWRK5vfP6R0MAB2qSQCJFo?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW2PR18MB2171.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 07d51cc3-de2b-4ce7-0964-08db0f3b708e X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2023 10:00:16.8276 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: L94dZWwbzrbYv4wPgY7QihLpSHDiW/S39kxT1OACfAeL/6erx7NHwDhc56FY0vDgKNz0iZPLMonKnyLzEcbT9w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR18MB3960 X-Proofpoint-GUID: AuszFO4VYtDCetQhOsM-vwjCvYDCvGg- X-Proofpoint-ORIG-GUID: AuszFO4VYtDCetQhOsM-vwjCvYDCvGg- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-15_06,2023-02-15_01,2023-02-09_01 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 Acked-by: Nithin Dabilpuram > -----Original Message----- > From: Rakesh Kudurumalla > Sent: Wednesday, February 15, 2023 11:56 AM > To: Nithin Kumar Dabilpuram ; Kiran Kumar Kokkil= agadda > ; Sunil Kumar Kori ; Satha Ko= teswara Rao > Kottidi > Cc: Jerin Jacob Kollanukkaran ; dev@dpdk.org; Rakesh = Kudurumalla > > Subject: [PATCH v9 3/3] net/cnxk: skip red drop for ingress policer >=20 > Dropping of packets is based on action configured > to meter.If both skip_red and drop actions are configured > then tail dropping in invoked else if only drop action is > configured then RED drop is invoked.This action is supported > only when RED is configured using rte_eth_cman_config_set() >=20 > Signed-off-by: Rakesh Kudurumalla > --- > doc/guides/nics/features/cnxk.ini | 1 + > doc/guides/nics/features/cnxk_vf.ini | 1 + > doc/guides/rel_notes/release_23_03.rst | 4 +++ > drivers/net/cnxk/cnxk_ethdev.h | 1 + > drivers/net/cnxk/cnxk_ethdev_mtr.c | 50 ++++++++++++++++++++++++++ > 5 files changed, 57 insertions(+) >=20 > diff --git a/doc/guides/nics/features/cnxk.ini b/doc/guides/nics/features= /cnxk.ini > index f81628da77..7947c044bb 100644 > --- a/doc/guides/nics/features/cnxk.ini > +++ b/doc/guides/nics/features/cnxk.ini > @@ -94,4 +94,5 @@ queue =3D Y > represented_port =3D Y > rss =3D Y > security =3D Y > +skip_cman =3D Y > vf =3D Y > diff --git a/doc/guides/nics/features/cnxk_vf.ini b/doc/guides/nics/featu= res/cnxk_vf.ini > index c4ee32a9ad..873e1dcc0a 100644 > --- a/doc/guides/nics/features/cnxk_vf.ini > +++ b/doc/guides/nics/features/cnxk_vf.ini > @@ -83,4 +83,5 @@ pf =3D Y > queue =3D Y > rss =3D Y > security =3D Y > +skip_cman =3D Y > vf =3D Y > diff --git a/doc/guides/rel_notes/release_23_03.rst > b/doc/guides/rel_notes/release_23_03.rst > index 1dd10e26db..9f53ded5fb 100644 > --- a/doc/guides/rel_notes/release_23_03.rst > +++ b/doc/guides/rel_notes/release_23_03.rst > @@ -98,6 +98,10 @@ New Features > ``rte_event_dev_config::nb_single_link_event_port_queues`` parameter > required for eth_rx, eth_tx, crypto and timer eventdev adapters. >=20 > +* **Updated Marvell cnxk ethdev PMD.** > + > + Added support to skip RED using new action > + ``RTE_FLOW_ACTION_TYPE_SKIP_CMAN`` >=20 > Removed Items > ------------- > diff --git a/drivers/net/cnxk/cnxk_ethdev.h b/drivers/net/cnxk/cnxk_ethde= v.h > index f0eab4244c..ba35873124 100644 > --- a/drivers/net/cnxk/cnxk_ethdev.h > +++ b/drivers/net/cnxk/cnxk_ethdev.h > @@ -168,6 +168,7 @@ struct policy_actions { > uint16_t queue; > uint32_t mtr_id; > struct action_rss *rss_desc; > + bool skip_red; > }; > }; >=20 > diff --git a/drivers/net/cnxk/cnxk_ethdev_mtr.c b/drivers/net/cnxk/cnxk_e= thdev_mtr.c > index dcfa4223d5..27a6e4ef3d 100644 > --- a/drivers/net/cnxk/cnxk_ethdev_mtr.c > +++ b/drivers/net/cnxk/cnxk_ethdev_mtr.c > @@ -358,6 +358,9 @@ cnxk_nix_mtr_policy_validate(struct rte_eth_dev *dev, > if (action->type =3D=3D RTE_FLOW_ACTION_TYPE_VOID) > supported[i] =3D true; >=20 > + if (action->type =3D=3D RTE_FLOW_ACTION_TYPE_SKIP_CMAN) > + supported[i] =3D true; > + > if (!supported[i]) > return update_mtr_err(i, error, true); > } > @@ -397,6 +400,10 @@ cnxk_fill_policy_actions(struct cnxk_mtr_policy_node= *fmp, > fmp->actions[i].action_fate =3D > action->type; > } > + > + if (action->type =3D=3D > + RTE_FLOW_ACTION_TYPE_SKIP_CMAN) > + fmp->actions[i].skip_red =3D true; > } > } > } > @@ -1306,6 +1313,45 @@ nix_mtr_config_map(struct cnxk_meter_node *mtr, st= ruct > roc_nix_bpf_cfg *cfg) > cfg->action[ROC_NIX_BPF_COLOR_RED] =3D ROC_NIX_BPF_ACTION_DROP; > } >=20 > +static void > +nix_mtr_config_red(struct cnxk_meter_node *mtr, struct roc_nix_rq *rq, > + struct roc_nix_bpf_cfg *cfg) > +{ > + struct cnxk_mtr_policy_node *policy =3D mtr->policy; > + > + if ((rq->red_pass && rq->red_pass >=3D rq->red_drop) || > + (rq->spb_red_pass && rq->spb_red_pass >=3D rq->spb_red_drop) || > + (rq->xqe_red_pass && rq->xqe_red_pass >=3D rq->xqe_red_drop)) { > + if (policy->actions[RTE_COLOR_GREEN].action_fate =3D=3D > + RTE_FLOW_ACTION_TYPE_DROP) { > + if (policy->actions[RTE_COLOR_GREEN].skip_red) > + cfg->action[ROC_NIX_BPF_COLOR_GREEN] =3D > + ROC_NIX_BPF_ACTION_DROP; > + else > + cfg->action[ROC_NIX_BPF_COLOR_GREEN] =3D > + ROC_NIX_BPF_ACTION_RED; > + } > + if (policy->actions[RTE_COLOR_YELLOW].action_fate =3D=3D > + RTE_FLOW_ACTION_TYPE_DROP) { > + if (policy->actions[RTE_COLOR_YELLOW].skip_red) > + cfg->action[ROC_NIX_BPF_COLOR_YELLOW] =3D > + ROC_NIX_BPF_ACTION_DROP; > + else > + cfg->action[ROC_NIX_BPF_COLOR_YELLOW] =3D > + ROC_NIX_BPF_ACTION_RED; > + } > + if (policy->actions[RTE_COLOR_RED].action_fate =3D=3D > + RTE_FLOW_ACTION_TYPE_DROP) { > + if (policy->actions[RTE_COLOR_RED].skip_red) > + cfg->action[ROC_NIX_BPF_COLOR_RED] =3D > + ROC_NIX_BPF_ACTION_DROP; > + else > + cfg->action[ROC_NIX_BPF_COLOR_RED] =3D > + ROC_NIX_BPF_ACTION_RED; > + } > + } > +} > + > static void > nix_precolor_table_map(struct cnxk_meter_node *mtr, > struct roc_nix_bpf_precolor *tbl, > @@ -1483,6 +1529,10 @@ nix_mtr_configure(struct rte_eth_dev *eth_dev, uin= t32_t id) > if (!mtr[i]->is_used) { > memset(&cfg, 0, sizeof(struct roc_nix_bpf_cfg)); > nix_mtr_config_map(mtr[i], &cfg); > + for (j =3D 0; j < mtr[i]->rq_num; j++) { > + rq =3D &dev->rqs[mtr[i]->rq_id[j]]; > + nix_mtr_config_red(mtr[i], rq, &cfg); > + } > rc =3D roc_nix_bpf_config(nix, mtr[i]->bpf_id, > lvl_map[mtr[i]->level], > &cfg); > -- > 2.25.1