From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5588EA04BA; Wed, 7 Oct 2020 15:46:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 320E81BB3E; Wed, 7 Oct 2020 15:46:40 +0200 (CEST) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by dpdk.org (Postfix) with ESMTP id 7DE051BB0C for ; Wed, 7 Oct 2020 15:46:36 +0200 (CEST) Received: from HKMAIL102.nvidia.com (Not Verified[10.18.92.9]) by nat-hk.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Wed, 07 Oct 2020 21:46:34 +0800 Received: from HKMAIL103.nvidia.com (10.18.16.12) by HKMAIL102.nvidia.com (10.18.16.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 7 Oct 2020 13:46:30 +0000 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.177) by HKMAIL103.nvidia.com (10.18.16.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 7 Oct 2020 13:46:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PFrLd8Vcuf86t1abqqH8xnCmFyi6H3xEBQRvOkvDVwdP2uJG6pW7l2fCJLq7ZpLky7in7vE5sUtfHRTDTI3KMZ+LK/UzB/T3Per4z5u7nL5MmHUysH1+n8CpgQ3a+ELevzzJePkFKt1L8q0vWc0pXcmpfPDeTlu8rQVEHsvrBvGDI++Gj2MKFIMzpiTeuwOxDIQ1gBwNsA3wLMY9IB/tvmWcYajVufC3eotnM3JDyH+bPR7rOEzP2/aQWwQn0vk0eHtcAETeMNj6hNKI+3CNg27YzxWCjhDPByMecOAn9EhpnJTMRDiGXSMZTPeqlvplzJd2lgje9Jb1MESYqUqbHw== 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-SenderADCheck; bh=2esNBCRNNd/gal81KVC22J5n6i2fK5+PPDndbyO/gKY=; b=MnQ7wIEMkR498X+qCIo/hpffDQ2w31M8VN6TOZ6bGglwrxk+VEivA4ukI+XC7pHELoQ+Qpat8Z+OI0TB8mSGXlI2TDAYjkfWFpir9PFb1ruuCF9xfctEs/WvezcTJLE8qw3zfYmAU0noB2W5KFJvYK1mjUuZIAJlYl2clsJtiWKAQzehSN/BkFITFj9TbJ3JUrS//6HTRoI1k5TxiZ8P9fEHTPI4s78LVViFA01bMB1r9qPxdC5csDoKapBDHjSOWICDS0XW1zAleZwwXv70SP9sIzV4wmuNDhU8sJQL5S1Ttoi5y5Xaytcc4qErIrpWXUmrkg/CkAnGBY+2Ca0ALw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from MN2PR12MB4286.namprd12.prod.outlook.com (2603:10b6:208:199::22) by BL0PR12MB2530.namprd12.prod.outlook.com (2603:10b6:207:43::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.34; Wed, 7 Oct 2020 13:46:26 +0000 Received: from MN2PR12MB4286.namprd12.prod.outlook.com ([fe80::61fd:a36e:cf4f:2d3f]) by MN2PR12MB4286.namprd12.prod.outlook.com ([fe80::61fd:a36e:cf4f:2d3f%9]) with mapi id 15.20.3455.023; Wed, 7 Oct 2020 13:46:26 +0000 From: Ori Kam To: Dekel Peled , NBU-Contact-Thomas Monjalon , "ferruh.yigit@intel.com" , "arybchenko@solarflare.com" , "wenzhuo.lu@intel.com" , "beilei.xing@intel.com" , "bernard.iremonger@intel.com" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v4 1/2] ethdev: support query of AGE action Thread-Index: AQHWnK3qdhug/HYJmEGQoiiaTgs/rqmMJwbA Date: Wed, 7 Oct 2020 13:46:26 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [147.236.152.129] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c9579849-eb99-4cfd-dc0b-08d86ac7632d x-ms-traffictypediagnostic: BL0PR12MB2530: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: CVwQXduUn9ymsiSTZK1EPxim/KWwA2Vx8TF0X+wgzhscJnTlWCJKRUHWZKUxY0plS+mvrXTpF+bm5rhPpwwECrrLRVn4j+193PrqOCZyQa1M/evk2klhTHCnF47zzNdmQ54oVT1gEU0QbJaU3HLSvDfIPSjz3ROJC1sNmxYq8LCL90gs4AjxhUYbXAnIey7seAt1sOkDJU40CJAsffl3g8QJbiAfr++Ka2j/ctpOvF0n3k/EJQGbfel2CLja0OdgjB3AKHwHUinDA0RFcacpEnOlfX2Un3S/s4+ze1+R2G4jm8lpkvnqVbSxsNkDSU8UEjp08LZKcWhSdoZc9aJdxogIPZ9GvIPXNB0iOcxJpkk= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR12MB4286.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39850400004)(396003)(136003)(346002)(366004)(376002)(9686003)(53546011)(6506007)(2906002)(5660300002)(71200400001)(7696005)(8676002)(26005)(186003)(55016002)(4326008)(45080400002)(66556008)(66476007)(110136005)(316002)(966005)(8936002)(66446008)(478600001)(33656002)(76116006)(83380400001)(86362001)(64756008)(52536014)(66946007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: 2MKFIMPnuPtEnqIjShwlXc1XXiTAjJQFDLUIBuaa1HW/7qdxth0RX18Z2RmwwoYLDwpOyNwjpF6jSW0O3elpSGb9uI/lmg6dUt0sBuEo/UWc/UxLiUmtfU3FZytwOPte4XP7qpDPNZrh1uSGR2K9A5dlGP+7iJUoTDt0xEAfzOqx/CiiNP6G9/iIiPFfRW5KqAmf8UfQQq3Eo7rWfIloc9UK13+nzoBfomPikqrSFsFLb/Fb/EDIfMzx/EI4GQ2hlDqjKSI4HKIYTf3qlh5ATpVzSBXkvYOeZYmIIbMXdi21+Ql+Y2oYwD5/1E6Kt5sh0P6mURTHSnN1EUNman6frX5iEwq4bBFO9iQlL08XPHCjw7JaH879KlW/UipeL+pmuCnrnXfbfOs38vKYGHmr63OYrzs7gt2/oCJcZjeZaAWAjoGcQHW9kvLbNFn0BX8DY1ZPRn1HqWcb+1efJBRTxWPYze8lfKqrLD5MSK2ETVbqtRMrLxMfImVhQeghJYpo9QXGQdxmHF6fVzawPld6hFg6fDqPjR9KlANvTqvxg3RPerzqlL4YTpoVAo1mXaU1VSiXmO7VgvXQgQma1INHYpGWp1xPCqpuhEf33cnFKa1X74tGy5KJfHWC+QZd7HIbG06p2OKmu3wfqm1SOiC0KA== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB4286.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9579849-eb99-4cfd-dc0b-08d86ac7632d X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Oct 2020 13:46:26.6268 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 9XncG8hL8Xv8NHew79Aa9zcLLn6MRvp+g3cww6z/Wrda7bN1RIPhuboNEsuLWIFV6ME72jvgPDBFLb3IXB0RLQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB2530 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1602078394; bh=2esNBCRNNd/gal81KVC22J5n6i2fK5+PPDndbyO/gKY=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To: CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ld-processed: x-ms-exchange-transport-forked:x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers:x-ms-exchange-senderadcheck: x-microsoft-antispam:x-microsoft-antispam-message-info: x-forefront-antispam-report:x-ms-exchange-antispam-messagedata: Content-Type:Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=d8QeZV4JkhR20d0pLIY26RtN6tYKRzgqBXT3kd4M7Y1NDYN6qthd36vxIvNmxZtjx q36zsKxQ3YEseKOuLYbxd648kn7oLOYcWMcrWoF/cEPLR4CAA5v4WGmQ5+A8abX0aN Df2ILPpB0w9/0W5iosj/BoU5hMg082sYF3Oe4r76HicSSRSPN9/Vg+TBZUa3wdm4zt 7yY27UNlWjUQLdDKmmoMhmc7sfBkr5xOkMnUQ0cs2U3YE5T3bj35xz6/tYSEEx5F68 d/qdwLGA7RIXG6RICToPPflILENpOf/yHD/i8x5SHIwHL9P4yXYlknqywNwe3zotLZ lWE61azrnv0YQ== Subject: Re: [dpdk-dev] [PATCH v4 1/2] ethdev: support query of AGE action X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Hi > -----Original Message----- > From: dev On Behalf Of Dekel Peled > Sent: Wednesday, October 7, 2020 4:29 PM > Subject: [dpdk-dev] [PATCH v4 1/2] ethdev: support query of AGE action >=20 > Existing API supports AGE action to monitor the aging of a flow. > This patch implements RFC [1], introducing the response format for query > of an AGE action. > Application will be able to query the AGE action state. > The response will be returned in the format implemented here. >=20 > [1] > https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fmails= .dp > dk.org%2Farchives%2Fdev%2F2020- > September%2F180061.html&data=3D02%7C01%7Corika%40nvidia.com%7Cd > 4a344535a0a4cce067708d86ac50c2d%7C43083d15727340c1b7db39efd9ccc17 > a%7C0%7C0%7C637376741824163645&sdata=3Di9ycF2KfCqDgcLXjzHTMxW > TcCRS3pslGu1whISDlFbs%3D&reserved=3D0 >=20 > Signed-off-by: Dekel Peled > Acked-by: Matan Azrad > --- > doc/guides/prog_guide/rte_flow.rst | 17 +++++++++++++++++ > doc/guides/rel_notes/release_20_11.rst | 3 +++ > lib/librte_ethdev/rte_flow.h | 15 +++++++++++++++ > 3 files changed, 35 insertions(+) >=20 > diff --git a/doc/guides/prog_guide/rte_flow.rst > b/doc/guides/prog_guide/rte_flow.rst > index 119b128..a672fc5 100644 > --- a/doc/guides/prog_guide/rte_flow.rst > +++ b/doc/guides/prog_guide/rte_flow.rst > @@ -2666,6 +2666,23 @@ timeout passed without any matching on the flow. > | ``context`` | user input flow context | > +--------------+---------------------------------+ >=20 > +Query structure to retrieve ageing status information of a > +shared AGE action, or a flow rule using the AGE action: > + > +.. _table_rte_flow_query_age: > + > +.. table:: AGE query > + > + +------------------------------+-----+-------------------------------= ---------+ > + | Field | I/O | Value = | > + > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+ > + | ``aged`` | out | Aging timeout expired = | > + +------------------------------+-----+-------------------------------= ---------+ > + | ``sec_since_last_hit_valid`` | out | ``sec_since_last_hit`` value i= s valid | > + +------------------------------+-----+-------------------------------= ---------+ > + | ``sec_since_last_hit`` | out | Seconds since last traffic hit= | > + +------------------------------+-----+-------------------------------= ---------+ > + > Negative types > ~~~~~~~~~~~~~~ >=20 > diff --git a/doc/guides/rel_notes/release_20_11.rst > b/doc/guides/rel_notes/release_20_11.rst > index 0b2a370..7e093f7 100644 > --- a/doc/guides/rel_notes/release_20_11.rst > +++ b/doc/guides/rel_notes/release_20_11.rst > @@ -191,6 +191,9 @@ API Changes >=20 > * ethdev: ``rte_eth_rx_descriptor_done()`` API has been deprecated. >=20 > +* ethdev: Added struct ``rte_flow_query_age`` for use in response to que= ry > + of AGE action. > + > * Renamed internal ethdev APIs: >=20 > * ``_rte_eth_dev_callback_process()`` -> ``rte_eth_dev_callback_proces= s()`` > diff --git a/lib/librte_ethdev/rte_flow.h b/lib/librte_ethdev/rte_flow.h > index da8bfa5..42a315a 100644 > --- a/lib/librte_ethdev/rte_flow.h > +++ b/lib/librte_ethdev/rte_flow.h > @@ -2130,6 +2130,7 @@ enum rte_flow_action_type { > * See struct rte_flow_action_age. > * See function rte_flow_get_aged_flows > * see enum RTE_ETH_EVENT_FLOW_AGED > + * See struct rte_flow_query_age > */ > RTE_FLOW_ACTION_TYPE_AGE, > }; > @@ -2194,6 +2195,20 @@ struct rte_flow_action_age { > }; >=20 > /** > + * RTE_FLOW_ACTION_TYPE_AGE (query) > + * > + * Query structure to retrieve the aging status information of a > + * shared AGE action, or a flow rule using the AGE action. > + */ > +struct rte_flow_query_age { > + uint32_t reserved:6; /**< Reserved, must be zero. */ > + uint32_t aged:1; /**< 1 if aging timeout expired, 0 otherwise. */ > + uint32_t sec_since_last_hit_valid:1; > + /**< sec_since_last_hit value is valid. */ > + uint32_t sec_since_last_hit:24; /**< Seconds since last traffic hit. */ > +}; > + > +/** > * @warning > * @b EXPERIMENTAL: this structure may change without prior notice > * > -- > 1.8.3.1 Acked-by: Ori Kam Thanks, Ori