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 D0786A00B8; Sun, 27 Oct 2019 20:11:00 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9A6A71BEF6; Sun, 27 Oct 2019 20:10:59 +0100 (CET) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150078.outbound.protection.outlook.com [40.107.15.78]) by dpdk.org (Postfix) with ESMTP id C23731BEF5 for ; Sun, 27 Oct 2019 20:10:58 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LOJLJ/vmUbfE1yQsGqOAYXEPQ0gU2uU95gQHLhaRY9b1ZXCbGZQ3s41nvihGGfG+BbDB3B1pFbguN9NdtLTOLJDUKCVf4tcQkhiJvzSnZHeMerfTWXVJL5bWBFe0PHnex1sNP5p7Pe9YuOVesmIub0KlmizZtqSYMnl2QFy/o4LW3gkrSiH33gNKOD/gGed7wS8tu9Hbtk5vADMWFR/vcSTvQPIj1gNqa500n9V2adDHP8iJ0xgsyy3QgPSbqNqbOBKXB3G93aQgr2qsthOfGktsSyJ39kfpeKv3BvFQZU80LlGUqOP0q66NPKQ6cu2EA3OHLew5cycmKb4iMoXpDw== 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=qU1fnKpaaqIYCsyyIRmF7VKfFcsqHaC5DOnGz69i+B4=; b=GEzuJT9i4jLrntH5OaOuXL2PrGwvbCkXBIyIQLz/+ruER/BnWvEgWK4Yg8q4pRz/pG3iXBtOoDOfDb0188swWkgqjG9jRx5ZJTz5LgB1DdE3mjLz+UVWwqNT7hPe47vil3oDE7kqqN4PNeSj4lM2SS9IULumXGY7DIp+yLy2/LFLPdhmVf+Y82nNgK6AMPsD9NJCTosj4POb9psfuN8lig1nRcDlxr5PJr1xjrUZNg/o+Lo8haiWDzMr7QzLWLGxX4eT7pKdusqX2UCowbjkOfgA1B3A3GOktkolKjRgPJo1Kx8sUIpoOdWYPyHuxKlzESdGMsfN2Ef5yEAQiRI/hQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qU1fnKpaaqIYCsyyIRmF7VKfFcsqHaC5DOnGz69i+B4=; b=XRnOQIWJ4dps0fvxVhELltW9SCgvcN5F/mERf2Xu0+NBGcmdyzMR9YspfAnB+dwekc6UukOhOaNKofjTgGlSoXhn3pG/NVH36yW/qd6pOQSDXdSiQdGdUxItx8s5iPeqwEeCIMbbI1cyz4ziKsOuwLDT8+dHuUEPRiulcSZwQVs= Received: from AM4PR05MB3425.eurprd05.prod.outlook.com (10.171.190.15) by AM4PR05MB3428.eurprd05.prod.outlook.com (10.171.186.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2387.22; Sun, 27 Oct 2019 19:10:57 +0000 Received: from AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::70a7:a312:cbc6:d178]) by AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::70a7:a312:cbc6:d178%7]) with mapi id 15.20.2387.025; Sun, 27 Oct 2019 19:10:57 +0000 From: Ori Kam To: Slava Ovsiienko , "dev@dpdk.org" CC: Thomas Monjalon , Matan Azrad , "olivier.matz@6wind.com" , Yongseok Koh Thread-Topic: [dpdk-dev] [PATCH v4] ethdev: extend flow metadata Thread-Index: AQHVjPYOPP0yCzQWqEmUzY78jjp+o6du2e0w Date: Sun, 27 Oct 2019 19:10:57 +0000 Message-ID: References: <1571922495-4588-1-git-send-email-viacheslavo@mellanox.com> <1572201636-16374-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1572201636-16374-1-git-send-email-viacheslavo@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=orika@mellanox.com; x-originating-ip: [185.175.35.255] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 68af6fad-a8fe-47a1-85e0-08d75b1165d0 x-ms-traffictypediagnostic: AM4PR05MB3428:|AM4PR05MB3428: x-ms-exchange-purlcount: 1 x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 0203C93D51 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(39860400002)(396003)(366004)(136003)(346002)(199004)(189003)(13464003)(102836004)(86362001)(33656002)(305945005)(25786009)(45080400002)(4326008)(26005)(7736002)(81156014)(8676002)(478600001)(81166006)(6246003)(8936002)(107886003)(186003)(6116002)(3846002)(66066001)(2501003)(110136005)(54906003)(6506007)(76176011)(99286004)(7696005)(966005)(2906002)(66476007)(52536014)(71200400001)(71190400001)(316002)(486006)(55016002)(64756008)(5660300002)(66556008)(14454004)(66446008)(9686003)(6306002)(6436002)(66946007)(76116006)(229853002)(14444005)(256004)(74316002)(11346002)(476003)(446003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3428; H:AM4PR05MB3425.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /cp/18/Sc/36ERZdqYyTVPsCJrvyRuE+5PCjPBUSiwf5DFuTo263HTQGou240K7xqUnZYf3b804sbRXz1wkIUHg+PDlCtpbd1JmASIn/AsktmQ07Kz6ynvxQfUr1hs30e+ksfUPFUhqhk1aUqyCpSQvmVboPJdat9fgfYQOdUKxazF+R1djPZRWk5vucd3YWATOMqefZ1fxcAf+DRhJyrH+ulv0KUtM9rpsx2LJ924joi4USo5gmbW/sbnfUWkHlZd2rAGneAFBzWgC8VhQrjuydFlCaqTCbUXtqH1OOzo2UmXIL2c8m7OsaoyHNbATeLcaDkOcghgvlHwk2J5DMlkFwi7cAEEvQQ2J+H3XRRidntsJQMwfotxS9f6Qjk1NgABeBug7Fy5v3WYHjX+6ud3CMAuydFpqJTL1neHJ1T9ChmXY1EroKa8h3dyKETt8DqhLO3ZaZbwGJeUTwPsGL9ifGtH7WHKt0F8Z1UHJJ0IE= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 68af6fad-a8fe-47a1-85e0-08d75b1165d0 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Oct 2019 19:10:57.5681 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: PqiKG9biG1MWBCDwZRP2MaXLichCVgFOhqpf0qk87XoJcAOmss1Yb4XtuutcUcn/WSbJRqe59pVf8d11LPjhXA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3428 Subject: Re: [dpdk-dev] [PATCH v4] ethdev: extend flow metadata 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" > -----Original Message----- > From: dev On Behalf Of Viacheslav Ovsiienko > Subject: [dpdk-dev] [PATCH v4] ethdev: extend flow metadata >=20 > Currently, metadata can be set on egress path via mbuf tx_metadata field > with PKT_TX_METADATA flag and RTE_FLOW_ITEM_TYPE_META matches > metadata. >=20 > This patch extends the metadata feature usability. >=20 > 1) RTE_FLOW_ACTION_TYPE_SET_META >=20 > When supporting multiple tables, Tx metadata can also be set by a rule an= d > matched by another rule. This new action allows metadata to be set as a > result of flow match. >=20 > 2) Metadata on ingress >=20 > There's also need to support metadata on ingress. Metadata can be set by > SET_META action and matched by META item like Tx. The final value set by > the action will be delivered to application via metadata dynamic field of > mbuf which can be accessed by RTE_FLOW_DYNF_METADATA(). > PKT_RX_DYNF_METADATA flag will be set along with the data. >=20 > The mbuf dynamic field must be registered by calling > rte_flow_dynf_metadata_register() prior to use SET_META action. >=20 > The availability of dynamic mbuf metadata field can be checked > with rte_flow_dynf_metadata_avail() routine. >=20 > For loopback/hairpin packet, metadata set on Rx/Tx may or may not be > propagated to the other path depending on hardware capability. >=20 > Signed-off-by: Yongseok Koh > Signed-off-by: Viacheslav Ovsiienko >=20 > --- > v4: documentation comments addressed > deprecation notice for Tx metadata offload flag > rebased >=20 > v3: > https://eur03.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fpatche= s.dp > dk.org%2Fpatch%2F61902%2F&data=3D02%7C01%7Corika%40mellanox.com > %7Ce5a38cd79f30468e76d408d75b0d2f4c%7Ca652971c7d2e4d9ba6a4d149256 > f461b%7C0%7C0%7C637077984504455741&sdata=3DC1yyYY8M8LpoOg1bTz > wM8nIx19RcDzP96GVNA%2FABRb8%3D&reserved=3D0 > rebased, neat updates >=20 > v2: > https://eur03.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fpatche= s.dp > dk.org%2Fpatch%2F60909%2F&data=3D02%7C01%7Corika%40mellanox.com > %7Ce5a38cd79f30468e76d408d75b0d2f4c%7Ca652971c7d2e4d9ba6a4d149256 > f461b%7C0%7C0%7C637077984504455741&sdata=3DH1zpBrDfxQaTAQwETE > St9uiY3rgVHQEMw%2FeEveZSdx4%3D&reserved=3D0 > v1: > https://eur03.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fpatche= s.dp > dk.org%2Fpatch%2F56104%2F&data=3D02%7C01%7Corika%40mellanox.com > %7Ce5a38cd79f30468e76d408d75b0d2f4c%7Ca652971c7d2e4d9ba6a4d149256 > f461b%7C0%7C0%7C637077984504455741&sdata=3DolUN2iPv38TqFHIX8a0 > b3Uz505Cqz34BOlckZHsl8rw%3D&reserved=3D0 > rfc: > https://eur03.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fpatche= s.dp > dk.org%2Fpatch%2F54271%2F&data=3D02%7C01%7Corika%40mellanox.com > %7Ce5a38cd79f30468e76d408d75b0d2f4c%7Ca652971c7d2e4d9ba6a4d149256 > f461b%7C0%7C0%7C637077984504455741&sdata=3D%2BMP4tWWQHO6Vd > NBGJNM1om%2BwoM5ARrbXx0DP44et5mA%3D&reserved=3D0 >=20 > app/test-pmd/cmdline_flow.c | 57 +++++++++++++++++- > app/test-pmd/util.c | 5 ++ > doc/guides/prog_guide/rte_flow.rst | 72 ++++++++++++++++++----- > doc/guides/rel_notes/deprecation.rst | 4 ++ > doc/guides/rel_notes/release_19_11.rst | 15 +++++ > lib/librte_ethdev/rte_ethdev.h | 1 - > lib/librte_ethdev/rte_ethdev_version.map | 3 + > lib/librte_ethdev/rte_flow.c | 41 +++++++++++++ > lib/librte_ethdev/rte_flow.h | 99 > +++++++++++++++++++++++++++++++- Acked-by: Ori Kam Thanks, Ori