From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A76F2A0543 for ; Tue, 21 Jun 2022 10:05:35 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A2CCC4281C; Tue, 21 Jun 2022 10:05:35 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2042.outbound.protection.outlook.com [40.107.223.42]) by mails.dpdk.org (Postfix) with ESMTP id 171E842823 for ; Tue, 21 Jun 2022 10:05:34 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DvVLk9VGYhslEWwY0Rm561b10A2wmhUKfkijvT93lSkW8KfF933YdfKSJvFievFN3Us+ZyplrBftPD0UTebTeOf8ITMxyuQHlqXd7tgHTJoPnxj6Bx4Ac/HWl4zIr28CviYuZBBAaYM754oGLXssbgC9Ydy7fg2H/V1oYsUJKrsBuXtwTCS8Wda2wxVQundkXRyYijWCIzwbHUmIdOFnPKUF/SRj23i4KRiZXH4aJcb8QRglAerob6pJyodM+mU0qt8z9pRyqEhQfbX52YynOa+CWvhKcgqUSfJfuPCoVe98zyCm1Da2dpBFOzmQmY1+kvFJvjBxmr4qRfvlMPbBSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vabVsL5LhgmUBwQQnKqWnkaKM1cQ3Pig77AZeE2vNko=; b=FN7cbpQMFgNfrCoEuRPlDEozMgl7gYCojAV74UORaZVF5/gVhifTxa13kVtzzv6l7lnrSw1Mn+RoNmlJQk26WxjUXydcYW+0K8JHjA5SVIdaE8P1kVSRlLvBVtW2aA5lG191CjnxJS6/pDDHA7mS8+VZ0gqfs5fHvAshg5T/D69osDlX7DhaGG2+2xT9sGstRzKFP2fQg6Q4cjz9XWD9shWUwWT16BgxoQ2R3aPtrdA/4Ki1tEFff1HFfVofZJdFnnBaJWrxPNspaByFMjM1L4v1aOD23CBMwk4CXH0xknbkjoNA7OBy45ZrC4drwKfiaW+TTDDDYtfBfEgONaZRgQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.234) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vabVsL5LhgmUBwQQnKqWnkaKM1cQ3Pig77AZeE2vNko=; b=EE23g8vtZ3a7l5JQNUxYD4kaz+9ky/Tq2uElXyJZgPgKJ+NAqhuTVAn5iIj1QENxNlGOMjPyF0eI58ySyinEYcoxRohmj6EDPvlXew+5cUnjCX6smqWZHJgcy1MehaaXzUq3QFs3q5iCklOokDiP+ZHqKjbBrJ5dDgM3MCJ2jmoamW8Uu1RkCN5kPVaQx5q4zVcQmTaOkgMSeld3Qps6Jxaj3YJO3UWhsME1HbrRFtPaG6n/dzLdXFySObajOxEfZqHuJV7nDhObrTzfOemT0ExhYJGj5gbcU+c6o3GqnLauvqvwDuBp8swMWB/vWxqVCq2VPseoC7BwQwV6f1VDtA== Received: from BN6PR12CA0039.namprd12.prod.outlook.com (2603:10b6:405:70::25) by MN2PR12MB3199.namprd12.prod.outlook.com (2603:10b6:208:ae::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.20; Tue, 21 Jun 2022 08:05:32 +0000 Received: from BN8NAM11FT004.eop-nam11.prod.protection.outlook.com (2603:10b6:405:70:cafe::d8) by BN6PR12CA0039.outlook.office365.com (2603:10b6:405:70::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.17 via Frontend Transport; Tue, 21 Jun 2022 08:05:32 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.234) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.234 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.234; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.234) by BN8NAM11FT004.mail.protection.outlook.com (10.13.176.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5353.14 via Frontend Transport; Tue, 21 Jun 2022 08:05:32 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL101.nvidia.com (10.27.9.10) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Tue, 21 Jun 2022 08:05:31 +0000 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 21 Jun 2022 01:05:29 -0700 From: Xueming Li To: David Marchand CC: Maxime Coquelin , dpdk stable Subject: patch 'net/virtio: restore some optimisations with AVX512' has been queued to stable release 20.11.6 Date: Tue, 21 Jun 2022 11:01:34 +0300 Message-ID: <20220621080301.2315720-29-xuemingl@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220621080301.2315720-1-xuemingl@nvidia.com> References: <20220621080301.2315720-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 80c3da00-8387-4c13-95e7-08da535cd043 X-MS-TrafficTypeDiagnostic: MN2PR12MB3199:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZRuR+53jOoQXicZ/6Nc0A9iKoIUxxV41d5vnoTIlXRw1bY9gI1fNcAyDSq18g4uba8tOSyqZwNMYBQ2vcqbzCSRYyd19rzuv4dFzm1eQe5CnFRsy0Km5Zg/qQMy/QGiKWQx9AKpUYPHYrrQYMZuXxtjDjJcW+YC3LaD+jixQmnK77bdY2ygwXXSe762G8YdIk/pnaFo1fD4gpSdiQWQkpEg9dCjM1e+t1+DpHyPKgnfOEwBPyALIOWQo6aB6Zrif9NxD1VwCrVnsAIO+7zPHasm1OBMMut4lPtz3ljStp1Sj0tFfW3lADkcxVY0kJLgsdP8JK+0Cl6ewJvF3lki3qYPU8+xVVdGEJgPANY69PRoKZDSomkk/aB6s7KPT3A9ItvY0nx+sn6BZHOSIUTYlL1vbEclMR0reqdVuKL6MvgqPznUBrHyU3hfF8lE2arFK4TbNrNNMDHlUoHgqt93MtAPthClICGRXw1h3OCOHVQj8WW2NP+WBntNrZ/8k8m1JZy5T2ln8F1UFUbok9i2MAsE5CSj2JXw8mJplAZFWOfyUgbX1FpRN4brPAUAEXYDESV9nAcClYEQfNOGKK+yHt5n3hWotb9eJt+1CDlqwon3/0GQ7YSx93qSVZqa77HXe3tLdjX7EZZcYjIpeB9QpE/ZxUaZYgNNYRcjtQhk2jlaauvfA7e6SNe37X0Q74eA9U6xYg2TvjCylLBr3SjInFvfTlPGwgM/FQEMPgLKpnk/l5CmbUp+inY1jAHpkaz1twVMQ3Jq+In5yOwzKWSGUVh0+xptbaY3p9z1skzsJm4Togxl8rtKt6ovCunkxNzJkeDnqBoyxqkE94sVpF0B/z5xWrvuhF9FUKKMcFX59OiQ= X-Forefront-Antispam-Report: CIP:12.22.5.234; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230016)(4636009)(346002)(376002)(136003)(396003)(39860400002)(36840700001)(46966006)(40470700004)(40460700003)(36860700001)(82310400005)(86362001)(81166007)(478600001)(966005)(316002)(5660300002)(2906002)(41300700001)(82740400003)(8936002)(40480700001)(70206006)(186003)(426003)(16526019)(70586007)(356005)(6916009)(36756003)(54906003)(1076003)(47076005)(8676002)(336012)(4326008)(55016003)(83380400001)(26005)(6666004)(6286002)(7696005)(53546011)(2616005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2022 08:05:32.0346 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 80c3da00-8387-4c13-95e7-08da535cd043 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.234]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT004.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3199 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 20.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/23/22. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/15d4339cfd9888fca7629a8f231d23805d9c287f Thanks. Xueming Li --- >From 15d4339cfd9888fca7629a8f231d23805d9c287f Mon Sep 17 00:00:00 2001 From: David Marchand Date: Mon, 11 Apr 2022 17:04:20 +0200 Subject: [PATCH] net/virtio: restore some optimisations with AVX512 Cc: Xueming Li [ upstream commit 86ce14412286fe19dcaf2fc19856be70fe27a090 ] Those optimisations were only enabled with make builds, fix the meson part. Fixes: 77d66da83834 ("net/virtio: add vectorized packed ring Rx") Signed-off-by: David Marchand Reviewed-by: Maxime Coquelin --- drivers/net/virtio/meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/virtio/meson.build b/drivers/net/virtio/meson.build index 59073fa336..eff90489a2 100644 --- a/drivers/net/virtio/meson.build +++ b/drivers/net/virtio/meson.build @@ -20,11 +20,11 @@ if arch_subdir == 'x86' c_args: [cflags, '-mavx512f', '-mavx512bw', '-mavx512vl']) objs += virtio_avx512_lib.extract_objects('virtio_rxtx_packed_avx.c') if (toolchain == 'gcc' and cc.version().version_compare('>=8.3.0')) - cflags += '-DVHOST_GCC_UNROLL_PRAGMA' + cflags += '-DVIRTIO_GCC_UNROLL_PRAGMA' elif (toolchain == 'clang' and cc.version().version_compare('>=3.7.0')) - cflags += '-DVHOST_CLANG_UNROLL_PRAGMA' + cflags += '-DVIRTIO_CLANG_UNROLL_PRAGMA' elif (toolchain == 'icc' and cc.version().version_compare('>=16.0.0')) - cflags += '-DVHOST_ICC_UNROLL_PRAGMA' + cflags += '-DVIRTIO_ICC_UNROLL_PRAGMA' endif endif endif -- 2.35.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-06-21 15:37:50.612677109 +0800 +++ 0028-net-virtio-restore-some-optimisations-with-AVX512.patch 2022-06-21 15:37:49.004451134 +0800 @@ -1 +1 @@ -From 86ce14412286fe19dcaf2fc19856be70fe27a090 Mon Sep 17 00:00:00 2001 +From 15d4339cfd9888fca7629a8f231d23805d9c287f Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 86ce14412286fe19dcaf2fc19856be70fe27a090 ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org @@ -19 +21 @@ -index 01a333ada2..d78b8278c6 100644 +index 59073fa336..eff90489a2 100644 @@ -22,15 +24,15 @@ -@@ -30,11 +30,11 @@ if arch_subdir == 'x86' - c_args: [cflags, '-mavx512f', '-mavx512bw', '-mavx512vl']) - objs += virtio_avx512_lib.extract_objects('virtio_rxtx_packed.c') - if (toolchain == 'gcc' and cc.version().version_compare('>=8.3.0')) -- cflags += '-DVHOST_GCC_UNROLL_PRAGMA' -+ cflags += '-DVIRTIO_GCC_UNROLL_PRAGMA' - elif (toolchain == 'clang' and cc.version().version_compare('>=3.7.0')) -- cflags += '-DVHOST_CLANG_UNROLL_PRAGMA' -+ cflags += '-DVIRTIO_CLANG_UNROLL_PRAGMA' - elif (toolchain == 'icc' and cc.version().version_compare('>=16.0.0')) -- cflags += '-DVHOST_ICC_UNROLL_PRAGMA' -+ cflags += '-DVIRTIO_ICC_UNROLL_PRAGMA' - endif - endif - endif +@@ -20,11 +20,11 @@ if arch_subdir == 'x86' + c_args: [cflags, '-mavx512f', '-mavx512bw', '-mavx512vl']) + objs += virtio_avx512_lib.extract_objects('virtio_rxtx_packed_avx.c') + if (toolchain == 'gcc' and cc.version().version_compare('>=8.3.0')) +- cflags += '-DVHOST_GCC_UNROLL_PRAGMA' ++ cflags += '-DVIRTIO_GCC_UNROLL_PRAGMA' + elif (toolchain == 'clang' and cc.version().version_compare('>=3.7.0')) +- cflags += '-DVHOST_CLANG_UNROLL_PRAGMA' ++ cflags += '-DVIRTIO_CLANG_UNROLL_PRAGMA' + elif (toolchain == 'icc' and cc.version().version_compare('>=16.0.0')) +- cflags += '-DVHOST_ICC_UNROLL_PRAGMA' ++ cflags += '-DVIRTIO_ICC_UNROLL_PRAGMA' + endif + endif + endif