From patchwork Wed Apr 3 13:21:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ori Kam X-Patchwork-Id: 52187 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BC0E21B3B9; Wed, 3 Apr 2019 15:21:57 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20053.outbound.protection.outlook.com [40.107.2.53]) by dpdk.org (Postfix) with ESMTP id D3A471B2AD for ; Wed, 3 Apr 2019 15:21:55 +0200 (CEST) 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=7iiX9GsL9S2iuVx6f1K07vHTjkrS6tOi5zxCZeaZMpo=; b=Jevab9la14AVPBvDHOu9rlYtMKwHtfWiVhUqlqnKYJcTtxp3MOE9ccsz4sQLRg+tFfomSjRz8Q8Scf9PbvWLhxMkTahgAZKGK8GfRnC08PPhi4qNuahQUvGEZdyPvMrfSJoq0Csh3wzRXpv/VfR9o8q6TI7RfzCcO29K/sCN9Ck= Received: from AM4PR05MB3425.eurprd05.prod.outlook.com (10.171.190.15) by AM4PR05MB3170.eurprd05.prod.outlook.com (10.171.191.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.20; Wed, 3 Apr 2019 13:21:54 +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; Wed, 3 Apr 2019 13:21:54 +0000 From: Ori Kam To: Matan Azrad , Yongseok Koh , Shahaf Shuler CC: "dev@dpdk.org" , Ori Kam , Slava Ovsiienko Thread-Topic: [PATCH v3 0/3] net/mlx5: Add Direct Rule support Thread-Index: AQHU6iA0WcxspTi+GEi0X8cfmt42Ew== Date: Wed, 3 Apr 2019 13:21:54 +0000 Message-ID: <1554297697-13525-1-git-send-email-orika@mellanox.com> References: <1553790741-69362-1-git-send-email-orika@mellanox.com> In-Reply-To: <1553790741-69362-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: LNXP123CA0024.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:d2::36) 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: 0f8081c9-0e0c-4b81-3d15-08d6b837570a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:AM4PR05MB3170; x-ms-traffictypediagnostic: AM4PR05MB3170: x-microsoft-antispam-prvs: x-forefront-prvs: 0996D1900D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(366004)(39860400002)(136003)(396003)(376002)(189003)(199004)(36756003)(54906003)(316002)(71200400001)(3846002)(71190400001)(478600001)(256004)(97736004)(53936002)(2616005)(110136005)(26005)(102836004)(2906002)(4326008)(476003)(186003)(6116002)(99286004)(446003)(52116002)(11346002)(6506007)(107886003)(86362001)(5660300002)(486006)(25786009)(81156014)(386003)(50226002)(81166006)(76176011)(8936002)(6512007)(6636002)(66066001)(305945005)(4720700003)(7736002)(106356001)(68736007)(14454004)(6436002)(105586002)(6486002)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3170; H:AM4PR05MB3425.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: cS80RhvUM38dJZ47XB0JUZO0V1Ed6Mk/fhvKPwVHnBaGQ78jUiEQGX9YhOtocE2WChK8CiPAMmZSifX0/AwGHH6Y1s7ZaEbGQol/g0+TMeW0ukUVueAyzepaeRgxqf3ybTY/UMrFosHWBGb68VuUy8ci+l1rMAmH1q+mAXrQd5exaCvV0eZLy0OLRGM3eVlnNC+j9XTIgrug8NM6n/npJFEKxnFeoOlRmCDyWfeDTuio3YEM9zlJ9LP0wtieXT7bxG70Ht+x53fxJmn2XyTHaRvS+h6bGog/DmIqof8s1Eo7gWALrJbnrIkUO4zWhM3mjeEic5gfc1aq3b/RttxriPx6cAUgEknJho6wUrd8jIE6Nfnn7VdSk4QYLVBiX50tCfWC9Oo/yeUngm22hfZrNyI1kvl4Atgxvsdnwb7a5wg= MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0f8081c9-0e0c-4b81-3d15-08d6b837570a X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Apr 2019 13:21:54.6827 (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: AM4PR05MB3170 Subject: [dpdk-dev] [PATCH v3 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" 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. v3: * Address comments from ML. * rebase. v2: * Small issues fixed. * Rebased. 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 | 7 +- drivers/net/mlx5/meson.build | 2 +- 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 | 506 ++++++++++++++++++++++++++++++++++------ drivers/net/mlx5/mlx5_glue.c | 300 ++++++++++++++++++++---- drivers/net/mlx5/mlx5_glue.h | 50 ++-- drivers/net/mlx5/mlx5_prm.h | 24 +- 10 files changed, 835 insertions(+), 132 deletions(-)