From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 90A93A04BB;
	Tue,  6 Oct 2020 18:23:39 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 41F9925B3;
	Tue,  6 Oct 2020 18:23:38 +0200 (CEST)
Received: from mga12.intel.com (mga12.intel.com [192.55.52.136])
 by dpdk.org (Postfix) with ESMTP id 309D2DE0
 for <dev@dpdk.org>; Tue,  6 Oct 2020 18:23:37 +0200 (CEST)
IronPort-SDR: gQOX81JDAtxTs/1jj9kRsYuaCPOXo9BjZxANrQBrXJoy3W6iV97fHiIwhnSw6SbeRgoAToHQgJ
 x9kF3E2agxnQ==
X-IronPort-AV: E=McAfee;i="6000,8403,9765"; a="143956478"
X-IronPort-AV: E=Sophos;i="5.77,343,1596524400"; d="scan'208";a="143956478"
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
Received: from fmsmga004.fm.intel.com ([10.253.24.48])
 by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 06 Oct 2020 09:23:26 -0700
IronPort-SDR: 87cxZ6zu9xAPaQh1mJw9tr9e+iLyXlAuYZHxlDu3hdvFUCNCZDNlpQIXeXelOz3piP/JXk9Wew
 8vQ3VQb8dzkw==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.77,343,1596524400"; d="scan'208";a="342363169"
Received: from irvmail001.ir.intel.com ([163.33.26.43])
 by fmsmga004.fm.intel.com with ESMTP; 06 Oct 2020 09:23:21 -0700
Received: from sivswdev10.ir.intel.com (sivswdev10.ir.intel.com [10.237.217.4])
 by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id
 096GNLYR003924; Tue, 6 Oct 2020 17:23:21 +0100
Received: by sivswdev10.ir.intel.com (Postfix, from userid 28780)
 id 3BC62180090B; Tue,  6 Oct 2020 17:23:21 +0100 (IST)
From: Mairtin o Loingsigh <mairtin.oloingsigh@intel.com>
To: jasvinder.singh@intel.com, bruce.richardson@intel.com,
 pablo.de.lara.guarch@intel.com
Cc: dev@dpdk.org, brendan.ryan@intel.com, mairtin.oloingsigh@intel.com,
 david.coyle@intel.com
Date: Tue,  6 Oct 2020 17:23:17 +0100
Message-Id: <20201006162319.7981-1-mairtin.oloingsigh@intel.com>
X-Mailer: git-send-email 2.12.3
In-Reply-To: <1601393761-11588-1-git-send-email-mairtin.oloingsigh@intel.com>
References: <1601393761-11588-1-git-send-email-mairtin.oloingsigh@intel.com>
Subject: [dpdk-dev] [PATCH v4 0/2] net: add CRC run-time checks and
	AVX512/VPCLMULQDQ based CRC
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

This patchset makes two significant enhancements to the CRC modules of
the rte_net library:

1) Adds run-time selection of the optimal architecture-specific CRC path.
   Previously the selection was solely made at compile-time, meaning it
   could only be built and run on the same generation of CPU. Adding
   run-time selection ability means this can be used from distro packages
   and/or DPDK can be compiled on an older CPU and run on a newer CPU.
2) Adds an optimized CRC implementation based on the AVX512 and
   VPCLMULQDQ instruction sets.
   
For further details, please see the commit messages of the individual
patches.

v4:
* Fixed build issue when older version of meson is used (0.47.1)
* Addressed review comments
  * remove Intel copyright header from neon CRC file
  * tidy-up of register initialisation

v3:
* Re-submitted v2 as encountered problems when originally submitting it.

v2:
* Added support for run-time selection of optimal architecture-specific
  CRC, based on v1 review comment.
* Added full working AVX512/VPCLMULQDQ support for CRC32-Ethernet and
  CRC16-CCITT.

v1:
* Initial version, with incomplete AVX512/VPCLMULQDQ support for
  CRC32-Ethernet only.

Mairtin o Loingsigh (2):
  net: add run-time architecture specific CRC selection
  net: add support for AVX512/VPCLMULQDQ based CRC

 app/test/test_crc.c                               |  11 +-
 config/x86/meson.build                            |   6 +-
 doc/guides/rel_notes/release_20_11.rst            |   6 +
 lib/librte_net/meson.build                        |  89 ++++-
 lib/librte_net/net_crc.h                          |  45 +++
 lib/librte_net/net_crc_avx512.c                   | 423 ++++++++++++++++++++++
 lib/librte_net/{net_crc_neon.h => net_crc_neon.c} |  26 +-
 lib/librte_net/{net_crc_sse.h => net_crc_sse.c}   |  34 +-
 lib/librte_net/rte_net_crc.c                      | 100 +++--
 lib/librte_net/rte_net_crc.h                      |   4 +-
 10 files changed, 672 insertions(+), 72 deletions(-)
 create mode 100644 lib/librte_net/net_crc.h
 create mode 100644 lib/librte_net/net_crc_avx512.c
 rename lib/librte_net/{net_crc_neon.h => net_crc_neon.c} (95%)
 rename lib/librte_net/{net_crc_sse.h => net_crc_sse.c} (94%)

-- 
2.12.3