From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0041.outbound.protection.outlook.com [104.47.2.41]) by dpdk.org (Postfix) with ESMTP id 0F7721E2F for ; Thu, 3 May 2018 01:21:12 +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=gfkpcqLyLoBscwsxoTYCajlhyULcLZVqtNGYmc6IeFo=; b=LWOIujQ0ybaO3yTcFmFB8hUt/ZPPo0IzF5up2KNAPqMRdAlcCFXbyQbYPL44FqseL93h31QW/m8C0UA5V5Jql4WLsOAV8/rVmb4W7EZo63vxJwtpsDgKjKizKrZ4TJaotdzrQYBOJ423KOZN0pTT3B+1Q6o4s6zyugA1S/WwlM0= Received: from mellanox.com (209.116.155.178) by DB6PR0501MB2040.eurprd05.prod.outlook.com (2603:10a6:4:6::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.20; Wed, 2 May 2018 23:21:08 +0000 From: Yongseok Koh To: adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com Cc: dev@dpdk.org, Yongseok Koh Date: Wed, 2 May 2018 16:20:51 -0700 Message-Id: <20180502232054.7852-1-yskoh@mellanox.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [209.116.155.178] X-ClientProxiedBy: MWHPR15CA0059.namprd15.prod.outlook.com (2603:10b6:301:4c::21) To DB6PR0501MB2040.eurprd05.prod.outlook.com (2603:10a6:4:6::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB6PR0501MB2040; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2040; 3:3Sa1fmxjEzOG4oG9w/LQs4uaxBb+G0HPqtODALRfq9EiGzjtusYBu+Kra02/OE0OVfEWZl8LOhXPw7BMvZYWzEA8x/j+Zbc7oKZxG/3yajq7o81m62+TNHUqnoOkQS56t+t4iHqpUK3dhsUvd/yvZCeChUZlTjpdjeqtRd/CY8ytwnnplIQXEZC0Vd0kq9sSPXx7e1Z3CuzWpzJjq3BbEssh3sBwN8S2fIiybH9HzT9ecGG38UzxD1xoTU0ZCh0y; 25:pmuaXoJRrv55zsLjxqXcsElVSpzfXuQWDNhiBqF3Dzm5PdYu1G+hLnEBGTxfnTUk46b9dmD4QCMXuuO3BjwtPdN6FOddqkcBng5NfUuFe8kZUr54vfRrh0fCCT3i3EFihQx6YUqkQtybgEkVEs/XrVSlA+R+xVomTIuu5LDeDvlm+R/YHqWjL2fzcJQHbPuersjFDxldNuUo9cybB/Ce3OxXPJrsfQcxR3qGsaJRw1PugvP4SQhm3NVkperwyLcppxpGGKA8jGpDOQfgh1CKARkVtq1EXhzCOCkJACIy/xcKOLbOlLYYxyzQ2vJOcDb+9uizj8exuA0t9eT/vfLWMw==; 31:vE1PcdDgTdAXsna2FOHz0t5CLDkFbnZoochJUk1XJY/yKheqwyIKjP0rjNurMJxhmniVBtvyc3ngtVdP4UpeONYsFSAFj/VZiPhJjvn/T/WQpfdtIl40NKDd5Pmt3DDfLQC3lQC7wOTIM8y4sgV5Xp9F1cMmfQMuqiUOpplL1b2BVpdLB1sqsn+SLLkOEEebV84g5PcTuLthdqMbnsd6Q2ng6Fd1vGgf6KPTFlCmyTE= X-MS-TrafficTypeDiagnostic: DB6PR0501MB2040: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2040; 20:NDAcDAR9qMdtE3wdYRUDywI9AWJuUBh2E6nIU+B4IfEfpldCL98W8hqXKqGdEeIqjV60ma7irrjI9Jj0TjnzOe0rIBsAeGRIBa11FM9hkEKARSNEPcLa5WxmCOEK2dUXl7QjGd/ELcaTSYqilX10g7IaAsb67FidDFb16hE78iMqyub2f7NPAeT2LdbtfEHcUw7BhHDvfNU8fTj82qQbrtK03iOtYh0pelnU0K/Knlzpn6pArfJYETFpCAtWccsL3KNO0ml5ZeGlHfYRlZD0pQg/Qbnk61NcvtHS2dv/5y2jFrAMCIx0UvMc/LMMcXoEurzPdcR+C9Nd053/Md9HhyQkzlo/gN2LWm4Cywwc+vvJH90feBtOVGysL4dvBi1UN4nwGv/dH6ZLCJwcrT4jmXpw9n7R6oASOULUeD94jiE8sJschWEAFF2jH7BgitbeyENkshVKeWDMILxoPhybLP1kn2oftuQkpPsirqE6EqNQKjPsGPmtCc21X0Qzwntg; 4:86Y1YMWxgT8nmesTSdfSU2ayebsz9ODV+VuylTXbiz8cMGrAEZwLeB45edbU07UBR8WFP3H6FAx2jk6AVIEMmTRJEMpQGNE1OqZvj290vdgUYlPtd9GatA3ca31b3goNtdSQ8CI92etqVRztLP3nFeN/+GzUZPrT0IHyqT1N59ho/w3wYV4n+t1Nz5+Yfxtue3Nr2mkiUVrqcJsaxaFEbonnrjQ84rhUuj7YT5/aE52pr3qXYhfKgsSlNO8BBCCpu32JTQqoyxSah+A1cuSWVA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(6041310)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DB6PR0501MB2040; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0501MB2040; X-Forefront-PRVS: 06607E485E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(39860400002)(39380400002)(396003)(346002)(376002)(199004)(189003)(6666003)(48376002)(8936002)(305945005)(5660300001)(36756003)(47776003)(53936002)(7736002)(50466002)(478600001)(66066001)(105586002)(107886003)(50226002)(106356001)(21086003)(3846002)(55016002)(486006)(25786009)(8676002)(69596002)(476003)(81166006)(4326008)(2906002)(2616005)(81156014)(956004)(52116002)(7696005)(86362001)(68736007)(5890100001)(6116002)(186003)(97736004)(386003)(1076002)(316002)(6346003)(51416003)(26005)(16526019)(59450400001)(16586007); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0501MB2040; H:mellanox.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) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0501MB2040; 23:OawETrd4w+hyqAW6k+mj0iRtVpZ2DlfBqmR+O3K?= =?us-ascii?Q?9/BY0LyOtYCoyyMDXxKv6XirOlK9qfPr/ytx8UiXNrrBLBFD6r/4leOCD5pN?= =?us-ascii?Q?cYK6xhjOG/R9bvt3q4bpXnHZ7kC2wXd40QVTI7siKuzcnG4qfV9PKqUMlnU6?= =?us-ascii?Q?/ZX3OKzxqciKl6nXZo+RmPIJGieJZobPlc6cmWgsbPlHYS88lg2xUPjfj+eK?= =?us-ascii?Q?AVrQiMgzz3nGwz7ntYI4Bu9xO2326HtROorKCaNvPGKcecvMfmEzqeW+HjYd?= =?us-ascii?Q?1nINpyzdxWJ9Vn0Pg+trHQJaGpY/Lu1yJkHHf71VTMhMOgxH6DRkG10RNnRI?= =?us-ascii?Q?mg595hZhNrMJCExo1Ki9gsmPrdu8B2eYlui+evqln2oCG6QSuoPBtxFCjYi1?= =?us-ascii?Q?3LBlNqaf8odLy0rrYVowC+PREvyqwj3BBsQ3erQPBbeGIiQWlICiw5Fv8XpO?= =?us-ascii?Q?EEcDUdA7Xyfh2xlvttsxqIriSPiSD6gf4Zn3RSGV2YWGTh4EeqLurNdmrtSs?= =?us-ascii?Q?iBD/E7dnL1sUkAKmzdrrpo1vmsjNxYr/RDecHfEG9oGSmlx8RAPLyiRGl7dB?= =?us-ascii?Q?zuunngqgVd08HWm8TC2l66up7vo85rFhAe6xZHVm5abQI3IqYjNOiRolSkjA?= =?us-ascii?Q?s9TbuTvXEyH4BHlMk6Lz1BOEphtbhGyzmlS8vBZkn1g3aLq/k+hdLCkcLJwe?= =?us-ascii?Q?3+od7PPp+cpd+PJTVOQS/J5oZ6TKRGj9kaiWYV1166n8IERxubQL96DU9gTP?= =?us-ascii?Q?VE489bc/UcKG8ThC2UkegzupPjrKAHLV+yGbWjwqsy5UdLBRGwaySmOIKzM0?= =?us-ascii?Q?zTPoA3v+68OKvkyfePnDKVdTzkQtsI9m1YgHspFiZrHTd8894mXcX4wS8vhh?= =?us-ascii?Q?EDpvQO8VwFNPyrM+bSBRaupDOOiUgTTFOtQo+hNioOsM/RFrUAGTKuZWalL6?= =?us-ascii?Q?G71eLb5JQFpitHAl4TZZZhL3oNuGn8mUp4n+sST3E646/1/l+7fTlOC/p5wr?= =?us-ascii?Q?qernDAvABzFV6NgvDq2LYJl1xdsSE5MkS3riAQJWrpycDI6SzasoB0nJOQkP?= =?us-ascii?Q?vuurIRlZKhIahaYyIRi2sOhe+VKfJKR6g+nGAdG5uyP7ZG1rH+l4EKdlkJSQ?= =?us-ascii?Q?igdiRneYztA3dqxsHydCW0ewpwybF6DKofvHHCqKy1sZ9dv3JucTXFPA8KJv?= =?us-ascii?Q?nkkAXqmKlMjU+rhxy2qTHDXuTS8EZpVYd9tjjogaocEmJ98jHazJ1dU8io8S?= =?us-ascii?Q?0dVPQTC1uYBtOYfC1OWU=3D?= X-Microsoft-Antispam-Message-Info: xyuB8ccEgGegHkEWlvJIxGjTkht9B8rxOjheh5S2j1dCZa9/cuKYUvIvhXhw7yI5KzwFqB4XSE3+YJO/gTGd/Y66AXh6E/5mt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914C2xeh2TAHqNvLeaKgybUdI1pcS22t2YwkTAPI9oX+TA6ZbvH3Q4gjDVy4e+DB47YX35cNvZb4XwVU31I1ynptVez9Cdn/xvniHYsLj0YakhR8AbosFw+K6UU+bOcRdbSz7UlvnsZ9VkZ3i3ztT1slLX+UKyYnD84 X-MS-Office365-Filtering-Correlation-Id: 5969a0a7-a6a3-4990-55c2-08d5b0836330 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2018 23:21:08.4578 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5969a0a7-a6a3-4990-55c2-08d5b0836330 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2040 Subject: [dpdk-dev] [PATCH 0/3] net/mlx5: add Multi-Packet Rx 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: Wed, 02 May 2018 23:21:12 -0000 Multi-Packet Rx Queue (MPRQ a.k.a Striding RQ) can further save PCIe bandwidth by posting a single large buffer for multiple packets. Instead of posting a buffer per a packet, one large buffer is posted in order to receive multiple packets on the buffer. A MPRQ buffer consists of multiple fixed-size strides and each stride receives one packet. Rx packet is mem-copied to a user-provided mbuf if the size of Rx packet is comparatively small, or PMD attaches the Rx packet to the mbuf by external buffer attachment - rte_pktmbuf_attach_extbuf(). A mempool for external buffers will be allocated and managed by PMD. This patchset should be applied after: net/mlx5: add new Memory Region support Yongseok Koh (3): net/mlx5: separate filling Rx flags net/mlx5: add a function to rdma-core glue net/mlx5: add Multi-Packet Rx support doc/guides/nics/mlx5.rst | 25 ++ drivers/net/mlx5/Makefile | 5 + drivers/net/mlx5/mlx5.c | 66 ++++++ drivers/net/mlx5/mlx5.h | 4 + drivers/net/mlx5/mlx5_defs.h | 23 ++ drivers/net/mlx5/mlx5_ethdev.c | 3 + drivers/net/mlx5/mlx5_glue.c | 16 ++ drivers/net/mlx5/mlx5_glue.h | 8 + drivers/net/mlx5/mlx5_prm.h | 15 ++ drivers/net/mlx5/mlx5_rxq.c | 494 ++++++++++++++++++++++++++++++++++++--- drivers/net/mlx5/mlx5_rxtx.c | 291 ++++++++++++++++++++--- drivers/net/mlx5/mlx5_rxtx.h | 37 ++- drivers/net/mlx5/mlx5_rxtx_vec.c | 4 + drivers/net/mlx5/mlx5_rxtx_vec.h | 3 +- drivers/net/mlx5/mlx5_trigger.c | 6 +- 15 files changed, 924 insertions(+), 76 deletions(-) -- 2.11.0