From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70083.outbound.protection.outlook.com [40.107.7.83]) by dpdk.org (Postfix) with ESMTP id ED1EC1B0F7 for ; Thu, 4 Apr 2019 11:54:06 +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=kLIxOdhQnUoflbDyaa5CuS0MuJ/IEXlKe6zW0t6Lx7w=; b=SQ5zZ+DDS7AhZgKaVEtHFzkvIRF0mIkxcVGmQzE1fAEQHul50pbgYqWXz+1/uPe1PKqYWu5IGnLf1YM1Pi2gyJxaQIAHTznl3Z0mkHYoWr6QaygdSFx6PnWGBRqa25474vRepNSPgxzG0Fv+JvaAiRmttRZcdiJ4CP+LWh3pOi0= Received: from AM4PR05MB3425.eurprd05.prod.outlook.com (10.171.190.15) by AM4PR05MB3139.eurprd05.prod.outlook.com (10.171.186.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.22; Thu, 4 Apr 2019 09:54:05 +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.1771.014; Thu, 4 Apr 2019 09:54:05 +0000 From: Ori Kam To: Matan Azrad , Yongseok Koh , Shahaf Shuler CC: "dev@dpdk.org" , Ori Kam , Slava Ovsiienko Thread-Topic: [PATCH v4 0/3] net/mlx5: Add Direct Rule support Thread-Index: AQHU6sxWQlwbNkuqIk2VYxYAArw9Wg== Date: Thu, 4 Apr 2019 09:54:05 +0000 Message-ID: <1554371628-170844-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: LO2P265CA0363.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a3::15) 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: 3bd5b3ee-45e5-4237-626c-08d6b8e37919 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:AM4PR05MB3139; x-ms-traffictypediagnostic: AM4PR05MB3139: x-microsoft-antispam-prvs: x-forefront-prvs: 0997523C40 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(376002)(39860400002)(396003)(366004)(346002)(199004)(189003)(76176011)(53936002)(186003)(6636002)(2616005)(446003)(25786009)(26005)(52116002)(36756003)(6486002)(6512007)(476003)(5660300002)(256004)(107886003)(2906002)(3846002)(4743002)(6116002)(97736004)(68736007)(486006)(4326008)(478600001)(6436002)(110136005)(105586002)(99286004)(86362001)(305945005)(66066001)(11346002)(316002)(102836004)(8676002)(81166006)(8936002)(14454004)(106356001)(6506007)(81156014)(71200400001)(386003)(7736002)(50226002)(71190400001)(54906003)(4720700003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3139; 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: aI/+EjKZs9m8pkX/hRwr/yJX+lzu4uL75e2uExRB6pE8fIsVnYKQDRa1GyQTI3tGHAjexbjz/42e9xydkOVSDHkpEnCYVWyN801nPDPgbjLe1Kbo2Xcdux80AnfQOjZrnWRq9PXImq9RVLn2MxYECHyMKvg33Cbm+R8lCHGKGKyxUHUwR6ndCuKLgTiBp5cTmr41pakevicKjx5sQl7mSKn7wOymO7ZFQaSuDP8bHT54/BpfAxmOPualAWhMIZgb8gF7NnEYSNaXV3dI2p9MxvP6Z/ZIPxBmfD9xLQTMqPzLHFvGs9JaaFy1toPUlQ1AH5rpkRIkUHuQKpX1lwKnuwXssCqBv9tyXQKyz1K8hfoI2shNRgiqsqBSxw82IOUybS4QQqTH+mwtJvNAf3erS5gjttHzqLIm7EZAMjmqwBY= 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: 3bd5b3ee-45e5-4237-626c-08d6b8e37919 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Apr 2019 09:54:05.3140 (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: AM4PR05MB3139 Subject: [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 09:54:07 -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 v4: * Fix small compilation issue. v3: * Address comments from ML. * rebase. 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 | 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 A13FFA0679 for ; Thu, 4 Apr 2019 11:54:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 753141B0FB; Thu, 4 Apr 2019 11:54:08 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70083.outbound.protection.outlook.com [40.107.7.83]) by dpdk.org (Postfix) with ESMTP id ED1EC1B0F7 for ; Thu, 4 Apr 2019 11:54:06 +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=kLIxOdhQnUoflbDyaa5CuS0MuJ/IEXlKe6zW0t6Lx7w=; b=SQ5zZ+DDS7AhZgKaVEtHFzkvIRF0mIkxcVGmQzE1fAEQHul50pbgYqWXz+1/uPe1PKqYWu5IGnLf1YM1Pi2gyJxaQIAHTznl3Z0mkHYoWr6QaygdSFx6PnWGBRqa25474vRepNSPgxzG0Fv+JvaAiRmttRZcdiJ4CP+LWh3pOi0= Received: from AM4PR05MB3425.eurprd05.prod.outlook.com (10.171.190.15) by AM4PR05MB3139.eurprd05.prod.outlook.com (10.171.186.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.22; Thu, 4 Apr 2019 09:54:05 +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.1771.014; Thu, 4 Apr 2019 09:54:05 +0000 From: Ori Kam To: Matan Azrad , Yongseok Koh , Shahaf Shuler CC: "dev@dpdk.org" , Ori Kam , Slava Ovsiienko Thread-Topic: [PATCH v4 0/3] net/mlx5: Add Direct Rule support Thread-Index: AQHU6sxWQlwbNkuqIk2VYxYAArw9Wg== Date: Thu, 4 Apr 2019 09:54:05 +0000 Message-ID: <1554371628-170844-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: LO2P265CA0363.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a3::15) 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: 3bd5b3ee-45e5-4237-626c-08d6b8e37919 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:AM4PR05MB3139; x-ms-traffictypediagnostic: AM4PR05MB3139: x-microsoft-antispam-prvs: x-forefront-prvs: 0997523C40 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(376002)(39860400002)(396003)(366004)(346002)(199004)(189003)(76176011)(53936002)(186003)(6636002)(2616005)(446003)(25786009)(26005)(52116002)(36756003)(6486002)(6512007)(476003)(5660300002)(256004)(107886003)(2906002)(3846002)(4743002)(6116002)(97736004)(68736007)(486006)(4326008)(478600001)(6436002)(110136005)(105586002)(99286004)(86362001)(305945005)(66066001)(11346002)(316002)(102836004)(8676002)(81166006)(8936002)(14454004)(106356001)(6506007)(81156014)(71200400001)(386003)(7736002)(50226002)(71190400001)(54906003)(4720700003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3139; 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: aI/+EjKZs9m8pkX/hRwr/yJX+lzu4uL75e2uExRB6pE8fIsVnYKQDRa1GyQTI3tGHAjexbjz/42e9xydkOVSDHkpEnCYVWyN801nPDPgbjLe1Kbo2Xcdux80AnfQOjZrnWRq9PXImq9RVLn2MxYECHyMKvg33Cbm+R8lCHGKGKyxUHUwR6ndCuKLgTiBp5cTmr41pakevicKjx5sQl7mSKn7wOymO7ZFQaSuDP8bHT54/BpfAxmOPualAWhMIZgb8gF7NnEYSNaXV3dI2p9MxvP6Z/ZIPxBmfD9xLQTMqPzLHFvGs9JaaFy1toPUlQ1AH5rpkRIkUHuQKpX1lwKnuwXssCqBv9tyXQKyz1K8hfoI2shNRgiqsqBSxw82IOUybS4QQqTH+mwtJvNAf3erS5gjttHzqLIm7EZAMjmqwBY= 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: 3bd5b3ee-45e5-4237-626c-08d6b8e37919 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Apr 2019 09:54:05.3140 (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: AM4PR05MB3139 Subject: [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: <20190404095405.c5wRe0sTZbt_xZot9UYxxrSJoRu41DjA2LIcee_a5aA@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 v4: * Fix small compilation issue. v3: * Address comments from ML. * rebase. 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 | 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