From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150054.outbound.protection.outlook.com [40.107.15.54]) by dpdk.org (Postfix) with ESMTP id 722185F13 for ; Thu, 28 Mar 2019 17:32:51 +0100 (CET) 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=TyRFMyOJLGBEPwrI/FWSzEbtvCabCiO+lRGLLQkl8GY=; b=VfkpYtt2nmFcTMs19CSJF/87dD2YFeAtLYbFTJCCZDKvHk0WDrI6kJfVDfBNLum/LuoE+9hKSrqCi2GH3sjgkvJHoMce5CfSHcFe4soDI8Tv5rPdf1Zp734/fqnwLY7RwLYdRp822YrPlFxtci3IBro2W8aSGiDLDqkttXsrNMg= Received: from AM4PR05MB3425.eurprd05.prod.outlook.com (10.171.190.15) by AM4PR05MB3330.eurprd05.prod.outlook.com (10.171.191.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1730.18; Thu, 28 Mar 2019 16:32:49 +0000 Received: from AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::5df0:22de:97f0:3827]) by AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::5df0:22de:97f0:3827%4]) with mapi id 15.20.1750.014; Thu, 28 Mar 2019 16:32:49 +0000 From: Ori Kam To: Matan Azrad , Yongseok Koh , Shahaf Shuler CC: "dev@dpdk.org" , Ori Kam , Slava Ovsiienko Thread-Topic: [PATCH v2 0/3] net/mlx5: Add Direct Rule support Thread-Index: AQHU5YPhmUyZ+L1/aUiozD7LZMhiVA== Date: Thu, 28 Mar 2019 16:32:49 +0000 Message-ID: <1553790741-69362-1-git-send-email-orika@mellanox.com> References: <1553096315-91832-1-git-send-email-orika@mellanox.com> In-Reply-To: <1553096315-91832-1-git-send-email-orika@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: LO2P265CA0362.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a3::14) To AM4PR05MB3425.eurprd05.prod.outlook.com (2603:10a6:205:b::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=orika@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 1.8.3.1 x-originating-ip: [37.142.13.130] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6c218743-0b38-46b0-ad8a-08d6b39b03f8 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM4PR05MB3330; x-ms-traffictypediagnostic: AM4PR05MB3330: x-microsoft-antispam-prvs: x-forefront-prvs: 0990C54589 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(366004)(376002)(346002)(39860400002)(396003)(199004)(189003)(256004)(4326008)(25786009)(2616005)(2906002)(68736007)(26005)(71200400001)(476003)(446003)(6512007)(8936002)(71190400001)(14454004)(8676002)(102836004)(81156014)(3846002)(386003)(50226002)(11346002)(81166006)(36756003)(6116002)(6436002)(86362001)(6636002)(99286004)(105586002)(5660300002)(6486002)(54906003)(97736004)(316002)(107886003)(52116002)(106356001)(66066001)(486006)(53936002)(4743002)(478600001)(7736002)(6506007)(4720700003)(76176011)(305945005)(110136005)(186003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3330; 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-message-info: QGVYrvJ35W2F6EAiW0OLyvrXtSWjss/b860t4u4Jmf+cfXYOB0eLnA6uYDhpvW3pPucVClHIOzjBk2wOvaFUy4v4C0hhcWaXjUnKy6VouD7mZIrcg9P5EM/rK4Kq2LFvyqm/BHQM9gO8cc27W9UDkJCThQaNWPxITuivFWWBxRu46+OJ0Q6M382DvO5qDSUWPqEW2hYQn4BbDeX5KQ8L/Fao5JdHE4WlFa04FT91tS4nu0cNciT4l6XNlzf5DRM4TJELulcoOLcn9qkeR+bLUO6sDzpXq5VHa/1KULyDQlNb5RiGIFF94E7dxPk7SGBrjNBbrpzm489ykfneXnQOpE/Ro+KOcLf/WJD7IxC2TDn1zQj4ahft4G/hroeLlCz8ZX8Ouw2lhPytSh/4Fs3mdSWrQffBwmfG3aMMvobGACw= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6c218743-0b38-46b0-ad8a-08d6b39b03f8 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Mar 2019 16:32:49.2128 (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-Transport-CrossTenantHeadersStamped: AM4PR05MB3330 Subject: [dpdk-dev] [PATCH v2 0/3] net/mlx5: Add Direct Rule 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: , X-List-Received-Date: Thu, 28 Mar 2019 16:32:51 -0000 This patch set adds support for Direct Rules API for MLX5 driver. As more and more applications like OVS are inserting and removing large number of flows, the flow insertion rate become more critical. In current MLX5 PMD rules are inserted to the device using the FW, this limits the max insertion rate. The solution is using a new set of API that are part of RDMA-Core. which enables bypassing the FW and writing the flows directly to the device, which results in a much faster insertion rate.=20 v2: * Small issues fixed. * Rebased.=20 Ori Kam (3): net/mlx5: prepare Direct Verbs for Direct Rule net/mlx5: add Direct Rules API net/mlx5: add jump action support for NIC drivers/net/mlx5/Makefile | 5 + drivers/net/mlx5/mlx5.c | 16 ++ drivers/net/mlx5/mlx5.h | 23 ++ drivers/net/mlx5/mlx5_flow.c | 1 + drivers/net/mlx5/mlx5_flow.h | 38 ++- drivers/net/mlx5/mlx5_flow_dv.c | 509 ++++++++++++++++++++++++++++++++++--= ---- drivers/net/mlx5/mlx5_glue.c | 300 +++++++++++++++++++---- drivers/net/mlx5/mlx5_glue.h | 50 ++-- drivers/net/mlx5/mlx5_prm.h | 24 +- 9 files changed, 832 insertions(+), 134 deletions(-) --=20 1.8.3.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 6A0DCA0679 for ; Thu, 28 Mar 2019 17:32:54 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EB5971B3AA; Thu, 28 Mar 2019 17:32:52 +0100 (CET) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150054.outbound.protection.outlook.com [40.107.15.54]) by dpdk.org (Postfix) with ESMTP id 722185F13 for ; Thu, 28 Mar 2019 17:32:51 +0100 (CET) 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=TyRFMyOJLGBEPwrI/FWSzEbtvCabCiO+lRGLLQkl8GY=; b=VfkpYtt2nmFcTMs19CSJF/87dD2YFeAtLYbFTJCCZDKvHk0WDrI6kJfVDfBNLum/LuoE+9hKSrqCi2GH3sjgkvJHoMce5CfSHcFe4soDI8Tv5rPdf1Zp734/fqnwLY7RwLYdRp822YrPlFxtci3IBro2W8aSGiDLDqkttXsrNMg= Received: from AM4PR05MB3425.eurprd05.prod.outlook.com (10.171.190.15) by AM4PR05MB3330.eurprd05.prod.outlook.com (10.171.191.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1730.18; Thu, 28 Mar 2019 16:32:49 +0000 Received: from AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::5df0:22de:97f0:3827]) by AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::5df0:22de:97f0:3827%4]) with mapi id 15.20.1750.014; Thu, 28 Mar 2019 16:32:49 +0000 From: Ori Kam To: Matan Azrad , Yongseok Koh , Shahaf Shuler CC: "dev@dpdk.org" , Ori Kam , Slava Ovsiienko Thread-Topic: [PATCH v2 0/3] net/mlx5: Add Direct Rule support Thread-Index: AQHU5YPhmUyZ+L1/aUiozD7LZMhiVA== Date: Thu, 28 Mar 2019 16:32:49 +0000 Message-ID: <1553790741-69362-1-git-send-email-orika@mellanox.com> References: <1553096315-91832-1-git-send-email-orika@mellanox.com> In-Reply-To: <1553096315-91832-1-git-send-email-orika@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: LO2P265CA0362.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a3::14) To AM4PR05MB3425.eurprd05.prod.outlook.com (2603:10a6:205:b::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=orika@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 1.8.3.1 x-originating-ip: [37.142.13.130] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6c218743-0b38-46b0-ad8a-08d6b39b03f8 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM4PR05MB3330; x-ms-traffictypediagnostic: AM4PR05MB3330: x-microsoft-antispam-prvs: x-forefront-prvs: 0990C54589 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(366004)(376002)(346002)(39860400002)(396003)(199004)(189003)(256004)(4326008)(25786009)(2616005)(2906002)(68736007)(26005)(71200400001)(476003)(446003)(6512007)(8936002)(71190400001)(14454004)(8676002)(102836004)(81156014)(3846002)(386003)(50226002)(11346002)(81166006)(36756003)(6116002)(6436002)(86362001)(6636002)(99286004)(105586002)(5660300002)(6486002)(54906003)(97736004)(316002)(107886003)(52116002)(106356001)(66066001)(486006)(53936002)(4743002)(478600001)(7736002)(6506007)(4720700003)(76176011)(305945005)(110136005)(186003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3330; 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-message-info: QGVYrvJ35W2F6EAiW0OLyvrXtSWjss/b860t4u4Jmf+cfXYOB0eLnA6uYDhpvW3pPucVClHIOzjBk2wOvaFUy4v4C0hhcWaXjUnKy6VouD7mZIrcg9P5EM/rK4Kq2LFvyqm/BHQM9gO8cc27W9UDkJCThQaNWPxITuivFWWBxRu46+OJ0Q6M382DvO5qDSUWPqEW2hYQn4BbDeX5KQ8L/Fao5JdHE4WlFa04FT91tS4nu0cNciT4l6XNlzf5DRM4TJELulcoOLcn9qkeR+bLUO6sDzpXq5VHa/1KULyDQlNb5RiGIFF94E7dxPk7SGBrjNBbrpzm489ykfneXnQOpE/Ro+KOcLf/WJD7IxC2TDn1zQj4ahft4G/hroeLlCz8ZX8Ouw2lhPytSh/4Fs3mdSWrQffBwmfG3aMMvobGACw= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6c218743-0b38-46b0-ad8a-08d6b39b03f8 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Mar 2019 16:32:49.2128 (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-Transport-CrossTenantHeadersStamped: AM4PR05MB3330 Subject: [dpdk-dev] [PATCH v2 0/3] net/mlx5: Add Direct Rule 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" Message-ID: <20190328163249.haxgikekzhzE8kl1Ep9cP351PADkGUoqu_y16-MpRpA@z> This patch set adds support for Direct Rules API for MLX5 driver. As more and more applications like OVS are inserting and removing large number of flows, the flow insertion rate become more critical. In current MLX5 PMD rules are inserted to the device using the FW, this limits the max insertion rate. The solution is using a new set of API that are part of RDMA-Core. which enables bypassing the FW and writing the flows directly to the device, which results in a much faster insertion rate.=20 v2: * Small issues fixed. * Rebased.=20 Ori Kam (3): net/mlx5: prepare Direct Verbs for Direct Rule net/mlx5: add Direct Rules API net/mlx5: add jump action support for NIC drivers/net/mlx5/Makefile | 5 + drivers/net/mlx5/mlx5.c | 16 ++ drivers/net/mlx5/mlx5.h | 23 ++ drivers/net/mlx5/mlx5_flow.c | 1 + drivers/net/mlx5/mlx5_flow.h | 38 ++- drivers/net/mlx5/mlx5_flow_dv.c | 509 ++++++++++++++++++++++++++++++++++--= ---- drivers/net/mlx5/mlx5_glue.c | 300 +++++++++++++++++++---- drivers/net/mlx5/mlx5_glue.h | 50 ++-- drivers/net/mlx5/mlx5_prm.h | 24 +- 9 files changed, 832 insertions(+), 134 deletions(-) --=20 1.8.3.1