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 63D80A04B5; Wed, 30 Sep 2020 16:50:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 946C72BD8; Wed, 30 Sep 2020 16:50:10 +0200 (CEST) Received: from hqnvemgate24.nvidia.com (hqnvemgate24.nvidia.com [216.228.121.143]) by dpdk.org (Postfix) with ESMTP id 209682B9C for ; Wed, 30 Sep 2020 16:50:08 +0200 (CEST) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Wed, 30 Sep 2020 07:48:25 -0700 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 30 Sep 2020 14:50:04 +0000 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (104.47.45.57) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 30 Sep 2020 14:50:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L9XaHxQHYfMlebc1f2A+PaVID5e2LtFpc7Fy2mnMMM7bmBg28I/3IzHculCGPSYtpUqBNh2u7iKyLN+B7n4exrN693QmR1j5MQ4DWz9S8M+BQU4JPxjqTOeatq6kl3CHrARrnL1B+B+bEVRF7F9xm5lZMIeKjEKg4ld7GhoBR0cQzm4hN5kQroT6IONtylPrk0bPNW0cgL2DI6vlxZkw06/5HJD3epYQyZcnGpdNFldci5te8ms9SwMP8fk0Xwf3WnM9YbMIZgiqimbgoxACHET50eCF65xP/pm+DuqHDiLXNinQ9SXO+ci3rAh58bxDc+qE2sm1Venq1iff007zMw== 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=kU77b7mligU1neEYjFWU9NTjM6WCbbX9aYMRvNk3Tv8=; b=JQ/hLadcDrzn0C2zdBfzaBcW3Hovsdtgmm1iA7Fr616+YjpjQB4F5t+Z8XZR4VVqq13+q1yWqmV2wpzrEllv9YkWWs2dbGwPYs29edtfdsNXo6ood2VevXkB6ji7QqNYhO4l/7xaMuBP/u8m9JSl4UVbgGWCs/KPB4e1vrSPZUm7CWdHqRgZlmoY+NW84I8PLgbf0c6fHm/o2IYoe5sWa4fLnT3Rar2A3CSJsMyQ2Pnus9xCug8NWTGtNfQyNDcR1qjcJVbj8WybhqluxWcjvOVNd0GhmzUHa9bRCjI5gdh1STnFabqJF1J+ZML1Nt0cLDmHiVqAVgeIO7yh5qI8Wg== 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 MN2PR12MB4127.namprd12.prod.outlook.com (2603:10b6:208:1d1::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.36; Wed, 30 Sep 2020 14:50:03 +0000 Received: from MN2PR12MB4286.namprd12.prod.outlook.com ([fe80::61fd:a36e:cf4f:2d3f]) by MN2PR12MB4286.namprd12.prod.outlook.com ([fe80::61fd:a36e:cf4f:2d3f%8]) with mapi id 15.20.3433.035; Wed, 30 Sep 2020 14:50:03 +0000 From: Ori Kam To: Dekel Peled , NBU-Contact-Thomas Monjalon , "ferruh.yigit@intel.com" , "arybchenko@solarflare.com" CC: "dev@dpdk.org" Thread-Topic: [PATCH] ethdev: support query of AGE action Thread-Index: AQHWlwjAwaSMEOqUhkS6elUStvdM76mBQ4AA Date: Wed, 30 Sep 2020 14:50:03 +0000 Message-ID: References: <5a46a1ed26cd7e89483d06eaf676d44a088738f2.1601456245.git.dekelp@nvidia.com> In-Reply-To: <5a46a1ed26cd7e89483d06eaf676d44a088738f2.1601456245.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: 9dd3c90c-8a8c-4a0d-8b09-08d865501d2a x-ms-traffictypediagnostic: MN2PR12MB4127: 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: 2OzJ1OmZnR8UMzxkXI0XgqnthWORl/oAEpBd0NCK+XYPqlBO5kEayuL5uBBjXGgpNO30RibPGUh2PajGGKBQyCWTQ9URNJir4LGfeQHdzDe25+hl3Qzeqt6/Lw/HqDx3q+bSHDc5N5dbXdMZfsJWKudoqKFc5Ki0PWvvMSCMWeULb9Lr6Up01mwF6OUeWcrL995aLxSVnxXDmeNLSdMCKrq8almaEHDO7MBGhlE4ZLXGbCvQfdDhKj55R82wkv/4eX7u6HU/eNGpBYqeI5oMByA+kzs+qBPAhlM7a3T5izDc0/qqai1CeOpXrbWbXTmkAeddHgW7GVDgAa18gsYPXYOAW4uaN2IaTfABW8osHpk= 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)(346002)(396003)(376002)(136003)(39860400002)(366004)(55016002)(2906002)(9686003)(64756008)(66446008)(4326008)(966005)(66946007)(66476007)(66556008)(76116006)(71200400001)(45080400002)(53546011)(6506007)(7696005)(52536014)(5660300002)(86362001)(110136005)(186003)(8936002)(26005)(8676002)(83380400001)(478600001)(316002)(33656002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: syztgM1DbDI9YVIMfXzEhjPZQRJj1vMx9Ry4Z1ObGcX7KO8s+IZHU5WBN5V+TeRr3LSBX2PTnjVS/r6fD3SI5C4xn597y+Ul/jsCGPnSMEDcPXT46jf/hTfoSRSkFhHVp1N1gSq2ai7nSi/pSlpTAOK9ibD6V1eeGHtefO/KwEecv3t+G+1E1WttTXxg/xwps/C4zioPLws5CK/HDrvM7yw2bRCfuUNkPQqeNzPwgsI0GagF3Gi1gBF3gH5gZ69n8eNRXahtywLnMgAUKkO+PUX0y0GnC76QPxOFZ3uMew7bqV3eLLGtEiio34GhdonuNfpR9N9PfpEPfXC6Gs1TmPKoBfUlqFLmQHuzt6UbhDCgYUdDXL5Y0a9RfxRyAWU+wPzByBakVIJaVUDQ0LLXz+X25riBGeOP0LQRygIlERPtaS+10MTiIJZd0sjICBLpQbPVnVgEiCoEdRuHxVlcdnzVfW3NUVtX7YtGoNntOTiw2KS7roeIKoObT24c0+gFzRjBI92KEw9yZgSDIG6xS1bMdUP5hgTBPSSYb5QFKhA0fz482mbwsAoW7qeb6zKQfCg3L4yCTls9EYyJ95Q/XyuhKoNObVnuPYg3GSvKjdFIKTCezuylm8jOROL45NBu2AQuZQudWbLTP3owOpxiSA== 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: 9dd3c90c-8a8c-4a0d-8b09-08d865501d2a X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Sep 2020 14:50:03.2428 (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: ouGKHHvHFQ6lBv7YCX89Vmffn/ne79jWsdRZLcbIPwOUFIN+AK6ZCAu8cEqXyKwIVxLl6LjjK/EKLdgq/As33g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4127 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1601477305; bh=kU77b7mligU1neEYjFWU9NTjM6WCbbX9aYMRvNk3Tv8=; 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=hTHyzhlThNDMYZP7i0cE6KJgYqYUFYYysr8aPyNoSySR/5M+Y2v9twhw+YFBx/yda KG4jsElfQYMRnOOfIM/vsNOJRLpKrFnOVCNPoF3U1O7FjB/b4kU+esppJi1qDFE2Y3 OoxgsMpWjh7z5RGPHXzzRbZEKQhRsBcSee47uMc2JJO8tQUOabYb0z0JAYSlgYeO6T AfNfbX8p0i+AEcJqMUeBs0yslSdkQkbkRCsWF0kjJty6JM06WqFZ2JzhvmxxP7Eyl3 gp/ThIFT1VNI23mnHzVMFMJwuDlpOZ8dqBVKPPFAIIePUnhwy2hW/8WynekrgvgEqi ivSA761qMzajw== Subject: Re: [dpdk-dev] [PATCH] 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, PSB, Best, Ori > -----Original Message----- > From: Dekel Peled > Sent: Wednesday, September 30, 2020 12:04 PM > Subject: [PATCH] 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%7Cc > 23713ddc6ea4274097a08d8651fe28c%7C43083d15727340c1b7db39efd9ccc17 > a%7C0%7C0%7C637370534898213186&sdata=3DKWN9qVOcOk10l3kcMkEX > VPxsqwuyNWV1NroiHcPqCNE%3D&reserved=3D0 >=20 > Signed-off-by: Dekel Peled > Acked-by: Matan Azrad > --- >=20 > Testpmd updates to follow shortly. >=20 > 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..4b8d033 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+ > + | ``aged`` | out | Aging timeout expired | > + +-------------------------+-----+-----------------------------------+ > + | ``last_hit_time_valid`` | out | ``last_hit_time`` field is valid | > + +-------------------------+-----+-----------------------------------+ > + | ``last_hit_time`` | 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 4bcf220..9a397d2 100644 > --- a/doc/guides/rel_notes/release_20_11.rst > +++ b/doc/guides/rel_notes/release_20_11.rst > @@ -162,6 +162,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..1a13802 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 aged:1; /**< 1 if aging timeout expired, 0 otherwise. */ > + uint32_t last_hit_time_valid:1; /**< 1 if last_hit_time value valid. */ > + uint32_t reserved:6; /**< Reserved, must be zero. */ Why place the reserve in the middle? > + uint32_t last_hit_time:24; /**< Seconds since last traffic hit. */ > +}; > + > +/** > * @warning > * @b EXPERIMENTAL: this structure may change without prior notice > * > -- > 1.8.3.1