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 59019A04B5; Wed, 4 Dec 2019 15:11:07 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8F5BF1BE84; Wed, 4 Dec 2019 15:11:06 +0100 (CET) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50089.outbound.protection.outlook.com [40.107.5.89]) by dpdk.org (Postfix) with ESMTP id AD7711BE83 for ; Wed, 4 Dec 2019 15:11:04 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y+ehoGs1AZWI7bLEg471eFlV1w0tFJRJ3d1/MDch5r4OtXd41CkNa1JP1iXwDczcE7cSFchM53Zl8xNJa8vqpA/UvDIi++vubsF1aMmUSQybK/w7BHwBpJ6Zjj6ZMqI6NFckFwri6c/OvtTOFX8BX+QJ5RWiMMcSDT0cyOl4rExek9btwMwZpG1Mcqi3ge5ypURu97Dw6GD89Raf4POtv40WK0SDDxS7lziyiHqlYzDNHoze1NWa+1kbApVJDrjtasSDMg/9GuyrF1XyTq4x9eNpVcySOI0wQvkwM7wHXz3FuIwq48IZuq8+N53LIayzP2BqzLnnqQN4o+yg8LxqzA== 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=Cp6JYkZ9Q1hWs10PI5C+ySuahMIQ+oIZmKcI7Iy7ogg=; b=HqFegzxu1L+cjWBrTEXP1cjShPlB3JE9dligPFS4ONNlqELeUxc8bg4o5n+l03/R/o4gCYisxtAHbTRIcyQnid7nI77zGZNUG9wTikM97ugQ8u6/sBZ23Q3Z0t1rsxDhE6yjaEVZR2vQ9mtGO0kJ5qASiR8JMH2ETytKF+Ok5D/mhaF1FOITNExM4vjcDStqWFflLLpCTqn+vSRvc5qHQGK8i7oBH8o6P34GSLNe4FWfanuXPU3R63+p0WQbyrNJ8nTQAr2V5YOuQlO6AOQD89gS+8h2hA+kTzrZGzEVurxlwoi5K0mPxp+liY+D8GAjvpf38t7H89hHGo4HuPgHtw== 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=Cp6JYkZ9Q1hWs10PI5C+ySuahMIQ+oIZmKcI7Iy7ogg=; b=N9Gg51SBoOqzkuDw8INILsJgp8Gx/HbkCcWbu3H04hrZ2IYvN8e/MMQxCWzpaA4JOLtJvbhjpSFhnEvsydII8ub+kXq9VkD77hOGOOfIE0FhrnWLWQ25+J6qBDi+YFUrq0UfIE1yg9n5V9seiPhdDEyuhFAY8/S+zj6y6FeJ6gk= Received: from AM4PR05MB3460.eurprd05.prod.outlook.com (10.171.187.153) by AM4PR05MB3379.eurprd05.prod.outlook.com (10.171.187.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2516.13; Wed, 4 Dec 2019 14:11:03 +0000 Received: from AM4PR05MB3460.eurprd05.prod.outlook.com ([fe80::117b:8dc0:905e:d154]) by AM4PR05MB3460.eurprd05.prod.outlook.com ([fe80::117b:8dc0:905e:d154%4]) with mapi id 15.20.2495.014; Wed, 4 Dec 2019 14:11:03 +0000 From: Dekel Peled To: Matan Azrad , Slava Ovsiienko , Shahaf Shuler CC: Ori Kam , "dev@dpdk.org" Thread-Topic: [RFC] net/mlx5: add GTP support Thread-Index: AdWqqJ9XFmIQH0UQR5Cyx50oMXpM9g== Date: Wed, 4 Dec 2019 14:11:03 +0000 Message-ID: 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: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 0cee65c6-607d-4324-53a6-08d778c3cc62 x-ms-traffictypediagnostic: AM4PR05MB3379:|AM4PR05MB3379: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 0241D5F98C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(346002)(39860400002)(366004)(136003)(396003)(199004)(189003)(25786009)(478600001)(86362001)(4326008)(6636002)(14454004)(6306002)(6436002)(6506007)(102836004)(316002)(110136005)(54906003)(55016002)(26005)(33656002)(186003)(14444005)(54896002)(5660300002)(7736002)(2906002)(8676002)(66446008)(7696005)(4744005)(74316002)(99286004)(76116006)(52536014)(3846002)(71200400001)(71190400001)(8936002)(9686003)(66946007)(81166006)(66556008)(64756008)(66476007)(81156014)(790700001)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3379; H:AM4PR05MB3460.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: BBzX1sm0pLkV3Ce48GUr04VUTovIAxttwzoVwcYQXueIqDcjrbz8Hd0pk4QSDbUJtwDbWKrYP8+Xk7LfqtCpj2fkTwGHhc8IyEX6HC8C/NXsx6MTcuU7oYwl92M6eKnwr0ZKYL+4iJUHthTWNart1/A8PttX7pd/y0kEF8V+09jF8PtXO9heOlZkbfdtg2QzeLlczrbxM6vNSHkwNP8F+wBXmHokXpJaKwWWrGt4jF1nDHZoNNVNeRnYTgZkSzwqHJMgJHIAqwdnS872tFaQ1+w4DCmYrX60UeBpzktq8njekSTZn2LrIUrrvon4BunwHL7z1zxTGYWaD3qsHBs9AcyNoze50nfOgbOYxrEEjkN4SKq0n+q4MMr95aPrwP5JBn8jBhKKMzUrwOlUSUThO1NNvtMR+Mz34GWBJliC8rXrIyGAphEwHThbKeFofLTQ MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0cee65c6-607d-4324-53a6-08d778c3cc62 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Dec 2019 14:11:03.8176 (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: DEdpJ/+gJKtTF5+tUvVldAaO+WQiJ2NAqJUWY2mMRxGy3d13uyfsRGtQx26dwGfltMIQ67LEL9bRgIfoJ6wYFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3379 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: add GTP support 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" This RFC describes the update of MLX5 PMD, in order to support GTP tunnel t= ype. Update will include the support of matching on GTP item, fields msg_type an= d teid. GTP item validation function flow_dv_validate_item_gtp() will be implemente= d. This function will: Check that there is no tunnel layer in previous detected items. Multiple tu= nnel layers are not supported. Check that GTP item is preceded by L3 item and L4 UDP item. GTP is supporte= d over UDP only. Check that there is no request to match on non-supported fields v_pt_rsv_fl= ags and msg_len. Matching will be supported only for fields msg_type and teid. GTP item translation function flow_dv_translate_item_gtp() will be implemen= ted. This function will set GTP item fields in matcher. Tunnel layer bit MLX5_FLOW_LAYER_GTP will be added, and updated in MLX5_FLOW_LAYER_TUNNEL mask, tunnels_info[] array, and MLX5_FLOW_TUNNEL siz= e.