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 D03ADA057B; Wed, 18 Mar 2020 17:50:59 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 337012BF9; Wed, 18 Mar 2020 17:50:59 +0100 (CET) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2080.outbound.protection.outlook.com [40.107.21.80]) by dpdk.org (Postfix) with ESMTP id 07CAAFEB for ; Wed, 18 Mar 2020 17:50:57 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QYwdGHONHpkssUYHP/pVWNAyfQnZz4qMsd91B93Ln65UP0MiHTJuVQaJe6xJItQE5w0HHrsQ5WlOs62F/oET0JZCYkIuLRIPwqgX7rtMMPwmZG4cV2itVgrkp/EFNn3Ct7+pGg6McoMkobR0cPkGrCoZz5ZlNd5wP434DpRH016UqBnQzZyWCgJyVpZjaTTOrPJBg6+ZUp3AN/+I+RR1KlG7rE3o1ukd+wmJRSsRXkNEr1qzR29qufUu/0u5MzXXhKJkjwDauuk8CRxuFAS3QJBn6TJM/bkFF2fn/Z+/n2SKpfAtuO/+zCWqDwcuWdLX0FxMBezBFvCzG/rFAY9n5w== 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=I+ok2452ckoQWwbAAFM4rwgvbUQN5jyIVmgg9oULPuY=; b=Owa86uojkx7Q50jEJlfRpjpOY0uKnIfgy2tUrW2rVXHwDXD7WR27nqRcIb9UqoY42NvTwOrLypUFEmQi9q9+/jSxWPQ9b0JHzAJ9FjcX4YSoc4wHJSS4jFU47rESlxXX/YxGvX9t6b9BV++h1XwdCIbYjkoqbv5u92thjXT9y9Uk1IGidrNHqKgYMc79vyGH0+1bN36zaDxP4cf31k8hdlt0O7+QnA9Zb52akDpxlxl2CRmlEMweRrqSdx7ZCJr9+vZ1Jgz8KTUi5nkzNue/5guPxN8P70dmf9jMv7/hIVw+kbLmk/CHwbrQcoj4XVNDe2FpG6fAu4L5Dq2/WcpgLA== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I+ok2452ckoQWwbAAFM4rwgvbUQN5jyIVmgg9oULPuY=; b=hmGVISHzrYSDHyOAMeYSoUbzAlOt19do0BAWIKxNAUw1Ybo+2C7p4AQitMVMB7VBCwvuEZGwJQ1gm0PEBVEObFSAn2EZwHuHDablK5RPADR93EPLrzoHTbt+6bqd5jhhI9QsJOziu3fNPtNMRONQXrmvRd7EKjW0xvRjUHKT8S8= Received: from AM4PR05MB3460.eurprd05.prod.outlook.com (10.171.187.153) by AM4PR05MB3457.eurprd05.prod.outlook.com (10.170.126.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.16; Wed, 18 Mar 2020 16:50:55 +0000 Received: from AM4PR05MB3460.eurprd05.prod.outlook.com ([fe80::cda6:ae00:9ce6:3b13]) by AM4PR05MB3460.eurprd05.prod.outlook.com ([fe80::cda6:ae00:9ce6:3b13%7]) with mapi id 15.20.2835.017; Wed, 18 Mar 2020 16:50:55 +0000 From: Dekel Peled To: Matan Azrad , Slava Ovsiienko CC: Ori Kam , Asaf Penso , Eli Britstein , "dev@dpdk.org" Thread-Topic: [RFC] net/mlx5: support match on IPv4 and IPv6 fragment fields Thread-Index: AdX8lPaVIXFx9raDQoCKAxqpCupvzQAnhkvQ Date: Wed, 18 Mar 2020 16:50:55 +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: spf=none (sender IP is ) smtp.mailfrom=dekelp@mellanox.com; x-originating-ip: [176.12.206.224] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 232dfa3a-27e8-4081-783d-08d7cb5c86a9 x-ms-traffictypediagnostic: AM4PR05MB3457:|AM4PR05MB3457: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 03468CBA43 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(199004)(8676002)(33656002)(71200400001)(81166006)(81156014)(86362001)(6636002)(6506007)(110136005)(54906003)(186003)(8936002)(26005)(7696005)(55016002)(9686003)(66946007)(66476007)(498600001)(66556008)(966005)(66446008)(76116006)(52536014)(2906002)(4326008)(64756008)(5660300002)(2940100002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3457; H:AM4PR05MB3460.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A: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: D02dYf6/pGskyPD2vqf5qHcey6VEVtkwDx50DONRjdGfEMwamIohF2AbYj3JFDpd0sRkmcE1g2KMIhHwDbdsOrLFVFutuzEFl2C+KJW7nXF6tk+QedIgchuJDP2wxaLgrj9HBZl9Age1r9H0p3ACLAJft5jdgNJW1uFQcRnLtk2IjV8RHigF3VhOLYb1Zf1uioI40sdkPtln+oXcSOFAazI0pFu5fMvHHAshypoYgRzrFhxgxsCkJrDwnqgUHTNTP70UHn4Y1fhFvmrbjjZqufZXbNEahEtr9Jnxf+xjUIn0JWQxcQThYF4KKWmbaJxSwRgft/VpToRDa3x8HZ7Hr3Xuyp2TZaw6p9ZT3JhBgCbOCuWNlYv5S1juSPvAaTNyyfS/dtJXKRlFWSdUGZHxW7sHKg84WQl7Ldqx7mt10doMYaVaj7RC8Xr13qHbdZ980gYxUsuXs6Aacbhmk+nJg6TtLmpDkAhgUKmiN/dRYkoZr6CW2mkjpiS1mujxZUn3j1M8nHY1z5je+ABtBKNC9A== x-ms-exchange-antispam-messagedata: dA2XudUltLjENEmJfpTmJxnQMEsm1NbX+gw4U+iCmXtIBhJ+29aSqU9wadBU7nXDMHP7mVIn/CN3l3eZ+rxUoEIuH7uxlgXFlQdoJ1uqR4EtVbmonta1A94OQMDcnXsbBet6aLW2EckOO9ud8CGOIQ== MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 232dfa3a-27e8-4081-783d-08d7cb5c86a9 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Mar 2020 16:50:55.1728 (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: mmkvRO4eO3ZWcdeCymAJXOfyoPclK+NiXxccCAoN6WCY0uDOueqt2MBtqeXSX4m91uyYr2wZLGBD1O8QoYN6gQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3457 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] [RFC] net/mlx5: support match on IPv4 and IPv6 fragment fields 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" In order to send a packet that is larger than the path MTU, the sending node splits the packe= t into fragments. IPv4 Flags and Fragment Offset header fields , and IPv6 fragment extension = header fields, contain the required Information to indicate that a packet is a fragment of a large, fragmented = packet. They also indicate the fragment packet location in the fragmented packet (f= irst, last or other), and the offset of this fragment in the fragmented packet. In IPv4 header, the relevant fields are: 1. Flags.MF (More Fragments): Set if More fragments follow.. 2. Fragment Offset (13 bits): Offset of fragment, in 8-bytes blocks, from the beginning of the original p= acket data. In IPv6 header of fragmented packet, a Fragment extension header is present= , identified by Next Header value of 44. This extension header includes: 1. M flag, with the same function as IPv4 MF flag. 2. Fragment Offset, same as IPv4 Fragment Offset. The following table shows the expected values of these fields. Packet type M/MF flag Fragment Offset Unfragmented packet 0 0 Fragmented packet, first fragment 1 0 Fragmented packet, following fragments 1 Larger than 0 Fragmented packet, last fragment 0 Larger than 0 This RFC introduces, in MLX5 PMD, the support of matching on the header fie= lds mentioned above. The matching on M/MF flag, and Fragment Offset=3D0, is plain and straight f= orward. The matching on Fragment Offset > 0 will be specified by range from item.sp= ec=3D1 to maximal value item.last=3D(2^13-1). Following rte_flow update [1], IPv6 item validation and translation will be= enhanced, to check the Next Header field, and look for the fragment extension header to process. Testpmd code will be updated to support the use of added items and fields. The command line option to match on IPv6 fragment extension item and it's f= ields will be added. [1] http://patches.dpdk.org/patch/66849/ Signed-off-by: Dekel Peled = >