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 7D960A04BA; Wed, 7 Oct 2020 13:48:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C728F1B878; Wed, 7 Oct 2020 13:48:27 +0200 (CEST) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by dpdk.org (Postfix) with ESMTP id 156771B875 for ; Wed, 7 Oct 2020 13:48:24 +0200 (CEST) Received: from HKMAIL101.nvidia.com (Not Verified[10.18.92.9]) by nat-hk.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Wed, 07 Oct 2020 19:48:22 +0800 Received: from HKMAIL103.nvidia.com (10.18.16.12) by HKMAIL101.nvidia.com (10.18.16.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 7 Oct 2020 11:48:18 +0000 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.168) 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 11:48:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ToZk2Y0yfbjyaxE/N9BOuUUpR3dSz8+1w1SNptkUjmBePUpwOKg37Zh6eq3zfxfTf88KEq+zAL6Kj0snvM0h1zzTzuL1CjGu5S8XJaqd8af4AHgpa1PfLuvXJDFuCvOXg0TSwM34hCqkfwTLFAYHEtSAaxVKvnYLjDc0trjwbzLt9a5An80w6xufaEm+gm35i0kq4x1VyheUAUCRv40bhU7ddN/VeDJH4kokWfMEZYF4gcYTDn7dS4xysuDORZkS2s7UX4SfpAKXq2g6wek5VlfBfMhyw9yWLE4mL/fuVD1V+kemquG4/wbo+FZ8E8snAhVY2LAEiQDnaHLZ84mGFQ== 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=FSdJLbcsZ7gdyouhmNrUTZlAUTcXMFYJGlneMeXhn1Q=; b=cLk8RRMRrJujpxqijRrealYwkNpgHTT+FUoXnUrR4ivKxIYgDtZo8Q/ehWF5bzKUUpUQZJ/jyJSg+/lsi0u9+PBSxhpATVh3jcF397itsaqDu/Tz+Hyh0FUAMJAmATxdYgyeb7eRZ9iEQuZxl2luF1nefAVFWk1lQA/eZDBIqCyHywWAoSUEY+nCWrWWVmz+5q/DCqmWqmghyFkrlgPNsjQh3FJ0ySwZxvC/c2Yi36brprxhU7LJ3GoUTigHhD8A58OMv5j2HOMyXOia95z/4D3NecQeCjXbtz54WP+BUjbr0DrjwvhUopCpFjoDtU4hpq5WvYggvfVMXTQ8vPbAyw== 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 MN2PR12MB3807.namprd12.prod.outlook.com (2603:10b6:208:16c::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.32; Wed, 7 Oct 2020 11:48:15 +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 11:48:15 +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: [PATCH v3 1/2] ethdev: support query of AGE action Thread-Index: AQHWnJ5fmUMcsFvtkU69Ua/Clpn5tKmMBdhA Date: Wed, 7 Oct 2020 11:48:15 +0000 Message-ID: References: <49e4589fad17e82d805abbc4a766456024deb2b1.1602070197.git.dekelp@nvidia.com> In-Reply-To: <49e4589fad17e82d805abbc4a766456024deb2b1.1602070197.git.dekelp@nvidia.com> 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: b2fac432-0ee5-4e0a-204c-08d86ab6e06d x-ms-traffictypediagnostic: MN2PR12MB3807: 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:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: HzOw46CoRlOFlRpOB6J4cmyV3gU9ordkoglIeKftbDIBpENqE4ICPwkKGuax1d7zUoyk9pM81FSwULh+TNiA6N9dSS87CWRG60HPmK8Cmhp3oKFW/FVfwDE2xN0Aniq/rmTQCLYsd8dI5ZuYT9AFJDWwzILNEC26dEvFgldOcvWSlYxKY4/yasxRgiexpQwBEnirTbKPPWXkv9UpGIGYWwvRNQ5LtJ5ge4+cI0R5XHBBbUBs7ZTz2Jztxlyp3kE7mWqGJh+H6QRHGmHI1n8pMOso4aKxfgEph3J15qI2hKI++FbLxXgam0TTn6BvPX1zRLFGH8+ge0RUKN8T/yK7AXO6Pl9sktPGXqQO/h6GRSw= 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)(376002)(396003)(136003)(346002)(39860400002)(366004)(71200400001)(6506007)(5660300002)(4326008)(33656002)(2906002)(52536014)(26005)(66476007)(186003)(9686003)(64756008)(7696005)(66446008)(76116006)(66946007)(66556008)(55016002)(45080400002)(86362001)(110136005)(53546011)(8936002)(316002)(8676002)(83380400001)(966005)(478600001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: U3OoKEvmxKItCHUFIq8HZVzA5atm3E46Cwzrr4Pgt3K4/7SKiTBaTfNi5rRssd8r0qIQYSb7ZiLu3C3TaMnTHcxkMpbQ9DX5/MY2bDBHiqhuZlk/t6mS8ZcHskcpw+QAspt8Yrc8ewxktzWNbm4hKSyyV8khetCsXQJZaLBksO2DHL0XKhiDD+H5mV7DlmhhPLidWr/SsMj9Ss5pIeq1mRSTzwblnnzIxXc4RWDrr4nCQdooLay+ZEIcoh3MlXtGlUuJtH09cmzFOpWHWtx9sOa7iVUO1NKDs8zi5XKKQZwosKlH89KQrXcqdJBq1KnZXuDBq9fWS+BYjhCP35WAQ0zYnn4r+r73n+NL92wCU46lvvl8LN8yVGXqGmGnXC93OsRuSiE3T0Fyodgg5njZUxZizsf8rRmdLzRDI/br4JAF8CJoY3RP2+sheDp1bNgiaaS6Hya2YlX48p4SV9JsAAvpCtPeCt38oXOXa6AU8EiXYh5ZpFSjPG2yrdlYWWRLcxCX1FZyBYCCusnB3j5NIfM1Gpv6Ck5Kfqr/qel0htivBn4nVRFKeOEmTjE05qKiFFMZafJKRoStcg+BtHI9pvyiyo3MbGiqrVMKfjd8S0xPSXDWnC1ZtZqMsCRHyfpz9nhTDNVxDQMi2TA/SwHsaw== 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: b2fac432-0ee5-4e0a-204c-08d86ab6e06d X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Oct 2020 11:48:15.1838 (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: CGaPbiMjr8SDOqY2wbOkiS8jDlbGyRHicK0S9Ycx9TtV7GbTxsSDpHxlA+E86Lb8oFOw6SJ2dphqqcai5Gs9Ug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3807 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1602071302; bh=FSdJLbcsZ7gdyouhmNrUTZlAUTcXMFYJGlneMeXhn1Q=; 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=HGPKGeWt7/OOfAmohzvFUI3dFnjxckM/Hma5aXrR6wYDZCkxsK3M2Muz/vEYa43Nx 6boVCJSizZYgx/an0gt/CZmsxnMu2JV+hgTrNtrdqAo5ONpNzYQWeKeClfL/IfuMDh JNUd9/slNzkcJLcJddp6B90AL+MMUNaNYCv/9OgN6p6MVTuQr3zwzDjNdLA32LGlCy cJ9GGUI1imwugfpOrBPf+LsgdBFgLIKCWdAV1hyd78OOC4cR2/D1XulzgDpJhbghz+ xA5fWnZQClGgIK+IfWvb9y/FdiD/+LyUhrodABoM8uCORbnzjKonrz939JvpLKyWHG imNOQ0NLiN5kg== Subject: Re: [dpdk-dev] [PATCH v3 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 Dekel, > -----Original Message----- > From: Dekel Peled > Sent: Wednesday, October 7, 2020 2:38 PM > Subject: [PATCH v3 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 > 97faa2a57154e3ca5dd08d86ab58131%7C43083d15727340c1b7db39efd9ccc17 > a%7C0%7C0%7C637376675069240107&sdata=3DSufcP3eY5NHVPKneg3jx06S > EGhTl45DCMeUual5H7n8%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 | 14 ++++++++++++++ > 3 files changed, 34 insertions(+) >=20 > diff --git a/doc/guides/prog_guide/rte_flow.rst > b/doc/guides/prog_guide/rte_flow.rst > index 119b128..341e5ed 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+ > + | ``aged`` | out | Aging timeout expired = | > + +-------------------------+-----+------------------------------------= ----+ > + | ``last_hit_time_valid`` | out | ``sec_since_last_hit`` field is val= id | > + +-------------------------+-----+------------------------------------= ----+ > + | ``sec_since_last_hit`` | out | Seconds since last traffic hit = | > + +-------------------------+-----+------------------------------------= ----+ > + I think the last_hit_time_valid name should also be changed. > 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..129e4ab 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,19 @@ 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 last_hit_time_valid:1; /**< sec_since_last_hit value 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