From mboxrd@z Thu Jan 1 00:00:00 1970 From: Didier Pallard Subject: [PATCH v3 0/2] Fix CRC32c computation Date: Fri, 19 Feb 2016 12:00:29 +0100 Message-ID: <1455879631-18420-1-git-send-email-didier.pallard@6wind.com> References: <1455010467-4991-1-git-send-email-didier.pallard@6wind.com> To: dev@dpdk.org Return-path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id CB0C3C4B8 for ; Fri, 19 Feb 2016 12:01:01 +0100 (CET) Received: by mail-wm0-f45.google.com with SMTP id g62so70383631wme.1 for ; Fri, 19 Feb 2016 03:01:01 -0800 (PST) In-Reply-To: <1455010467-4991-1-git-send-email-didier.pallard@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" CRC32c computation is not valid when buffer length is not a multiple of 4 bytes. Values returned by rte_hash_crc functions does not match the one computed by a trivial crc32c implementation. First patch fixes crc hash function autotests, to outline the problem. Second patch fixes CRC32c computation. Didier Pallard (2): test: fix CRC hash function autotest hash: fix CRC32c computation app/test/test_hash_functions.c | 17 +++-- doc/guides/rel_notes/release_16_04.rst | 5 ++ lib/librte_hash/rte_crc_arm64.h | 64 +++++++++++++++++ lib/librte_hash/rte_hash_crc.h | 125 ++++++++++++++++++++++++++------- 4 files changed, 178 insertions(+), 33 deletions(-) -- 2.1.4