From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0060.outbound.protection.outlook.com [104.47.0.60]) by dpdk.org (Postfix) with ESMTP id DA0AF7D3E for ; Thu, 24 Aug 2017 17:54:28 +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; bh=5vgy2DnrrCgYqznTGrzklF2z8tg43aza9rZ3LjBpL+A=; b=WlZkjIylLcfsMpfC1hE0P2X/LIojTqlDkvgXDOZL9DXtL6BoPIdViOarQ70zNdMJFi0jdzKVz3Goo0aOOTHECPgNUycbE2klJtZ8/QamdUrybFvjSsmUf9FonmxRkxJBeG0/+mJ30hT/+AVjEMxReSi90Ps14t9EzvZjqMBxfZo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=motih@mellanox.com; Received: from mellanox.com (37.142.13.130) by AM4PR05MB1907.eurprd05.prod.outlook.com (2603:10a6:200:15::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1362.18; Thu, 24 Aug 2017 15:54:26 +0000 From: Moti Haimovsky To: adrien.mazarguil@6wind.com Cc: dev@dpdk.org, Moti Haimovsky Date: Thu, 24 Aug 2017 18:54:05 +0300 Message-Id: <1503590050-196143-1-git-send-email-motih@mellanox.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: VI1PR0302CA0006.eurprd03.prod.outlook.com (2603:10a6:800:e9::16) To AM4PR05MB1907.eurprd05.prod.outlook.com (2603:10a6:200:15::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d095791d-9da1-4c84-df8c-08d4eb086620 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:AM4PR05MB1907; X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB1907; 3:3bjeHjTs5zAahjHcexw6IhMMMRESOInRZDSpHAJMcdn9E0EYEVi8ieTUMBBntmytwZh82EiLHX5ojnoC8oBwDxCWRqEXjIo6FslHaKsElnMLNS7boso5+Ss/fAQFx58dvfjbntR7YFPzXcC5i9NiznzU2gdNRFD0F7SIq4ieg4fv/5NyCFjAxdg0CR9bHvwbHbxarDWFVaF5WVYrzcy9GgiwAchMpefm8p+cZRvclcrhA9/sidp86bj45SvUocII; 25:nJX+9dVeNne0txAQlUDnPctPghG+854jR5++K86WjdTxt17IDhyMJZ5xuiQXTG2EPbbdUpFu9HYKxfDflVmDSTPX1R60PL66TQjuTdh2cczEHi7T6r4sjnLWrIx/eUwjs3ejC7GE2wmjRBa/NURKnMlLItzXWu8LBpjKQXj8nWogUoaAdUchl+AGHJQlgOpqu8J2/b2zHIcNG9NaytHSv62pPQ+wIPsKoDGjKdpa7ew/E1UefIzgc7Q0BoMgTuW/HYV5egepvsvQgALmoAhgAgy58pqTlOL0JWDZlemnuqVHeGqDcDklhGFGlRNztF7FUr54Moyt/nmir8FQySkuYA==; 31:zrzwsqSj2iVkYOs1x/yLeCLlr19Afns6UiQ/9rSQlCRC1UT088FxqaF46cJsBtqAUTriLDcN5/qm8Apryu5wpYAUpT+bHK4JxsiT7A5ekaQ00bI1P8QVM0XqJAN+k6+/7aQEi9v6Pwr0RNyc9fDDWVWLdViFfl3RRLHGND/9dontiJ9Xzhf4NmammvT63ld4vBdZ96IL1Cm/1rJm2Em5/R6yQHWHZRfzKtRCwaDsIzE= X-MS-TrafficTypeDiagnostic: AM4PR05MB1907: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB1907; 20:g01XQuOWgmT8gGzQStyy9nhyCXj6xD3CGnJefuZJo5psHMAsKO/csz6zwiBl2cZgYGZVIERPDZHYWkoPJyXmRK91Qi8ia5BUfGL2iaFMxN1xI/Z+sd1dckf3vH6tmG6xk83KsaJDpZsl5jQjFJKsYNuvl5OtFqjokVaItzu5gGxcTVG9vTbfxJ9BLP3orekOI2V0dRaL+BUR9NNwP42iPy8KmPt5+qlhhDvzWdl92w7E0b2ic+iT4gbv29fH6808qvGQwhIRKrPWrxTHqxmw/Ku73hVAuev9j6oWuaFnYTuhZ2U5nyxEkH/9F5O6XP8zkONwrloY5fV6qAnfy3C1kZQ0uMdviYyrHdGrEiWxpYemeM6lFeASDh4VdJaTVH2+uShKJ2NlpFSfnT/QjZnJjC81NT/ZL7paMhVGsIR+RZf6K9+Cvx6Q1zkMuXKKG/iMDBBv5woYaTBJ+YYDzjwfNGtcpQe6++8Ay+OKnUB6CLixjGX+3ppwM3GNeGskJWO8; 4:M47Fi/sHcKpBOZTtZZcEH5yxEjt+ldX0BmGhuHagnxHl3GLRKysxtZvhdtbD+p/6/Bt0coz9AsTN/MWWDbjjoo3xoqe3/cXSG+EZ7nD4ErYZDD8IEo7OpMRr3bQf56dgSjh0y5FHHDIsWWSbIUMNO+jslRLqLdEKTWeCJkBI3u3TgLi9A7Bw4HwZAtJPJge0Kj5c+niuGLaHA+46Nz58vu0N/0NZDvm7yyp0N0ZJgpS9szZiCaBcFUcZQF2GN0wnZzlH7+4xaCeQgndPnjsdo6pZVNVhJBb45FAuRkfsVh6B7HObXuZkTEopMbe9Onyik19S8FYNN+hYX9sIbT4RgA== X-Exchange-Antispam-Report-Test: UriScan:(166708455590820)(66839620246622); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(3002001)(6055026)(2002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM4PR05MB1907; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM4PR05MB1907; X-Forefront-PRVS: 04097B7F7F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6009001)(39860400002)(199003)(189002)(66066001)(47776003)(5660300001)(50226002)(2361001)(50986999)(81166006)(8676002)(69596002)(33026002)(478600001)(105586002)(7736002)(42186005)(106356001)(305945005)(33646002)(4326008)(81156014)(2906002)(2351001)(101416001)(21086003)(48376002)(25786009)(189998001)(4720700003)(86362001)(6916009)(55016002)(6306002)(6666003)(53936002)(50466002)(107886003)(966005)(110136004)(7350300001)(53376002)(6116002)(36756003)(5003940100001)(97736004)(3846002)(68736007)(50929005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB1907; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM4PR05MB1907; 23:zL1sK4guyI8IQ+mRTUfXipWtBveA0/TCi48qs+Evx?= =?us-ascii?Q?jBQrDJb2Q5hEn1NVA1rydqFMtX9dLnhRUuazJonSUHqqcQZAyrCYYD/7nLE9?= =?us-ascii?Q?rEZq/yRdOvRur2ynXRMaNnYRDhbTFF9+Hdc4N41yeYviaPqzu//MD2jd0mb0?= =?us-ascii?Q?6hKs7pDYAymW2u+oTyTHL2wQgwjeqAZNuxjQxF+Rk9lTTI1dhuXP/mDzBqXe?= =?us-ascii?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DiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2017 15:54:26.4747 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB1907 Subject: [dpdk-dev] [PATCH 0/5] new mlx4 Tx datapath bypassing ibverbs 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, 24 Aug 2017 15:54:29 -0000 This series of patches implements the mlx4-pmd with Tx data path that directly access the device queues for transmitting packets, bypassing the ibverbs Tx data path altogether. Using this scheme allows the PMD to work with upstream rdma-core package instead of the Mellanox OFED one without sacrificing Tx functionality. These patches should be applied in the order listed below as each depends on its predecessor to work. This implementation allows rapid deployment of new features without the need to update the underlying OFED. This work depends on http://dpdk.org/ml/archives/dev/2017-August/072281.html [dpdk-dev] [PATCH v1 00/48] net/mlx4: trim and refactor entire PMD by Adrien Mazarguil It had been built and tested using rdma-core-15-1 from https://github.com/linux-rdma/rdma-core and kernel-ml-4.12.0-1.el7.elrepo.x86_64 It had been built and tested using rdma-core-15-1 from https://github.com/linux-rdma/rdma-core and kernel-ml-4.12.0-1.el7.elrepo.x86_64 Moti Haimovsky (5): net/mlx4: add simple Tx bypassing ibverbs net/mlx4: support multi-segments Tx net/mlx4: refine setting Tx completion flag net/mlx4: add Tx checksum offloads net/mlx4: add loopback Tx from VF drivers/net/mlx4/mlx4.c | 7 + drivers/net/mlx4/mlx4.h | 2 + drivers/net/mlx4/mlx4_ethdev.c | 6 + drivers/net/mlx4/mlx4_prm.h | 249 ++++++++++++++++++++++ drivers/net/mlx4/mlx4_rxtx.c | 456 +++++++++++++++++++++++++++++++++-------- drivers/net/mlx4/mlx4_rxtx.h | 39 +++- drivers/net/mlx4/mlx4_txq.c | 66 +++++- mk/rte.app.mk | 2 +- 8 files changed, 734 insertions(+), 93 deletions(-) create mode 100644 drivers/net/mlx4/mlx4_prm.h -- 1.8.3.1