From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80052.outbound.protection.outlook.com [40.107.8.52]) by dpdk.org (Postfix) with ESMTP id C5BC61B13C for ; Thu, 4 Apr 2019 13:01:21 +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=6ow4HXiley2WynYtH+CIigcrv8Xp3wkCtiT9Nh0hCMA=; b=bMeDi4vfkfAavRkO/NiMiiyYqhk7DgeAFwXjsGJ/NGav53AjXQB2Kb2ar8UBnF0sJ+AJhJ8ptu5RJ/Xd8jxD7duZk3EMRWqaMqMzHCMDF76kS3tOWJX9qMHr6ftUMyqylvPiM6UgsCHHr8q0LuAPn6q5arCzqOosKVQYkYZ1kV0= Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com (52.133.45.150) by AM0PR0502MB3714.eurprd05.prod.outlook.com (52.133.51.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.20; Thu, 4 Apr 2019 11:01:20 +0000 Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::4192:b468:41e1:c323]) by AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::4192:b468:41e1:c323%4]) with mapi id 15.20.1771.011; Thu, 4 Apr 2019 11:01:20 +0000 From: Shahaf Shuler To: Ori Kam , Matan Azrad , Yongseok Koh CC: "dev@dpdk.org" , Slava Ovsiienko Thread-Topic: [PATCH v4 0/3] net/mlx5: Add Direct Rule support Thread-Index: AQHU6sxXhU3cpxWpmE6brvh5t2qjI6Yr1cAA Date: Thu, 4 Apr 2019 11:01:20 +0000 Message-ID: References: <1553790741-69362-1-git-send-email-orika@mellanox.com> <1554371628-170844-1-git-send-email-orika@mellanox.com> In-Reply-To: <1554371628-170844-1-git-send-email-orika@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=shahafs@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c1dca096-1666-4f95-9d1b-08d6b8ecde9f 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:AM0PR0502MB3714; x-ms-traffictypediagnostic: AM0PR0502MB3714: x-microsoft-antispam-prvs: x-forefront-prvs: 0997523C40 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(136003)(346002)(396003)(376002)(189003)(199004)(110136005)(107886003)(4743002)(446003)(3846002)(97736004)(68736007)(66066001)(86362001)(6506007)(55016002)(9686003)(25786009)(54906003)(6436002)(11346002)(2906002)(186003)(76176011)(476003)(486006)(14454004)(33656002)(52536014)(6116002)(71190400001)(71200400001)(229853002)(5660300002)(74316002)(6636002)(102836004)(8936002)(478600001)(81166006)(4326008)(106356001)(26005)(7736002)(7696005)(6246003)(105586002)(99286004)(8676002)(81156014)(305945005)(316002)(53936002)(256004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3714; H:AM0PR0502MB3795.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: 9eLcJa3O1UVnihxDOg6g0xLbnb/8VdV562HHLJpcBNivJxjAQckLM2fxFTkK29MhfXaxObnqcPcXG6M0AHdG4RBR6ntmMLbe1p6fqdKLX1NQNrVe2HHgfZp07phxyTLMpBfBRYSsrzZQLG4c3NZ5gIdw869N306BDBS5L2df5P7jRRhLKiQeg2RX8nKwzFtAEYGx1HmkEok3lnkngjRCbaSptvTHk473a1L1flLYp0fMyRdFjOXp9BWgW2JZvhL5Q5TYL5W77uRcVL7WC3G+ocsbJfd2BGtGJafSI64IWcJRQ2QrZB9Lg4qbGKVL+/24ex4k65punAYA/IGoKtG305XmZRYfbfG3bMqmkHPUk19XFpQZz8x9mUUjhFNpTUlzTd7FywFaf+wk1Exqh5KBC/AXUg2XcWzVO2rigmKXBpc= 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: c1dca096-1666-4f95-9d1b-08d6b8ecde9f X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Apr 2019 11:01:20.5108 (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: AM0PR0502MB3714 Subject: Re: [dpdk-dev] [PATCH v4 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, 04 Apr 2019 11:01:22 -0000 Thursday, April 4, 2019 12:54 PM, Ori Kam: > Subject: [PATCH v4 0/3] net/mlx5: Add Direct Rule support >=20 > This patch set adds support for Direct Rules API for MLX5 driver. >=20 > As more and more applications like OVS are inserting and removing large > number of flows, the flow insertion rate become more critical. >=20 > In current MLX5 PMD rules are inserted to the device using the FW, this l= imits > the max insertion rate. The solution is using a new set of API that are p= art 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 Series applied to next-net-mlx, thanks. > v4: > * Fix small compilation issue. >=20 > v3: > * Address comments from ML. > * rebase. >=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 >=20 > 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 | 507 > ++++++++++++++++++++++++++++++++++------ > drivers/net/mlx5/mlx5_glue.c | 300 ++++++++++++++++++++---- > drivers/net/mlx5/mlx5_glue.h | 50 ++-- > drivers/net/mlx5/mlx5_prm.h | 24 +- > 10 files changed, 836 insertions(+), 132 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 3F960A0679 for ; Thu, 4 Apr 2019 13:01:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 91EA21B140; Thu, 4 Apr 2019 13:01:23 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80052.outbound.protection.outlook.com [40.107.8.52]) by dpdk.org (Postfix) with ESMTP id C5BC61B13C for ; Thu, 4 Apr 2019 13:01:21 +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=6ow4HXiley2WynYtH+CIigcrv8Xp3wkCtiT9Nh0hCMA=; b=bMeDi4vfkfAavRkO/NiMiiyYqhk7DgeAFwXjsGJ/NGav53AjXQB2Kb2ar8UBnF0sJ+AJhJ8ptu5RJ/Xd8jxD7duZk3EMRWqaMqMzHCMDF76kS3tOWJX9qMHr6ftUMyqylvPiM6UgsCHHr8q0LuAPn6q5arCzqOosKVQYkYZ1kV0= Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com (52.133.45.150) by AM0PR0502MB3714.eurprd05.prod.outlook.com (52.133.51.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.20; Thu, 4 Apr 2019 11:01:20 +0000 Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::4192:b468:41e1:c323]) by AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::4192:b468:41e1:c323%4]) with mapi id 15.20.1771.011; Thu, 4 Apr 2019 11:01:20 +0000 From: Shahaf Shuler To: Ori Kam , Matan Azrad , Yongseok Koh CC: "dev@dpdk.org" , Slava Ovsiienko Thread-Topic: [PATCH v4 0/3] net/mlx5: Add Direct Rule support Thread-Index: AQHU6sxXhU3cpxWpmE6brvh5t2qjI6Yr1cAA Date: Thu, 4 Apr 2019 11:01:20 +0000 Message-ID: References: <1553790741-69362-1-git-send-email-orika@mellanox.com> <1554371628-170844-1-git-send-email-orika@mellanox.com> In-Reply-To: <1554371628-170844-1-git-send-email-orika@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=shahafs@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c1dca096-1666-4f95-9d1b-08d6b8ecde9f 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:AM0PR0502MB3714; x-ms-traffictypediagnostic: AM0PR0502MB3714: x-microsoft-antispam-prvs: x-forefront-prvs: 0997523C40 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(136003)(346002)(396003)(376002)(189003)(199004)(110136005)(107886003)(4743002)(446003)(3846002)(97736004)(68736007)(66066001)(86362001)(6506007)(55016002)(9686003)(25786009)(54906003)(6436002)(11346002)(2906002)(186003)(76176011)(476003)(486006)(14454004)(33656002)(52536014)(6116002)(71190400001)(71200400001)(229853002)(5660300002)(74316002)(6636002)(102836004)(8936002)(478600001)(81166006)(4326008)(106356001)(26005)(7736002)(7696005)(6246003)(105586002)(99286004)(8676002)(81156014)(305945005)(316002)(53936002)(256004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3714; H:AM0PR0502MB3795.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: 9eLcJa3O1UVnihxDOg6g0xLbnb/8VdV562HHLJpcBNivJxjAQckLM2fxFTkK29MhfXaxObnqcPcXG6M0AHdG4RBR6ntmMLbe1p6fqdKLX1NQNrVe2HHgfZp07phxyTLMpBfBRYSsrzZQLG4c3NZ5gIdw869N306BDBS5L2df5P7jRRhLKiQeg2RX8nKwzFtAEYGx1HmkEok3lnkngjRCbaSptvTHk473a1L1flLYp0fMyRdFjOXp9BWgW2JZvhL5Q5TYL5W77uRcVL7WC3G+ocsbJfd2BGtGJafSI64IWcJRQ2QrZB9Lg4qbGKVL+/24ex4k65punAYA/IGoKtG305XmZRYfbfG3bMqmkHPUk19XFpQZz8x9mUUjhFNpTUlzTd7FywFaf+wk1Exqh5KBC/AXUg2XcWzVO2rigmKXBpc= 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: c1dca096-1666-4f95-9d1b-08d6b8ecde9f X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Apr 2019 11:01:20.5108 (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: AM0PR0502MB3714 Subject: Re: [dpdk-dev] [PATCH v4 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: <20190404110120.yA6VmbcDzCvjiqJfLDYaiRC5aDclbGbD6yLZNy7qsNI@z> Thursday, April 4, 2019 12:54 PM, Ori Kam: > Subject: [PATCH v4 0/3] net/mlx5: Add Direct Rule support >=20 > This patch set adds support for Direct Rules API for MLX5 driver. >=20 > As more and more applications like OVS are inserting and removing large > number of flows, the flow insertion rate become more critical. >=20 > In current MLX5 PMD rules are inserted to the device using the FW, this l= imits > the max insertion rate. The solution is using a new set of API that are p= art 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 Series applied to next-net-mlx, thanks. > v4: > * Fix small compilation issue. >=20 > v3: > * Address comments from ML. > * rebase. >=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 >=20 > 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 | 507 > ++++++++++++++++++++++++++++++++++------ > drivers/net/mlx5/mlx5_glue.c | 300 ++++++++++++++++++++---- > drivers/net/mlx5/mlx5_glue.h | 50 ++-- > drivers/net/mlx5/mlx5_prm.h | 24 +- > 10 files changed, 836 insertions(+), 132 deletions(-) >=20 > -- > 1.8.3.1