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 99E68A00B8; Sun, 27 Oct 2019 20:11:38 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 65C5A1BF10; Sun, 27 Oct 2019 20:11:38 +0100 (CET) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150041.outbound.protection.outlook.com [40.107.15.41]) by dpdk.org (Postfix) with ESMTP id A840A1BF0C for ; Sun, 27 Oct 2019 20:11:37 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hK9jxprgAkaEhKNznLtzhOjzBaIvVAZRQ4r+yhY0WxBACsK101NAMeEBQVeCC/TZ6qweO2xKLE+Us7Nh3R2S5fxZeIB8rBUKfU2JCdptIQ+RL7KUmME2gDoC/SPMT93+juhCe637RXPxnbHznCdJP+5p1QkR1j/YTgEciMzw/OrPqnDzcnG72+hi0mKsdU7c2/G2hyKYGFHv/so189Q+/KQqrPBO+PcifiRehI72fgc57XtfqLrswFMCPPUe9jEisDbsq4+lQR4moc+Pq3MpMJbzinxtiQraF6u7tAxd6dhKg1b+kuUnBRzgnMvsjLGdEV0X3ELJ2GdWQnOl70g6Nw== 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=LvvlSQiOBN2rOKLN9xBKRZle8StEeZiEzeWO3E0OnuQ=; b=XitTo3RdHluuv83ciNI7y0GFRPFj7DM85Q1vDafnQaQ4fT0Er15BL09BFu4qdNjURCikF7NVGqcleZGyWAFnC2V8TqaCRj9b2yrgOfm5zl607zhOaXW7tOALD/m8ETvMJpNzvfGl3wlX49m3j7pwTdSc/bo2YPzfvq8qPWgoKxVr0M86YZx+y8nJ7PVbHEYhiU7QTQ1JUJ+Q8Q3FB+ZdncEVOokhPU8eX+6TD3u+dIr9fDWTm7Bi5zXQxg5f7DsDT9S5AnSXBta2sRYTLaV3sQB3caRtPRO2xXaTcIgoN7nVXKcfbN00FudSyjpuskvKOvk1DVOB9xHV6cmKyBX9BA== 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=LvvlSQiOBN2rOKLN9xBKRZle8StEeZiEzeWO3E0OnuQ=; b=mFRlhRey/0jWaoOUqayJMd1atv6HhRFiw62PG3TQUPdd9vKV1eXdkGH/PeNPEWerjRzrWG33tWMQn5KYfL9qrGIp2rzADOk7ggU0Qqp4pgBQ6qn9AzvTjfB4wjZA86eEtvnBWV8Gzs6uNggXfUXrbYLmmkX+hRulzAsffyVgMfA= 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:11:37 +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:11:36 +0000 From: Ori Kam To: Slava Ovsiienko , "dev@dpdk.org" CC: Thomas Monjalon , Matan Azrad , Yongseok Koh Thread-Topic: [PATCH v4] ethdev: add flow tag Thread-Index: AQHVjPZM4lWtkQccFkCfKYxC16lRgadu2p8g Date: Sun, 27 Oct 2019 19:11:36 +0000 Message-ID: References: <1571922738-5069-1-git-send-email-viacheslavo@mellanox.com> <1572201748-16773-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1572201748-16773-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: fe85d8e8-e27e-4ff4-61cd-08d75b117d37 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:8882; 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)(53546011)(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)(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: MuruTF5aqCIXvUYVE4e81VJokhAVP4PJLl74D5lvqoB0B0o0uDLLaBhqw0hxdao3dsFl0ydTBGF1XRd7ZwgITICj5QaoS9YdpzAhQjBEBcaD6326RyC0HjipFkfb8m5Agf2u+xa26vVQ/usLFSDl1HMVcsWmVhQPwh5RDziMAWfuzOP5UMWwubsNkDky6pnlseSBrldc3UtUEYHetQE9Uc6upjGuZZG1O73x4+ju824MUgI0fqDudPG1/XXSAHilX3fCAJhR9H4SLS7OWyd+ogRcdP6KlUV1wbU2Gc5bZwxWTTUSh0+YeeeO7Sv3vqwFkW6MghihcOaN9p5+zHFQAAtBtbRYhSNPk74YH4XKDwyjxTk+JvlnQ6rbcLg2IMYEytsppa5HWMMuJAX4G83e42n0Aap4fqqaeB5cyT2rB99u1hjqJg3SzuCZuyfEvmkslmPXogEetx/rLMrMLja0Uah+EQ23tY8iGACtOm8AHNc= 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: fe85d8e8-e27e-4ff4-61cd-08d75b117d37 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Oct 2019 19:11:36.7928 (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: WUSp9kbM+bbq1WQy6y0c1sxqfwyNKjQhzOAXTjgG3UtA+ry67Iwq7JIjn5OfOzgyp8ZxHPsY7JL+Gdl3KxMk2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3428 Subject: Re: [dpdk-dev] [PATCH v4] ethdev: add flow tag 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: Viacheslav Ovsiienko > Sent: Sunday, October 27, 2019 8:42 PM > To: dev@dpdk.org > Cc: Thomas Monjalon ; Matan Azrad > ; Ori Kam ; Yongseok Koh > > Subject: [PATCH v4] ethdev: add flow tag >=20 > A tag is a transient data which can be used during flow match. This can b= e > used to store match result from a previous table so that the same pattern > need not be matched again on the next table. Even if outer header is > decapsulated on the previous match, the match result can be kept. >=20 > Some device expose internal registers of its flow processing pipeline and > those registers are quite useful for stateful connection tracking as it > keeps status of flow matching. Multiple tags are supported by specifying > index. >=20 > Example testpmd commands are: >=20 > flow create 0 ingress pattern ... / end > actions set_tag index 2 value 0xaa00bb mask 0xffff00ff / > set_tag index 3 value 0x123456 mask 0xffffff / > vxlan_decap / jump group 1 / end >=20 > flow create 0 ingress pattern ... / end > actions set_tag index 2 value 0xcc00 mask 0xff00 / > set_tag index 3 value 0x123456 mask 0xffffff / > vxlan_decap / jump group 1 / end >=20 > flow create 0 ingress group 1 > pattern tag index is 2 value spec 0xaa00bb value mask 0xffff00ff / > eth ... / end > actions ... jump group 2 / end >=20 > flow create 0 ingress group 1 > pattern tag index is 2 value spec 0xcc00 value mask 0xff00 / > tag index is 3 value spec 0x123456 value mask 0xffffff / > eth ... / end > actions ... / end >=20 > flow create 0 ingress group 2 > pattern tag index is 3 value spec 0x123456 value mask 0xffffff / > eth ... / end > actions ... / end >=20 > Signed-off-by: Yongseok Koh > Signed-off-by: Viacheslav Ovsiienko >=20 > --- > v4: rebased, doc comments are addressed > 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 > %7Cc16ca32f167b4104801708d75b0d6d82%7Ca652971c7d2e4d9ba6a4d14925 > 6f461b%7C0%7C0%7C637077985544569848&sdata=3Duig9z%2BKlajityhrU2P > ejBEJR%2FsgBHvytHC2HcZBuI7Q%3D&reserved=3D0 > 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 > %7Cc16ca32f167b4104801708d75b0d6d82%7Ca652971c7d2e4d9ba6a4d14925 > 6f461b%7C0%7C0%7C637077985544579804&sdata=3D9pfgncgaRg1mVkJ00o > wm63lsiNw14hoo4pySvnjFCVE%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 > %7Cc16ca32f167b4104801708d75b0d6d82%7Ca652971c7d2e4d9ba6a4d14925 > 6f461b%7C0%7C0%7C637077985544579804&sdata=3D3r9b2yaNZfNiLjYStD > MDbw3PpQFbTYuPdJO9%2F8c0VbM%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 > %7Cc16ca32f167b4104801708d75b0d6d82%7Ca652971c7d2e4d9ba6a4d14925 > 6f461b%7C0%7C0%7C637077985544579804&sdata=3D3uM2kVUbEwohNwFr > %2FR0mpBKEIFDfqYAChz0GakK6Pkw%3D&reserved=3D0 Acked-by: Ori Kam Thanks, Ori