From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ly+oSqUBbURzszwQFL7VFn3LiubIdoT7WpuNa5Hfk1w=; b=SAWCGAEMCd62/sVzAZZ75TD/j14eSUEKhCxf4Vy+IBFcCCwcvKJYf36pyby9Z6g2KL 8IHuJFDZgUARTsxLoQ/GZyI1susAlB3VaSFLwytFL2LuWiqtYgXk1jZxI0eg1lIRawG/ 6rgJ2tUDsxEfHfo6YsP1+FU6o37jzMKXI7jhhkgKgYIXMOXwVsqOm9y37FEvB+Nv4vRd m4Qtrk6SAo4HMFZ4eRy7m6RAwpcjLc8ieA1HVEOqULHS4C8JgFNHWKfDmkSnQgedM+Go V2OioV+vh4TzH/2ic2BOYvdns/zb1ZAxss6lYMqRCJNx8UX/iryuFcBSKiDRBpRgL/+q x/dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ly+oSqUBbURzszwQFL7VFn3LiubIdoT7WpuNa5Hfk1w=; b=N9GpvPCi3kg4HZMosL3HIw4C2BE8C4q8hIXi1aYrW15xQd8dLRRYDJg1vgpWFZvSfC opuqNZCI/ov5nMjwpVkbec6s2TznomLSZe86Y7aD/YyRN2W8VIaik0H/fWKtgWRGPf9Y oVyxrv+++gGbRK31XczLqLgs9+aUrurfXsVxucVg3vrOknuNNyV/TK/zGo9PMRCalomr 4Dw0Xj2uRyevrQ5GWYW9fTPqUA3Klt3m87MfThXz1I9W89fDJjx3cbzy1aXdBf1Zf8iH VB8hBbB4LTxPnslpp1dNknYDUxFmH3HVJkCNCRrSqr67ftVvwCyk4BcD3sUx8BeITtnQ klRQ== X-Gm-Message-State: AG10YOTueGy68se1evIyCJrD5UbDWqCwy0wliC8I3F1hSwHWj01gEU1E+z6/rP/6rhlzvMwV X-Received: by 10.194.5.36 with SMTP id p4mr12629338wjp.167.1455879661693; Fri, 19 Feb 2016 03:01:01 -0800 (PST) Received: from pala.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id m6sm3406998wje.21.2016.02.19.03.01.00 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 19 Feb 2016 03:01:01 -0800 (PST) From: Didier Pallard To: dev@dpdk.org Date: Fri, 19 Feb 2016 12:00:29 +0100 Message-Id: <1455879631-18420-1-git-send-email-didier.pallard@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1455010467-4991-1-git-send-email-didier.pallard@6wind.com> References: <1455010467-4991-1-git-send-email-didier.pallard@6wind.com> Subject: [dpdk-dev] [PATCH v3 0/2] Fix CRC32c computation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 11:01:02 -0000 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