From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50061.outbound.protection.outlook.com [40.107.5.61]) by dpdk.org (Postfix) with ESMTP id ECA977D0B for ; Fri, 25 Aug 2017 20:40:54 +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=B/+DRPQ99nrXkaGVhi5thuNcVMn3h2OSFzRr8BXCTiQ=; b=T4daJoijsTQQU3iIStMHh/ni6HUqsv/nsRBXEjUygvNnbZhlYzTYhvqL63lrageSGi/g6A3ipjICRJRtWc2O9EvFfFr4RLyewX1wCLD4StSydhc3yOc/Gxhb926avbqEHlMma6PzXwEyD9vW+QNtY3VkXU2jLFoOF9KkrdjFO7g= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; Received: from mellanox.com (209.116.155.178) by HE1PR0501MB2043.eurprd05.prod.outlook.com (2603:10a6:3:35::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1362.18; Fri, 25 Aug 2017 18:40:50 +0000 From: Yongseok Koh To: adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com Cc: dev@dpdk.org, Yongseok Koh Date: Fri, 25 Aug 2017 11:40:22 -0700 Message-Id: <20170825184023.31692-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: BN6PR1301CA0009.namprd13.prod.outlook.com (2603:10b6:405:29::22) To HE1PR0501MB2043.eurprd05.prod.outlook.com (2603:10a6:3:35::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 11e34f1e-1d01-4f1f-55c1-08d4ebe8cfa3 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(48565401081)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:HE1PR0501MB2043; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0501MB2043; 3:g9fG9d1uCX4taLr7VEDbU+id2xXMM+s4MR1q3Ex3EjNpi8fZUoNZyuAnHNkPk0qLpYNXHioDE5W94McFVK0CUvMr8OMpLhYhzqFLNBo/36z5o6ukZay/L9GX4B1qB8F6k8zjJK5cqY8EUJdgFHwqAUDvtprA1H8sFt//4iElUPNB7qFqQLsRh3cdNlF+WPrtaFqvzsXValk9xmRZfvXTPQHThWIMhQUhgpVXx0c1UeosduPTBw+EYv7386KKBFmj; 25:hpvg3W8MpDnlOuGwf32ZV6zUSqFmyaYWWUdVQovbFTaCGLXhR9myUGlN/mlgnwxqCuiONMMzvYfctVWzmSWHsGDqpSTWyyn7mUqiyWiyHx6M7TmKHAdwHxRKV9bheIeZftRzHoAKjTZmIhShqJEwOBRVnb6cSkCv3OS0Ds+k5jWHXWL9c75X0OMWb/yGvkJPBH7yq80MBTYGlOwfqsRBpSkwwc1YiOfGSXTc/6i0bqoafz5A3e9JLqggU2lZU5qD2V9OZ6bg4kLbuEpAN+gYtPZbK3y1AeIsMvTfXfHSXtulv3S+CyxSI46NUCb36c2cgvMagexwct6KWfUCFBbygg==; 31:oP10bWB8JEk67pCKK5+SOI6SGH9XkPkPJbOvRlxra6M31eLqQdrtC1/Dqrs8WMFZzv8w3/bGGKrx4PStxqRLAIm9nRO7pMWMji9z2iue3hsOBQAoqJNSGuaYIGWWhvhcAby+rTvl2XsWe6YQ1XgK4Vgq7VuC76ZYc16SpQBLCRrcb3s/h8awwS09+/DCgfsXRa2+DoP8VJg0x9JJMYHxFJt9SplJ2YfAS7lLQYeF7qU= X-MS-TrafficTypeDiagnostic: HE1PR0501MB2043: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; HE1PR0501MB2043; 20:MN9b4IE/whxfV9sKO+fmBog85Fjr7qHcVdfEb7Nk0+IMnlyhvff2kNqULTENfFXmC8gZ762IVLNa7MXiDMPsNcuEGW7k3eJITBqB6HncJqmGd6Xy67IibANq2uOrCj6UzZCioEVJq+sUP0fejzvhcl7ewKwOEXAAjGTGKlJvGRvBkvgtpiN8NGOajYl3mAKUqFIzTM8IztmfXVjU1jU4F5BD2T1p4BohHimqews2k36mVw3r1udr+HBUbVpg1tXKodr3RzrJA/jHMmrFfCIN29+AfH52ngfwfW90XQjsIs/gymM45C3iL4qGhNQqDbFHgBoebmf8p9p+4gD2et6CYD12EW+SGiwE+QPDTTK/KkTcNpSF1YFdQ3Wws33im8ckpZIIFyEapDGq0M8NoZAfavHE/9vtyG/3yoAH2x9sBiDm8BnLLtJGm4Og8t6jSItKkx7YUvbQAmFN+lO1wGdjBipPvuQVfuNsq4xoPHV+zkAc+XTIgHvaqPRIO24AMOXE; 4:69g61pgcfSmYwZUz/ofjKfbbKA/DEfv9OHAtQxLxs4pbTh+nIfyEd+vrol939WYkuSG3u4B0/ShVjM9+lot0ShTex6/xOSXvJcJRzWtOcl5UTUeSD6XQJvKCQLLPFfTvzSTRvukX0PmoDBypNK9pjR7tYJSkxg1rfXUxMxdsQkwOmoU+eKZJhFxvvEuJdzt4IofKu9RawmAIXvxNAZQ4bi9ONHONXPxrYmbm+ZhAR0pxnT/DC1ecbv3NJofjyYpF X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(20161123562025)(20161123560025)(20161123564025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0501MB2043; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0501MB2043; X-Forefront-PRVS: 041032FF37 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6009001)(39860400002)(199003)(189002)(5660300001)(81166006)(55016002)(66066001)(50226002)(53936002)(8676002)(7736002)(25786009)(4326008)(50986999)(305945005)(3846002)(101416001)(86362001)(6666003)(33646002)(6116002)(1076002)(110136004)(81156014)(21086003)(107886003)(48376002)(50466002)(2906002)(478600001)(189998001)(5003940100001)(97736004)(105586002)(106356001)(36756003)(42186005)(47776003)(68736007)(7350300001)(69596002)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0501MB2043; 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; HE1PR0501MB2043; 23:6nTFT299KXBoUtARREJM/bDMO9JVPhaui/slBVZ?= =?us-ascii?Q?MsxQjGax9TtCrQVVX8HG7oLzXuaxa7WAJhhAvwAtoSEKMSyKGrAMEEE9374E?= =?us-ascii?Q?ws5VpCnaZQX1p8uEQNUK7bDZIgX4thFO2er6Wgrns4VmeyRE1IoDHH5Ams/X?= =?us-ascii?Q?BOp4XLjeKdUoE+sO3pth1b5QwuzL/j04rAXsiypWusb1uJjnV5MP1fE+8Lr2?= =?us-ascii?Q?c895BpSLrPZC8/taI0DgqxIB316v+71IcDf2DIpi2EUfMaUoulbC+vnJxRK9?= =?us-ascii?Q?rUcLFWzY0OzPPwbxLcp+0/4hKy/5NFgWxRz6kbIKTf3EtkfXpNWb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tyF9vD/pHuSzkF33uSR7L4JIbfmkQaD2J6egND4jYdZLueEXTdmgCE3g+jYA2yqAzM0AwYuwOtr/kUeVhA3SBDMCz/oyCbc9R2YPjhTqQcBiIjqb5zeyeugmSquv3uVpqWZv116+OLSsclnfOJNw/2bkafI/HhaFlL7CpX8zIcAt4cfXER0TMogcnQKTgvCeoPN6MbNAwgyNhtAo70qaATpkMfOOYl6lTwsHloBKpnEocGh+K1r66zap0AtrG05XMrRYV9ZLcBP8IVeqz+vWyN7pFLQSqMoXde60coP5ZykzTshBK+WHDwHx3xGWd0+g==; 5:3B6MeHPPlqUdZSILTeAJXyY4Oh2RHZrnTdWLzqiQbfpKLW+K8oy7spRStnNKSmqbLkh09cBQY0vGQL2PvuRO+g8M6vNBHjPTTun9nW8KqVX7ncD0cLhItyg2fC2EwSnq5IVxW4K5zjGwXa+W5CAicg==; 24:s7kC4dvURXn+AdeYO6Pp257jFsdUd0DPRcMNIRdFnT0XzLgfw4xB02ZR/2z0K2Rm3tPFdWHHyjemnCDzlqfbd2Wfu7Y7W8aqwEM1ubXxZ30=; 7:A1CGrX+vwUY1javPXzJUeLPDhdGLp8FAHeqpZvdjr+CrLcfB7U2GzpF20WeTkzFxF44HV+RdidRTt+FQj4jm6aElCXjhtAr8nzEz9GUabNIkmr8/Zm7nPIhLN1NOh1rjQp+BHLRbwvXNHuf9dGoUtnyIlsPZw74+C7uAWKMJfaMsO2G45vRZsHD8FpCecf6eLr7tGckgySbxGrUmI5vZY3uqt6UMSXOXTnBb3FB3gAg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2017 18:40:50.3203 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0501MB2043 Subject: [dpdk-dev] [RFC PATCH 0/1] net/mlx5: add vectorized Rx/Tx burst for ARM 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: Fri, 25 Aug 2017 18:40:55 -0000 The SSE(x86) Rx/Tx burst functions added in v17.08 would be ported for ARM NEON in v17.11. Although this is still ongoing effort (more implementation and further optimization), this intrim patch can be applied on top of v17.08 and forward packts. One of topics to discuss is that I used inilne assembly for performance critical code blocks because I don't think intrinsics for NEON aren't well optimized yet, especially vqtbl2q_u8()/vqtbl3q_u8()/vqtbl4q_u8() and gcc's register optimization. And older gcc doesn't even have vld1q_u8_x4(). I used it to get rid of hotspots shown in profiling result. I'm not sure whether inline assembly is allowed in DPDK community. But, I believe there's no reason to prohibit it. In my patch, some of functions are commented out as I'm not done migrating those yet. But this is functional (Rx/Tx). For Tx, "--txqflags=0xf01" is needed because I haven't ported txq_scatter_v() yet. Yongseok Koh (1): net/mlx5: add vectorized Rx/Tx burst for ARM drivers/net/mlx5/Makefile | 2 + drivers/net/mlx5/mlx5_ethdev.c | 4 +- drivers/net/mlx5/mlx5_prm.h | 15 + drivers/net/mlx5/mlx5_rxq.c | 61 ++ drivers/net/mlx5/mlx5_rxtx.h | 3 +- drivers/net/mlx5/mlx5_rxtx_vec_neon.c | 1464 +++++++++++++++++++++++++++++++++ 6 files changed, 1546 insertions(+), 3 deletions(-) create mode 100644 drivers/net/mlx5/mlx5_rxtx_vec_neon.c -- 2.11.0